<?xml version="1.0" encoding="UTF-8"?>
<!--
The contents of this file are subject to the terms of the Common Development
and Distribution License (the License). You may not use this file except in
compliance with the License.

You can obtain a copy of the License at http://www.netbeans.org/cddl.html
or http://www.netbeans.org/cddl.txt.

When distributing Covered Code, include this CDDL Header Notice in each file
and include the License file at http://www.netbeans.org/cddl.txt.
If applicable, add the following below the CDDL Header, with the fields
enclosed by brackets [] replaced by your own identifying information:
"Portions Copyrighted [year] [name of copyright owner]"

The Original Software is NetBeans. The Initial Developer of the Original
Software is Sun Microsystems, Inc. Portions Copyright 1997-2006 Sun
Microsystems, Inc. All Rights Reserved.
-->
<project name="core/swing/tabcontrol" default="netbeans" basedir=".">

    <import file="../../../nbbuild/templates/projectized.xml"/>

    <target name="demo-init" depends="build-init">
        <path id="demo.cp">
            <path refid="cp"/>
            <pathelement location="${cluster}/${module.jar}"/>
        </path>
        <path id="demo.run.cp">
            <path refid="demo.cp"/>
            <pathelement location="build/democlasses"/>
            <pathelement location="${core/swing/plaf.dir}/core/org-netbeans-swing-plaf.jar"/>
        </path>
    </target>

    <target name="compile-demo" depends="demo-init,jar">
        <mkdir dir="build/democlasses"/>
        <javac srcdir="demosrc" destdir="build/democlasses" debug="true" source="1.4" deprecation="false" includeantruntime="false">
            <classpath refid="demo.cp"/>
        </javac>
    </target>
    
    <target name="demo" depends="compile-demo" description="Run a demo">
        <echo message="Demo args: ${application.args}"/>
        <java fork="true" classname="org.netbeans.swing.tabcontrol.demo.TestFrame" args="${application.args}">
            <classpath refid="demo.run.cp"/>
        </java>
    </target>
    
    <target name="chiclet" depends="compile-demo" description="Run a demo">
        <echo message="Demo args: ${application.args}"/>
        <java fork="true" classname="org.netbeans.swing.tabcontrol.plaf.ChicletDemo" args="${application.args}">
            <classpath refid="demo.run.cp"/>
        </java>
    </target>
</project>
