jdk/make/netbeans/swing/build.xml
author duke
Sat, 01 Dec 2007 00:00:00 +0000
changeset 2 90ce3da70b43
child 5506 202f599c92aa
permissions -rw-r--r--
Initial load
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
     1
<!--
90ce3da70b43 Initial load
duke
parents:
diff changeset
     2
 Copyright 2007 Sun Microsystems, Inc.  All Rights Reserved.
90ce3da70b43 Initial load
duke
parents:
diff changeset
     3
90ce3da70b43 Initial load
duke
parents:
diff changeset
     4
 Redistribution and use in source and binary forms, with or without
90ce3da70b43 Initial load
duke
parents:
diff changeset
     5
 modification, are permitted provided that the following conditions
90ce3da70b43 Initial load
duke
parents:
diff changeset
     6
 are met:
90ce3da70b43 Initial load
duke
parents:
diff changeset
     7
90ce3da70b43 Initial load
duke
parents:
diff changeset
     8
   - Redistributions of source code must retain the above copyright
90ce3da70b43 Initial load
duke
parents:
diff changeset
     9
     notice, this list of conditions and the following disclaimer.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    10
90ce3da70b43 Initial load
duke
parents:
diff changeset
    11
   - Redistributions in binary form must reproduce the above copyright
90ce3da70b43 Initial load
duke
parents:
diff changeset
    12
     notice, this list of conditions and the following disclaimer in the
90ce3da70b43 Initial load
duke
parents:
diff changeset
    13
     documentation and/or other materials provided with the distribution.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    14
90ce3da70b43 Initial load
duke
parents:
diff changeset
    15
   - Neither the name of Sun Microsystems nor the names of its
90ce3da70b43 Initial load
duke
parents:
diff changeset
    16
     contributors may be used to endorse or promote products derived
90ce3da70b43 Initial load
duke
parents:
diff changeset
    17
     from this software without specific prior written permission.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    18
90ce3da70b43 Initial load
duke
parents:
diff changeset
    19
 THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS
90ce3da70b43 Initial load
duke
parents:
diff changeset
    20
 IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
90ce3da70b43 Initial load
duke
parents:
diff changeset
    21
 THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
90ce3da70b43 Initial load
duke
parents:
diff changeset
    22
 PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE COPYRIGHT OWNER OR
90ce3da70b43 Initial load
duke
parents:
diff changeset
    23
 CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
90ce3da70b43 Initial load
duke
parents:
diff changeset
    24
 EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
90ce3da70b43 Initial load
duke
parents:
diff changeset
    25
 PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
90ce3da70b43 Initial load
duke
parents:
diff changeset
    26
 PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
90ce3da70b43 Initial load
duke
parents:
diff changeset
    27
 LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
90ce3da70b43 Initial load
duke
parents:
diff changeset
    28
 NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
90ce3da70b43 Initial load
duke
parents:
diff changeset
    29
 SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    30
-->
90ce3da70b43 Initial load
duke
parents:
diff changeset
    31
90ce3da70b43 Initial load
duke
parents:
diff changeset
    32
<project name="swing" default="build" basedir=".">
90ce3da70b43 Initial load
duke
parents:
diff changeset
    33
    
90ce3da70b43 Initial load
duke
parents:
diff changeset
    34
    <import file="../common/shared.xml"/>
90ce3da70b43 Initial load
duke
parents:
diff changeset
    35
   
90ce3da70b43 Initial load
duke
parents:
diff changeset
    36
    <target name="-pre-init" depends="-check-swing.windows" if="swing.windows">
90ce3da70b43 Initial load
duke
parents:
diff changeset
    37
        <property name="excludes" value="com/sun/java/swing/plaf/gtk/"/>
90ce3da70b43 Initial load
duke
parents:
diff changeset
    38
    </target>
90ce3da70b43 Initial load
duke
parents:
diff changeset
    39
90ce3da70b43 Initial load
duke
parents:
diff changeset
    40
    <target name="-check-swing.windows">
90ce3da70b43 Initial load
duke
parents:
diff changeset
    41
        <condition property="swing.windows">
90ce3da70b43 Initial load
duke
parents:
diff changeset
    42
            <os family="windows"/>
90ce3da70b43 Initial load
duke
parents:
diff changeset
    43
        </condition>
90ce3da70b43 Initial load
duke
parents:
diff changeset
    44
    </target>
90ce3da70b43 Initial load
duke
parents:
diff changeset
    45
90ce3da70b43 Initial load
duke
parents:
diff changeset
    46
     <target name="-post-compile">
90ce3da70b43 Initial load
duke
parents:
diff changeset
    47
        <mkdir dir="${dist.dir}/lib"/>
90ce3da70b43 Initial load
duke
parents:
diff changeset
    48
        <jar destfile="${dist.dir}/lib/swing.jar">
90ce3da70b43 Initial load
duke
parents:
diff changeset
    49
            <fileset dir="${classes.dir}">
90ce3da70b43 Initial load
duke
parents:
diff changeset
    50
                <include name="javax/swing/**/*.class"/>
90ce3da70b43 Initial load
duke
parents:
diff changeset
    51
                <include name="com/sun/swing/**/*.class"/>
90ce3da70b43 Initial load
duke
parents:
diff changeset
    52
                <include name="com/sun/java/swing/**/*.class"/>
90ce3da70b43 Initial load
duke
parents:
diff changeset
    53
                <include name="sun/swing/**/*.class"/>
90ce3da70b43 Initial load
duke
parents:
diff changeset
    54
            </fileset>
90ce3da70b43 Initial load
duke
parents:
diff changeset
    55
            <fileset dir="${share.src.dir}">
90ce3da70b43 Initial load
duke
parents:
diff changeset
    56
                <include name="javax/swing/**/*.bdtd"/>
90ce3da70b43 Initial load
duke
parents:
diff changeset
    57
                <include name="javax/swing/**/*.css"/>
90ce3da70b43 Initial load
duke
parents:
diff changeset
    58
                <include name="javax/swing/**/*.dtd"/>
90ce3da70b43 Initial load
duke
parents:
diff changeset
    59
                <include name="javax/swing/**/*.gif"/>
90ce3da70b43 Initial load
duke
parents:
diff changeset
    60
                <include name="javax/swing/**/*.html"/>
90ce3da70b43 Initial load
duke
parents:
diff changeset
    61
                <include name="javax/swing/**/*.jpg"/>
90ce3da70b43 Initial load
duke
parents:
diff changeset
    62
                <include name="javax/swing/**/*.png"/>
90ce3da70b43 Initial load
duke
parents:
diff changeset
    63
                <include name="javax/swing/**/*.txt"/>
90ce3da70b43 Initial load
duke
parents:
diff changeset
    64
                <include name="javax/swing/**/*.wav"/>
90ce3da70b43 Initial load
duke
parents:
diff changeset
    65
90ce3da70b43 Initial load
duke
parents:
diff changeset
    66
                <include name="com/sun/swing/**/*.properties"/>
90ce3da70b43 Initial load
duke
parents:
diff changeset
    67
90ce3da70b43 Initial load
duke
parents:
diff changeset
    68
                <include name="com/sun/java/swing/**/*.gif"/>
90ce3da70b43 Initial load
duke
parents:
diff changeset
    69
                <include name="com/sun/java/swing/**/*.png"/>
90ce3da70b43 Initial load
duke
parents:
diff changeset
    70
                <include name="com/sun/java/swing/**/*.properties"/>
90ce3da70b43 Initial load
duke
parents:
diff changeset
    71
                <include name="com/sun/java/swing/**/*.xml"/>
90ce3da70b43 Initial load
duke
parents:
diff changeset
    72
            </fileset>
90ce3da70b43 Initial load
duke
parents:
diff changeset
    73
        </jar>
90ce3da70b43 Initial load
duke
parents:
diff changeset
    74
    </target>
90ce3da70b43 Initial load
duke
parents:
diff changeset
    75
    
90ce3da70b43 Initial load
duke
parents:
diff changeset
    76
    <target name="-demo-init" depends="-demo-init.unix,-demo-init.windows">
90ce3da70b43 Initial load
duke
parents:
diff changeset
    77
        <property name="swing.demo.src" value="${root}/src/share/demo/jfc/SampleTree"/>
90ce3da70b43 Initial load
duke
parents:
diff changeset
    78
        <property name="swing.demo.classes" value="${build.dir}/demo/jfc/SampleTree"/>
90ce3da70b43 Initial load
duke
parents:
diff changeset
    79
    </target>
90ce3da70b43 Initial load
duke
parents:
diff changeset
    80
90ce3da70b43 Initial load
duke
parents:
diff changeset
    81
    <target name="-demo-init.unix" if="osfamily.unix">
90ce3da70b43 Initial load
duke
parents:
diff changeset
    82
        <property name="demo.bootclasspath"
90ce3da70b43 Initial load
duke
parents:
diff changeset
    83
            value="-Xbootclasspath/p:${dist.dir}/lib/swing.jar:${classes.dir}"/>
90ce3da70b43 Initial load
duke
parents:
diff changeset
    84
    </target>
90ce3da70b43 Initial load
duke
parents:
diff changeset
    85
90ce3da70b43 Initial load
duke
parents:
diff changeset
    86
    <target name="-demo-init.windows" if="os.windows">
90ce3da70b43 Initial load
duke
parents:
diff changeset
    87
        <property name="demo.bootclasspath"
90ce3da70b43 Initial load
duke
parents:
diff changeset
    88
            value="-Xbootclasspath/p:${dist.dir}/lib/swing.jar;${classes.dir}"/>
90ce3da70b43 Initial load
duke
parents:
diff changeset
    89
    </target>
90ce3da70b43 Initial load
duke
parents:
diff changeset
    90
90ce3da70b43 Initial load
duke
parents:
diff changeset
    91
    <target name="run" depends="-init,-demo-init">
90ce3da70b43 Initial load
duke
parents:
diff changeset
    92
        <mkdir dir="${swing.demo.classes}"/>
90ce3da70b43 Initial load
duke
parents:
diff changeset
    93
        <property name="jvm.args" value=""/>
90ce3da70b43 Initial load
duke
parents:
diff changeset
    94
        <javac srcdir="${swing.demo.src}" destdir="${swing.demo.classes}"
90ce3da70b43 Initial load
duke
parents:
diff changeset
    95
            fork="true" failonerror="true"
90ce3da70b43 Initial load
duke
parents:
diff changeset
    96
            classpath="${dist.dir}/lib/swing.jar:${classes.dir}"
90ce3da70b43 Initial load
duke
parents:
diff changeset
    97
            debug="${javac.debug}" debuglevel="${javac.debuglevel}">
90ce3da70b43 Initial load
duke
parents:
diff changeset
    98
            <compilerarg line="${javac.options}"/>
90ce3da70b43 Initial load
duke
parents:
diff changeset
    99
        </javac>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   100
        <copy todir="${swing.demo.classes}">
90ce3da70b43 Initial load
duke
parents:
diff changeset
   101
            <fileset dir="${swing.demo.src}" includes="resources/**/*.gif"/>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   102
        </copy>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   103
        <java classname="SampleTree" classpath="${swing.demo.classes}"
90ce3da70b43 Initial load
duke
parents:
diff changeset
   104
            fork="true" failonerror="true"
90ce3da70b43 Initial load
duke
parents:
diff changeset
   105
            jvm="${bootstrap.jdk}/bin/java">
90ce3da70b43 Initial load
duke
parents:
diff changeset
   106
            <jvmarg line="${demo.bootclasspath}"/>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   107
            <arg line="${jvm.args}"/>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   108
        </java>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   109
    </target>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   110
90ce3da70b43 Initial load
duke
parents:
diff changeset
   111
    <target name="clean" depends="-init,-demo-init,shared.clean">
90ce3da70b43 Initial load
duke
parents:
diff changeset
   112
        <delete file="${dist.dir}/lib/swing.jar"/>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   113
        <delete dir="${swing.demo.classes}"/>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   114
    </target>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   115
    
90ce3da70b43 Initial load
duke
parents:
diff changeset
   116
</project>