java/sql-dk/nbproject/build-impl.xml
author František Kučera <franta-hg@frantovo.cz>
Fri, 27 Dec 2013 17:51:05 +0100
branchv_0
changeset 81 847c83288d01
parent 18 7900bb1666f6
child 173 b48a82a64a02
permissions -rw-r--r--
bash completion: perl + bash + ant for generating completion script
     1 <?xml version="1.0" encoding="UTF-8"?>
     2 <!--
     3 *** GENERATED FROM project.xml - DO NOT EDIT  ***
     4 ***         EDIT ../build.xml INSTEAD         ***
     5 
     6 For the purpose of easier reading the script
     7 is divided into following sections:
     8 
     9   - initialization
    10   - compilation
    11   - jar
    12   - execution
    13   - debugging
    14   - javadoc
    15   - test compilation
    16   - test execution
    17   - test debugging
    18   - applet
    19   - cleanup
    20 
    21         -->
    22 <project xmlns:j2seproject1="http://www.netbeans.org/ns/j2se-project/1" xmlns:j2seproject3="http://www.netbeans.org/ns/j2se-project/3" xmlns:jaxrpc="http://www.netbeans.org/ns/j2se-project/jax-rpc" basedir=".." default="default" name="sql-dk-impl">
    23     <fail message="Please build using Ant 1.8.0 or higher.">
    24         <condition>
    25             <not>
    26                 <antversion atleast="1.8.0"/>
    27             </not>
    28         </condition>
    29     </fail>
    30     <target depends="test,jar,javadoc" description="Build and test whole project." name="default"/>
    31     <!-- 
    32                 ======================
    33                 INITIALIZATION SECTION 
    34                 ======================
    35             -->
    36     <target name="-pre-init">
    37         <!-- Empty placeholder for easier customization. -->
    38         <!-- You can override this target in the ../build.xml file. -->
    39     </target>
    40     <target depends="-pre-init" name="-init-private">
    41         <property file="nbproject/private/config.properties"/>
    42         <property file="nbproject/private/configs/${config}.properties"/>
    43         <property file="nbproject/private/private.properties"/>
    44     </target>
    45     <target depends="-pre-init,-init-private" name="-init-user">
    46         <property file="${user.properties.file}"/>
    47         <!-- The two properties below are usually overridden -->
    48         <!-- by the active platform. Just a fallback. -->
    49         <property name="default.javac.source" value="1.4"/>
    50         <property name="default.javac.target" value="1.4"/>
    51     </target>
    52     <target depends="-pre-init,-init-private,-init-user" name="-init-project">
    53         <property file="nbproject/configs/${config}.properties"/>
    54         <property file="nbproject/project.properties"/>
    55     </target>
    56     <target depends="-pre-init,-init-private,-init-user,-init-project,-init-macrodef-property" name="-do-init">
    57         <available file="${manifest.file}" property="manifest.available"/>
    58         <condition property="splashscreen.available">
    59             <and>
    60                 <not>
    61                     <equals arg1="${application.splash}" arg2="" trim="true"/>
    62                 </not>
    63                 <available file="${application.splash}"/>
    64             </and>
    65         </condition>
    66         <condition property="main.class.available">
    67             <and>
    68                 <isset property="main.class"/>
    69                 <not>
    70                     <equals arg1="${main.class}" arg2="" trim="true"/>
    71                 </not>
    72             </and>
    73         </condition>
    74         <condition property="manifest.available+main.class">
    75             <and>
    76                 <isset property="manifest.available"/>
    77                 <isset property="main.class.available"/>
    78             </and>
    79         </condition>
    80         <condition property="do.archive">
    81             <not>
    82                 <istrue value="${jar.archive.disabled}"/>
    83             </not>
    84         </condition>
    85         <condition property="do.mkdist">
    86             <and>
    87                 <isset property="do.archive"/>
    88                 <isset property="libs.CopyLibs.classpath"/>
    89                 <not>
    90                     <istrue value="${mkdist.disabled}"/>
    91                 </not>
    92             </and>
    93         </condition>
    94         <condition property="manifest.available+main.class+mkdist.available">
    95             <and>
    96                 <istrue value="${manifest.available+main.class}"/>
    97                 <isset property="do.mkdist"/>
    98             </and>
    99         </condition>
   100         <condition property="do.archive+manifest.available">
   101             <and>
   102                 <isset property="manifest.available"/>
   103                 <istrue value="${do.archive}"/>
   104             </and>
   105         </condition>
   106         <condition property="do.archive+main.class.available">
   107             <and>
   108                 <isset property="main.class.available"/>
   109                 <istrue value="${do.archive}"/>
   110             </and>
   111         </condition>
   112         <condition property="do.archive+splashscreen.available">
   113             <and>
   114                 <isset property="splashscreen.available"/>
   115                 <istrue value="${do.archive}"/>
   116             </and>
   117         </condition>
   118         <condition property="do.archive+manifest.available+main.class">
   119             <and>
   120                 <istrue value="${manifest.available+main.class}"/>
   121                 <istrue value="${do.archive}"/>
   122             </and>
   123         </condition>
   124         <condition property="manifest.available-mkdist.available">
   125             <or>
   126                 <istrue value="${manifest.available}"/>
   127                 <isset property="do.mkdist"/>
   128             </or>
   129         </condition>
   130         <condition property="manifest.available+main.class-mkdist.available">
   131             <or>
   132                 <istrue value="${manifest.available+main.class}"/>
   133                 <isset property="do.mkdist"/>
   134             </or>
   135         </condition>
   136         <condition property="have.tests">
   137             <or>
   138                 <available file="${test.src.dir}"/>
   139             </or>
   140         </condition>
   141         <condition property="have.sources">
   142             <or>
   143                 <available file="${src.dir}"/>
   144                 <available file="${src.data.dir}"/>
   145             </or>
   146         </condition>
   147         <condition property="netbeans.home+have.tests">
   148             <and>
   149                 <isset property="netbeans.home"/>
   150                 <isset property="have.tests"/>
   151             </and>
   152         </condition>
   153         <condition property="no.javadoc.preview">
   154             <and>
   155                 <isset property="javadoc.preview"/>
   156                 <isfalse value="${javadoc.preview}"/>
   157             </and>
   158         </condition>
   159         <property name="run.jvmargs" value=""/>
   160         <property name="run.jvmargs.ide" value=""/>
   161         <property name="javac.compilerargs" value=""/>
   162         <property name="work.dir" value="${basedir}"/>
   163         <condition property="no.deps">
   164             <and>
   165                 <istrue value="${no.dependencies}"/>
   166             </and>
   167         </condition>
   168         <property name="javac.debug" value="true"/>
   169         <property name="javadoc.preview" value="true"/>
   170         <property name="application.args" value=""/>
   171         <property name="source.encoding" value="${file.encoding}"/>
   172         <property name="runtime.encoding" value="${source.encoding}"/>
   173         <condition property="javadoc.encoding.used" value="${javadoc.encoding}">
   174             <and>
   175                 <isset property="javadoc.encoding"/>
   176                 <not>
   177                     <equals arg1="${javadoc.encoding}" arg2=""/>
   178                 </not>
   179             </and>
   180         </condition>
   181         <property name="javadoc.encoding.used" value="${source.encoding}"/>
   182         <property name="includes" value="**"/>
   183         <property name="excludes" value=""/>
   184         <property name="do.depend" value="false"/>
   185         <condition property="do.depend.true">
   186             <istrue value="${do.depend}"/>
   187         </condition>
   188         <path id="endorsed.classpath.path" path="${endorsed.classpath}"/>
   189         <condition else="" property="endorsed.classpath.cmd.line.arg" value="-Xbootclasspath/p:'${toString:endorsed.classpath.path}'">
   190             <length length="0" string="${endorsed.classpath}" when="greater"/>
   191         </condition>
   192         <condition else="false" property="jdkBug6558476">
   193             <and>
   194                 <matches pattern="1\.[56]" string="${java.specification.version}"/>
   195                 <not>
   196                     <os family="unix"/>
   197                 </not>
   198             </and>
   199         </condition>
   200         <property name="javac.fork" value="${jdkBug6558476}"/>
   201         <property name="jar.index" value="false"/>
   202         <property name="jar.index.metainf" value="${jar.index}"/>
   203         <property name="copylibs.rebase" value="true"/>
   204         <available file="${meta.inf.dir}/persistence.xml" property="has.persistence.xml"/>
   205         <condition property="junit.available">
   206             <or>
   207                 <available classname="org.junit.Test" classpath="${run.test.classpath}"/>
   208                 <available classname="junit.framework.Test" classpath="${run.test.classpath}"/>
   209             </or>
   210         </condition>
   211         <condition property="testng.available">
   212             <available classname="org.testng.annotations.Test" classpath="${run.test.classpath}"/>
   213         </condition>
   214         <condition property="junit+testng.available">
   215             <and>
   216                 <istrue value="${junit.available}"/>
   217                 <istrue value="${testng.available}"/>
   218             </and>
   219         </condition>
   220         <condition else="testng" property="testng.mode" value="mixed">
   221             <istrue value="${junit+testng.available}"/>
   222         </condition>
   223         <condition else="" property="testng.debug.mode" value="-mixed">
   224             <istrue value="${junit+testng.available}"/>
   225         </condition>
   226     </target>
   227     <target name="-post-init">
   228         <!-- Empty placeholder for easier customization. -->
   229         <!-- You can override this target in the ../build.xml file. -->
   230     </target>
   231     <target depends="-pre-init,-init-private,-init-user,-init-project,-do-init" name="-init-check">
   232         <fail unless="src.dir">Must set src.dir</fail>
   233         <fail unless="src.data.dir">Must set src.data.dir</fail>
   234         <fail unless="test.src.dir">Must set test.src.dir</fail>
   235         <fail unless="build.dir">Must set build.dir</fail>
   236         <fail unless="dist.dir">Must set dist.dir</fail>
   237         <fail unless="build.classes.dir">Must set build.classes.dir</fail>
   238         <fail unless="dist.javadoc.dir">Must set dist.javadoc.dir</fail>
   239         <fail unless="build.test.classes.dir">Must set build.test.classes.dir</fail>
   240         <fail unless="build.test.results.dir">Must set build.test.results.dir</fail>
   241         <fail unless="build.classes.excludes">Must set build.classes.excludes</fail>
   242         <fail unless="dist.jar">Must set dist.jar</fail>
   243     </target>
   244     <target name="-init-macrodef-property">
   245         <macrodef name="property" uri="http://www.netbeans.org/ns/j2se-project/1">
   246             <attribute name="name"/>
   247             <attribute name="value"/>
   248             <sequential>
   249                 <property name="@{name}" value="${@{value}}"/>
   250             </sequential>
   251         </macrodef>
   252     </target>
   253     <target depends="-init-ap-cmdline-properties" if="ap.supported.internal" name="-init-macrodef-javac-with-processors">
   254         <macrodef name="javac" uri="http://www.netbeans.org/ns/j2se-project/3">
   255             <attribute default="${src.dir}:${src.data.dir}" name="srcdir"/>
   256             <attribute default="${build.classes.dir}" name="destdir"/>
   257             <attribute default="${javac.classpath}" name="classpath"/>
   258             <attribute default="${javac.processorpath}" name="processorpath"/>
   259             <attribute default="${build.generated.sources.dir}/ap-source-output" name="apgeneratedsrcdir"/>
   260             <attribute default="${includes}" name="includes"/>
   261             <attribute default="${excludes}" name="excludes"/>
   262             <attribute default="${javac.debug}" name="debug"/>
   263             <attribute default="${empty.dir}" name="sourcepath"/>
   264             <attribute default="${empty.dir}" name="gensrcdir"/>
   265             <element name="customize" optional="true"/>
   266             <sequential>
   267                 <property location="${build.dir}/empty" name="empty.dir"/>
   268                 <mkdir dir="${empty.dir}"/>
   269                 <mkdir dir="@{apgeneratedsrcdir}"/>
   270                 <javac debug="@{debug}" deprecation="${javac.deprecation}" destdir="@{destdir}" encoding="${source.encoding}" excludes="@{excludes}" fork="${javac.fork}" includeantruntime="false" includes="@{includes}" source="${javac.source}" sourcepath="@{sourcepath}" srcdir="@{srcdir}" target="${javac.target}" tempdir="${java.io.tmpdir}">
   271                     <src>
   272                         <dirset dir="@{gensrcdir}" erroronmissingdir="false">
   273                             <include name="*"/>
   274                         </dirset>
   275                     </src>
   276                     <classpath>
   277                         <path path="@{classpath}"/>
   278                     </classpath>
   279                     <compilerarg line="${endorsed.classpath.cmd.line.arg}"/>
   280                     <compilerarg line="${javac.compilerargs}"/>
   281                     <compilerarg value="-processorpath"/>
   282                     <compilerarg path="@{processorpath}:${empty.dir}"/>
   283                     <compilerarg line="${ap.processors.internal}"/>
   284                     <compilerarg line="${annotation.processing.processor.options}"/>
   285                     <compilerarg value="-s"/>
   286                     <compilerarg path="@{apgeneratedsrcdir}"/>
   287                     <compilerarg line="${ap.proc.none.internal}"/>
   288                     <customize/>
   289                 </javac>
   290             </sequential>
   291         </macrodef>
   292     </target>
   293     <target depends="-init-ap-cmdline-properties" name="-init-macrodef-javac-without-processors" unless="ap.supported.internal">
   294         <macrodef name="javac" uri="http://www.netbeans.org/ns/j2se-project/3">
   295             <attribute default="${src.dir}:${src.data.dir}" name="srcdir"/>
   296             <attribute default="${build.classes.dir}" name="destdir"/>
   297             <attribute default="${javac.classpath}" name="classpath"/>
   298             <attribute default="${javac.processorpath}" name="processorpath"/>
   299             <attribute default="${build.generated.sources.dir}/ap-source-output" name="apgeneratedsrcdir"/>
   300             <attribute default="${includes}" name="includes"/>
   301             <attribute default="${excludes}" name="excludes"/>
   302             <attribute default="${javac.debug}" name="debug"/>
   303             <attribute default="${empty.dir}" name="sourcepath"/>
   304             <attribute default="${empty.dir}" name="gensrcdir"/>
   305             <element name="customize" optional="true"/>
   306             <sequential>
   307                 <property location="${build.dir}/empty" name="empty.dir"/>
   308                 <mkdir dir="${empty.dir}"/>
   309                 <javac debug="@{debug}" deprecation="${javac.deprecation}" destdir="@{destdir}" encoding="${source.encoding}" excludes="@{excludes}" fork="${javac.fork}" includeantruntime="false" includes="@{includes}" source="${javac.source}" sourcepath="@{sourcepath}" srcdir="@{srcdir}" target="${javac.target}" tempdir="${java.io.tmpdir}">
   310                     <src>
   311                         <dirset dir="@{gensrcdir}" erroronmissingdir="false">
   312                             <include name="*"/>
   313                         </dirset>
   314                     </src>
   315                     <classpath>
   316                         <path path="@{classpath}"/>
   317                     </classpath>
   318                     <compilerarg line="${endorsed.classpath.cmd.line.arg}"/>
   319                     <compilerarg line="${javac.compilerargs}"/>
   320                     <customize/>
   321                 </javac>
   322             </sequential>
   323         </macrodef>
   324     </target>
   325     <target depends="-init-macrodef-javac-with-processors,-init-macrodef-javac-without-processors" name="-init-macrodef-javac">
   326         <macrodef name="depend" uri="http://www.netbeans.org/ns/j2se-project/3">
   327             <attribute default="${src.dir}:${src.data.dir}" name="srcdir"/>
   328             <attribute default="${build.classes.dir}" name="destdir"/>
   329             <attribute default="${javac.classpath}" name="classpath"/>
   330             <sequential>
   331                 <depend cache="${build.dir}/depcache" destdir="@{destdir}" excludes="${excludes}" includes="${includes}" srcdir="@{srcdir}">
   332                     <classpath>
   333                         <path path="@{classpath}"/>
   334                     </classpath>
   335                 </depend>
   336             </sequential>
   337         </macrodef>
   338         <macrodef name="force-recompile" uri="http://www.netbeans.org/ns/j2se-project/3">
   339             <attribute default="${build.classes.dir}" name="destdir"/>
   340             <sequential>
   341                 <fail unless="javac.includes">Must set javac.includes</fail>
   342                 <pathconvert pathsep="${line.separator}" property="javac.includes.binary">
   343                     <path>
   344                         <filelist dir="@{destdir}" files="${javac.includes}"/>
   345                     </path>
   346                     <globmapper from="*.java" to="*.class"/>
   347                 </pathconvert>
   348                 <tempfile deleteonexit="true" property="javac.includesfile.binary"/>
   349                 <echo file="${javac.includesfile.binary}" message="${javac.includes.binary}"/>
   350                 <delete>
   351                     <files includesfile="${javac.includesfile.binary}"/>
   352                 </delete>
   353                 <delete>
   354                     <fileset file="${javac.includesfile.binary}"/>
   355                 </delete>
   356             </sequential>
   357         </macrodef>
   358     </target>
   359     <target if="${junit.available}" name="-init-macrodef-junit-init">
   360         <condition else="false" property="nb.junit.batch" value="true">
   361             <and>
   362                 <istrue value="${junit.available}"/>
   363                 <not>
   364                     <isset property="test.method"/>
   365                 </not>
   366             </and>
   367         </condition>
   368         <condition else="false" property="nb.junit.single" value="true">
   369             <and>
   370                 <istrue value="${junit.available}"/>
   371                 <isset property="test.method"/>
   372             </and>
   373         </condition>
   374     </target>
   375     <target name="-init-test-properties">
   376         <property name="test.binaryincludes" value="&lt;nothing&gt;"/>
   377         <property name="test.binarytestincludes" value=""/>
   378         <property name="test.binaryexcludes" value=""/>
   379     </target>
   380     <target if="${nb.junit.single}" name="-init-macrodef-junit-single" unless="${nb.junit.batch}">
   381         <macrodef name="junit" uri="http://www.netbeans.org/ns/j2se-project/3">
   382             <attribute default="${includes}" name="includes"/>
   383             <attribute default="${excludes}" name="excludes"/>
   384             <attribute default="**" name="testincludes"/>
   385             <attribute default="" name="testmethods"/>
   386             <element name="customize" optional="true"/>
   387             <sequential>
   388                 <property name="junit.forkmode" value="perTest"/>
   389                 <junit dir="${work.dir}" errorproperty="tests.failed" failureproperty="tests.failed" fork="true" forkmode="${junit.forkmode}" showoutput="true" tempdir="${build.dir}">
   390                     <test methods="@{testmethods}" name="@{testincludes}" todir="${build.test.results.dir}"/>
   391                     <syspropertyset>
   392                         <propertyref prefix="test-sys-prop."/>
   393                         <mapper from="test-sys-prop.*" to="*" type="glob"/>
   394                     </syspropertyset>
   395                     <formatter type="brief" usefile="false"/>
   396                     <formatter type="xml"/>
   397                     <jvmarg value="-ea"/>
   398                     <customize/>
   399                 </junit>
   400             </sequential>
   401         </macrodef>
   402     </target>
   403     <target depends="-init-test-properties" if="${nb.junit.batch}" name="-init-macrodef-junit-batch" unless="${nb.junit.single}">
   404         <macrodef name="junit" uri="http://www.netbeans.org/ns/j2se-project/3">
   405             <attribute default="${includes}" name="includes"/>
   406             <attribute default="${excludes}" name="excludes"/>
   407             <attribute default="**" name="testincludes"/>
   408             <attribute default="" name="testmethods"/>
   409             <element name="customize" optional="true"/>
   410             <sequential>
   411                 <property name="junit.forkmode" value="perTest"/>
   412                 <junit dir="${work.dir}" errorproperty="tests.failed" failureproperty="tests.failed" fork="true" forkmode="${junit.forkmode}" showoutput="true" tempdir="${build.dir}">
   413                     <batchtest todir="${build.test.results.dir}">
   414                         <fileset dir="${test.src.dir}" excludes="@{excludes},${excludes}" includes="@{includes}">
   415                             <filename name="@{testincludes}"/>
   416                         </fileset>
   417                         <fileset dir="${build.test.classes.dir}" excludes="@{excludes},${excludes},${test.binaryexcludes}" includes="${test.binaryincludes}">
   418                             <filename name="${test.binarytestincludes}"/>
   419                         </fileset>
   420                     </batchtest>
   421                     <syspropertyset>
   422                         <propertyref prefix="test-sys-prop."/>
   423                         <mapper from="test-sys-prop.*" to="*" type="glob"/>
   424                     </syspropertyset>
   425                     <formatter type="brief" usefile="false"/>
   426                     <formatter type="xml"/>
   427                     <jvmarg value="-ea"/>
   428                     <customize/>
   429                 </junit>
   430             </sequential>
   431         </macrodef>
   432     </target>
   433     <target depends="-init-macrodef-junit-init,-init-macrodef-junit-single, -init-macrodef-junit-batch" if="${junit.available}" name="-init-macrodef-junit"/>
   434     <target if="${testng.available}" name="-init-macrodef-testng">
   435         <macrodef name="testng" uri="http://www.netbeans.org/ns/j2se-project/3">
   436             <attribute default="${includes}" name="includes"/>
   437             <attribute default="${excludes}" name="excludes"/>
   438             <attribute default="**" name="testincludes"/>
   439             <attribute default="" name="testmethods"/>
   440             <element name="customize" optional="true"/>
   441             <sequential>
   442                 <condition else="" property="testng.methods.arg" value="@{testincludes}.@{testmethods}">
   443                     <isset property="test.method"/>
   444                 </condition>
   445                 <union id="test.set">
   446                     <fileset dir="${test.src.dir}" excludes="@{excludes},**/*.xml,${excludes}" includes="@{includes}">
   447                         <filename name="@{testincludes}"/>
   448                     </fileset>
   449                 </union>
   450                 <taskdef classname="org.testng.TestNGAntTask" classpath="${run.test.classpath}" name="testng"/>
   451                 <testng classfilesetref="test.set" failureProperty="tests.failed" methods="${testng.methods.arg}" mode="${testng.mode}" outputdir="${build.test.results.dir}" suitename="sql-dk" testname="TestNG tests" workingDir="${work.dir}">
   452                     <xmlfileset dir="${build.test.classes.dir}" includes="@{testincludes}"/>
   453                     <propertyset>
   454                         <propertyref prefix="test-sys-prop."/>
   455                         <mapper from="test-sys-prop.*" to="*" type="glob"/>
   456                     </propertyset>
   457                     <customize/>
   458                 </testng>
   459             </sequential>
   460         </macrodef>
   461     </target>
   462     <target name="-init-macrodef-test-impl">
   463         <macrodef name="test-impl" uri="http://www.netbeans.org/ns/j2se-project/3">
   464             <attribute default="${includes}" name="includes"/>
   465             <attribute default="${excludes}" name="excludes"/>
   466             <attribute default="**" name="testincludes"/>
   467             <attribute default="" name="testmethods"/>
   468             <element implicit="true" name="customize" optional="true"/>
   469             <sequential>
   470                 <echo>No tests executed.</echo>
   471             </sequential>
   472         </macrodef>
   473     </target>
   474     <target depends="-init-macrodef-junit" if="${junit.available}" name="-init-macrodef-junit-impl">
   475         <macrodef name="test-impl" uri="http://www.netbeans.org/ns/j2se-project/3">
   476             <attribute default="${includes}" name="includes"/>
   477             <attribute default="${excludes}" name="excludes"/>
   478             <attribute default="**" name="testincludes"/>
   479             <attribute default="" name="testmethods"/>
   480             <element implicit="true" name="customize" optional="true"/>
   481             <sequential>
   482                 <j2seproject3:junit excludes="@{excludes}" includes="@{includes}" testincludes="@{testincludes}" testmethods="@{testmethods}">
   483                     <customize/>
   484                 </j2seproject3:junit>
   485             </sequential>
   486         </macrodef>
   487     </target>
   488     <target depends="-init-macrodef-testng" if="${testng.available}" name="-init-macrodef-testng-impl">
   489         <macrodef name="test-impl" uri="http://www.netbeans.org/ns/j2se-project/3">
   490             <attribute default="${includes}" name="includes"/>
   491             <attribute default="${excludes}" name="excludes"/>
   492             <attribute default="**" name="testincludes"/>
   493             <attribute default="" name="testmethods"/>
   494             <element implicit="true" name="customize" optional="true"/>
   495             <sequential>
   496                 <j2seproject3:testng excludes="@{excludes}" includes="@{includes}" testincludes="@{testincludes}" testmethods="@{testmethods}">
   497                     <customize/>
   498                 </j2seproject3:testng>
   499             </sequential>
   500         </macrodef>
   501     </target>
   502     <target depends="-init-macrodef-test-impl,-init-macrodef-junit-impl,-init-macrodef-testng-impl" name="-init-macrodef-test">
   503         <macrodef name="test" uri="http://www.netbeans.org/ns/j2se-project/3">
   504             <attribute default="${includes}" name="includes"/>
   505             <attribute default="${excludes}" name="excludes"/>
   506             <attribute default="**" name="testincludes"/>
   507             <attribute default="" name="testmethods"/>
   508             <sequential>
   509                 <j2seproject3:test-impl excludes="@{excludes}" includes="@{includes}" testincludes="@{testincludes}" testmethods="@{testmethods}">
   510                     <customize>
   511                         <classpath>
   512                             <path path="${run.test.classpath}"/>
   513                         </classpath>
   514                         <jvmarg line="${endorsed.classpath.cmd.line.arg}"/>
   515                         <jvmarg line="${run.jvmargs}"/>
   516                         <jvmarg line="${run.jvmargs.ide}"/>
   517                     </customize>
   518                 </j2seproject3:test-impl>
   519             </sequential>
   520         </macrodef>
   521     </target>
   522     <target if="${junit.available}" name="-init-macrodef-junit-debug" unless="${nb.junit.batch}">
   523         <macrodef name="junit-debug" uri="http://www.netbeans.org/ns/j2se-project/3">
   524             <attribute default="${includes}" name="includes"/>
   525             <attribute default="${excludes}" name="excludes"/>
   526             <attribute default="**" name="testincludes"/>
   527             <attribute default="" name="testmethods"/>
   528             <element name="customize" optional="true"/>
   529             <sequential>
   530                 <property name="junit.forkmode" value="perTest"/>
   531                 <junit dir="${work.dir}" errorproperty="tests.failed" failureproperty="tests.failed" fork="true" forkmode="${junit.forkmode}" showoutput="true" tempdir="${build.dir}">
   532                     <test methods="@{testmethods}" name="@{testincludes}" todir="${build.test.results.dir}"/>
   533                     <syspropertyset>
   534                         <propertyref prefix="test-sys-prop."/>
   535                         <mapper from="test-sys-prop.*" to="*" type="glob"/>
   536                     </syspropertyset>
   537                     <formatter type="brief" usefile="false"/>
   538                     <formatter type="xml"/>
   539                     <jvmarg value="-ea"/>
   540                     <jvmarg line="${debug-args-line}"/>
   541                     <jvmarg value="-Xrunjdwp:transport=${debug-transport},address=${jpda.address}"/>
   542                     <customize/>
   543                 </junit>
   544             </sequential>
   545         </macrodef>
   546     </target>
   547     <target depends="-init-test-properties" if="${nb.junit.batch}" name="-init-macrodef-junit-debug-batch">
   548         <macrodef name="junit-debug" uri="http://www.netbeans.org/ns/j2se-project/3">
   549             <attribute default="${includes}" name="includes"/>
   550             <attribute default="${excludes}" name="excludes"/>
   551             <attribute default="**" name="testincludes"/>
   552             <attribute default="" name="testmethods"/>
   553             <element name="customize" optional="true"/>
   554             <sequential>
   555                 <property name="junit.forkmode" value="perTest"/>
   556                 <junit dir="${work.dir}" errorproperty="tests.failed" failureproperty="tests.failed" fork="true" forkmode="${junit.forkmode}" showoutput="true" tempdir="${build.dir}">
   557                     <batchtest todir="${build.test.results.dir}">
   558                         <fileset dir="${test.src.dir}" excludes="@{excludes},${excludes}" includes="@{includes}">
   559                             <filename name="@{testincludes}"/>
   560                         </fileset>
   561                         <fileset dir="${build.test.classes.dir}" excludes="@{excludes},${excludes},${test.binaryexcludes}" includes="${test.binaryincludes}">
   562                             <filename name="${test.binarytestincludes}"/>
   563                         </fileset>
   564                     </batchtest>
   565                     <syspropertyset>
   566                         <propertyref prefix="test-sys-prop."/>
   567                         <mapper from="test-sys-prop.*" to="*" type="glob"/>
   568                     </syspropertyset>
   569                     <formatter type="brief" usefile="false"/>
   570                     <formatter type="xml"/>
   571                     <jvmarg value="-ea"/>
   572                     <jvmarg line="${debug-args-line}"/>
   573                     <jvmarg value="-Xrunjdwp:transport=${debug-transport},address=${jpda.address}"/>
   574                     <customize/>
   575                 </junit>
   576             </sequential>
   577         </macrodef>
   578     </target>
   579     <target depends="-init-macrodef-junit-debug,-init-macrodef-junit-debug-batch" if="${junit.available}" name="-init-macrodef-junit-debug-impl">
   580         <macrodef name="test-debug-impl" uri="http://www.netbeans.org/ns/j2se-project/3">
   581             <attribute default="${includes}" name="includes"/>
   582             <attribute default="${excludes}" name="excludes"/>
   583             <attribute default="**" name="testincludes"/>
   584             <attribute default="" name="testmethods"/>
   585             <element implicit="true" name="customize" optional="true"/>
   586             <sequential>
   587                 <j2seproject3:junit-debug excludes="@{excludes}" includes="@{includes}" testincludes="@{testincludes}" testmethods="@{testmethods}">
   588                     <customize/>
   589                 </j2seproject3:junit-debug>
   590             </sequential>
   591         </macrodef>
   592     </target>
   593     <target if="${testng.available}" name="-init-macrodef-testng-debug">
   594         <macrodef name="testng-debug" uri="http://www.netbeans.org/ns/j2se-project/3">
   595             <attribute default="${main.class}" name="testClass"/>
   596             <attribute default="" name="testMethod"/>
   597             <element name="customize2" optional="true"/>
   598             <sequential>
   599                 <condition else="-testclass @{testClass}" property="test.class.or.method" value="-methods @{testClass}.@{testMethod}">
   600                     <isset property="test.method"/>
   601                 </condition>
   602                 <condition else="-suitename sql-dk -testname @{testClass} ${test.class.or.method}" property="testng.cmd.args" value="@{testClass}">
   603                     <matches pattern=".*\.xml" string="@{testClass}"/>
   604                 </condition>
   605                 <delete dir="${build.test.results.dir}" quiet="true"/>
   606                 <mkdir dir="${build.test.results.dir}"/>
   607                 <j2seproject3:debug classname="org.testng.TestNG" classpath="${debug.test.classpath}">
   608                     <customize>
   609                         <customize2/>
   610                         <jvmarg value="-ea"/>
   611                         <arg line="${testng.debug.mode}"/>
   612                         <arg line="-d ${build.test.results.dir}"/>
   613                         <arg line="-listener org.testng.reporters.VerboseReporter"/>
   614                         <arg line="${testng.cmd.args}"/>
   615                     </customize>
   616                 </j2seproject3:debug>
   617             </sequential>
   618         </macrodef>
   619     </target>
   620     <target depends="-init-macrodef-testng-debug" if="${testng.available}" name="-init-macrodef-testng-debug-impl">
   621         <macrodef name="testng-debug-impl" uri="http://www.netbeans.org/ns/j2se-project/3">
   622             <attribute default="${main.class}" name="testClass"/>
   623             <attribute default="" name="testMethod"/>
   624             <element implicit="true" name="customize2" optional="true"/>
   625             <sequential>
   626                 <j2seproject3:testng-debug testClass="@{testClass}" testMethod="@{testMethod}">
   627                     <customize2/>
   628                 </j2seproject3:testng-debug>
   629             </sequential>
   630         </macrodef>
   631     </target>
   632     <target depends="-init-macrodef-junit-debug-impl" if="${junit.available}" name="-init-macrodef-test-debug-junit">
   633         <macrodef name="test-debug" uri="http://www.netbeans.org/ns/j2se-project/3">
   634             <attribute default="${includes}" name="includes"/>
   635             <attribute default="${excludes}" name="excludes"/>
   636             <attribute default="**" name="testincludes"/>
   637             <attribute default="" name="testmethods"/>
   638             <attribute default="${main.class}" name="testClass"/>
   639             <attribute default="" name="testMethod"/>
   640             <sequential>
   641                 <j2seproject3:test-debug-impl excludes="@{excludes}" includes="@{includes}" testincludes="@{testincludes}" testmethods="@{testmethods}">
   642                     <customize>
   643                         <classpath>
   644                             <path path="${run.test.classpath}"/>
   645                         </classpath>
   646                         <jvmarg line="${endorsed.classpath.cmd.line.arg}"/>
   647                         <jvmarg line="${run.jvmargs}"/>
   648                         <jvmarg line="${run.jvmargs.ide}"/>
   649                     </customize>
   650                 </j2seproject3:test-debug-impl>
   651             </sequential>
   652         </macrodef>
   653     </target>
   654     <target depends="-init-macrodef-testng-debug-impl" if="${testng.available}" name="-init-macrodef-test-debug-testng">
   655         <macrodef name="test-debug" uri="http://www.netbeans.org/ns/j2se-project/3">
   656             <attribute default="${includes}" name="includes"/>
   657             <attribute default="${excludes}" name="excludes"/>
   658             <attribute default="**" name="testincludes"/>
   659             <attribute default="" name="testmethods"/>
   660             <attribute default="${main.class}" name="testClass"/>
   661             <attribute default="" name="testMethod"/>
   662             <sequential>
   663                 <j2seproject3:testng-debug-impl testClass="@{testClass}" testMethod="@{testMethod}">
   664                     <customize2>
   665                         <syspropertyset>
   666                             <propertyref prefix="test-sys-prop."/>
   667                             <mapper from="test-sys-prop.*" to="*" type="glob"/>
   668                         </syspropertyset>
   669                     </customize2>
   670                 </j2seproject3:testng-debug-impl>
   671             </sequential>
   672         </macrodef>
   673     </target>
   674     <target depends="-init-macrodef-test-debug-junit,-init-macrodef-test-debug-testng" name="-init-macrodef-test-debug"/>
   675     <!--
   676                 pre NB7.2 profiling section; consider it deprecated
   677             -->
   678     <target depends="-profile-pre-init, init, -profile-post-init, -profile-init-macrodef-profile, -profile-init-check" if="profiler.info.jvmargs.agent" name="profile-init"/>
   679     <target if="profiler.info.jvmargs.agent" name="-profile-pre-init">
   680         <!-- Empty placeholder for easier customization. -->
   681         <!-- You can override this target in the ../build.xml file. -->
   682     </target>
   683     <target if="profiler.info.jvmargs.agent" name="-profile-post-init">
   684         <!-- Empty placeholder for easier customization. -->
   685         <!-- You can override this target in the ../build.xml file. -->
   686     </target>
   687     <target if="profiler.info.jvmargs.agent" name="-profile-init-macrodef-profile">
   688         <macrodef name="resolve">
   689             <attribute name="name"/>
   690             <attribute name="value"/>
   691             <sequential>
   692                 <property name="@{name}" value="${env.@{value}}"/>
   693             </sequential>
   694         </macrodef>
   695         <macrodef name="profile">
   696             <attribute default="${main.class}" name="classname"/>
   697             <element name="customize" optional="true"/>
   698             <sequential>
   699                 <property environment="env"/>
   700                 <resolve name="profiler.current.path" value="${profiler.info.pathvar}"/>
   701                 <java classname="@{classname}" dir="${profiler.info.dir}" fork="true" jvm="${profiler.info.jvm}">
   702                     <jvmarg line="${endorsed.classpath.cmd.line.arg}"/>
   703                     <jvmarg value="${profiler.info.jvmargs.agent}"/>
   704                     <jvmarg line="${profiler.info.jvmargs}"/>
   705                     <env key="${profiler.info.pathvar}" path="${profiler.info.agentpath}:${profiler.current.path}"/>
   706                     <arg line="${application.args}"/>
   707                     <classpath>
   708                         <path path="${run.classpath}"/>
   709                     </classpath>
   710                     <syspropertyset>
   711                         <propertyref prefix="run-sys-prop."/>
   712                         <mapper from="run-sys-prop.*" to="*" type="glob"/>
   713                     </syspropertyset>
   714                     <customize/>
   715                 </java>
   716             </sequential>
   717         </macrodef>
   718     </target>
   719     <target depends="-profile-pre-init, init, -profile-post-init, -profile-init-macrodef-profile" if="profiler.info.jvmargs.agent" name="-profile-init-check">
   720         <fail unless="profiler.info.jvm">Must set JVM to use for profiling in profiler.info.jvm</fail>
   721         <fail unless="profiler.info.jvmargs.agent">Must set profiler agent JVM arguments in profiler.info.jvmargs.agent</fail>
   722     </target>
   723     <!--
   724                 end of pre NB7.2 profiling section
   725             -->
   726     <target depends="-init-debug-args" name="-init-macrodef-nbjpda">
   727         <macrodef name="nbjpdastart" uri="http://www.netbeans.org/ns/j2se-project/1">
   728             <attribute default="${main.class}" name="name"/>
   729             <attribute default="${debug.classpath}" name="classpath"/>
   730             <attribute default="" name="stopclassname"/>
   731             <sequential>
   732                 <nbjpdastart addressproperty="jpda.address" name="@{name}" stopclassname="@{stopclassname}" transport="${debug-transport}">
   733                     <classpath>
   734                         <path path="@{classpath}"/>
   735                     </classpath>
   736                 </nbjpdastart>
   737             </sequential>
   738         </macrodef>
   739         <macrodef name="nbjpdareload" uri="http://www.netbeans.org/ns/j2se-project/1">
   740             <attribute default="${build.classes.dir}" name="dir"/>
   741             <sequential>
   742                 <nbjpdareload>
   743                     <fileset dir="@{dir}" includes="${fix.classes}">
   744                         <include name="${fix.includes}*.class"/>
   745                     </fileset>
   746                 </nbjpdareload>
   747             </sequential>
   748         </macrodef>
   749     </target>
   750     <target name="-init-debug-args">
   751         <property name="version-output" value="java version &quot;${ant.java.version}"/>
   752         <condition property="have-jdk-older-than-1.4">
   753             <or>
   754                 <contains string="${version-output}" substring="java version &quot;1.0"/>
   755                 <contains string="${version-output}" substring="java version &quot;1.1"/>
   756                 <contains string="${version-output}" substring="java version &quot;1.2"/>
   757                 <contains string="${version-output}" substring="java version &quot;1.3"/>
   758             </or>
   759         </condition>
   760         <condition else="-Xdebug" property="debug-args-line" value="-Xdebug -Xnoagent -Djava.compiler=none">
   761             <istrue value="${have-jdk-older-than-1.4}"/>
   762         </condition>
   763         <condition else="dt_socket" property="debug-transport-by-os" value="dt_shmem">
   764             <os family="windows"/>
   765         </condition>
   766         <condition else="${debug-transport-by-os}" property="debug-transport" value="${debug.transport}">
   767             <isset property="debug.transport"/>
   768         </condition>
   769     </target>
   770     <target depends="-init-debug-args" name="-init-macrodef-debug">
   771         <macrodef name="debug" uri="http://www.netbeans.org/ns/j2se-project/3">
   772             <attribute default="${main.class}" name="classname"/>
   773             <attribute default="${debug.classpath}" name="classpath"/>
   774             <element name="customize" optional="true"/>
   775             <sequential>
   776                 <java classname="@{classname}" dir="${work.dir}" fork="true">
   777                     <jvmarg line="${endorsed.classpath.cmd.line.arg}"/>
   778                     <jvmarg line="${debug-args-line}"/>
   779                     <jvmarg value="-Xrunjdwp:transport=${debug-transport},address=${jpda.address}"/>
   780                     <jvmarg value="-Dfile.encoding=${runtime.encoding}"/>
   781                     <redirector errorencoding="${runtime.encoding}" inputencoding="${runtime.encoding}" outputencoding="${runtime.encoding}"/>
   782                     <jvmarg line="${run.jvmargs}"/>
   783                     <jvmarg line="${run.jvmargs.ide}"/>
   784                     <classpath>
   785                         <path path="@{classpath}"/>
   786                     </classpath>
   787                     <syspropertyset>
   788                         <propertyref prefix="run-sys-prop."/>
   789                         <mapper from="run-sys-prop.*" to="*" type="glob"/>
   790                     </syspropertyset>
   791                     <customize/>
   792                 </java>
   793             </sequential>
   794         </macrodef>
   795     </target>
   796     <target name="-init-macrodef-java">
   797         <macrodef name="java" uri="http://www.netbeans.org/ns/j2se-project/1">
   798             <attribute default="${main.class}" name="classname"/>
   799             <attribute default="${run.classpath}" name="classpath"/>
   800             <attribute default="jvm" name="jvm"/>
   801             <element name="customize" optional="true"/>
   802             <sequential>
   803                 <java classname="@{classname}" dir="${work.dir}" fork="true">
   804                     <jvmarg line="${endorsed.classpath.cmd.line.arg}"/>
   805                     <jvmarg value="-Dfile.encoding=${runtime.encoding}"/>
   806                     <redirector errorencoding="${runtime.encoding}" inputencoding="${runtime.encoding}" outputencoding="${runtime.encoding}"/>
   807                     <jvmarg line="${run.jvmargs}"/>
   808                     <jvmarg line="${run.jvmargs.ide}"/>
   809                     <classpath>
   810                         <path path="@{classpath}"/>
   811                     </classpath>
   812                     <syspropertyset>
   813                         <propertyref prefix="run-sys-prop."/>
   814                         <mapper from="run-sys-prop.*" to="*" type="glob"/>
   815                     </syspropertyset>
   816                     <customize/>
   817                 </java>
   818             </sequential>
   819         </macrodef>
   820     </target>
   821     <target name="-init-macrodef-copylibs">
   822         <macrodef name="copylibs" uri="http://www.netbeans.org/ns/j2se-project/3">
   823             <attribute default="${manifest.file}" name="manifest"/>
   824             <element name="customize" optional="true"/>
   825             <sequential>
   826                 <property location="${build.classes.dir}" name="build.classes.dir.resolved"/>
   827                 <pathconvert property="run.classpath.without.build.classes.dir">
   828                     <path path="${run.classpath}"/>
   829                     <map from="${build.classes.dir.resolved}" to=""/>
   830                 </pathconvert>
   831                 <pathconvert pathsep=" " property="jar.classpath">
   832                     <path path="${run.classpath.without.build.classes.dir}"/>
   833                     <chainedmapper>
   834                         <flattenmapper/>
   835                         <filtermapper>
   836                             <replacestring from=" " to="%20"/>
   837                         </filtermapper>
   838                         <globmapper from="*" to="lib/*"/>
   839                     </chainedmapper>
   840                 </pathconvert>
   841                 <taskdef classname="org.netbeans.modules.java.j2seproject.copylibstask.CopyLibs" classpath="${libs.CopyLibs.classpath}" name="copylibs"/>
   842                 <copylibs compress="${jar.compress}" index="${jar.index}" indexMetaInf="${jar.index.metainf}" jarfile="${dist.jar}" manifest="@{manifest}" rebase="${copylibs.rebase}" runtimeclasspath="${run.classpath.without.build.classes.dir}">
   843                     <fileset dir="${build.classes.dir}"/>
   844                     <manifest>
   845                         <attribute name="Class-Path" value="${jar.classpath}"/>
   846                         <customize/>
   847                     </manifest>
   848                 </copylibs>
   849             </sequential>
   850         </macrodef>
   851     </target>
   852     <target name="-init-presetdef-jar">
   853         <presetdef name="jar" uri="http://www.netbeans.org/ns/j2se-project/1">
   854             <jar compress="${jar.compress}" index="${jar.index}" jarfile="${dist.jar}">
   855                 <j2seproject1:fileset dir="${build.classes.dir}"/>
   856             </jar>
   857         </presetdef>
   858     </target>
   859     <target name="-init-ap-cmdline-properties">
   860         <property name="annotation.processing.enabled" value="true"/>
   861         <property name="annotation.processing.processors.list" value=""/>
   862         <property name="annotation.processing.processor.options" value=""/>
   863         <property name="annotation.processing.run.all.processors" value="true"/>
   864         <property name="javac.processorpath" value="${javac.classpath}"/>
   865         <property name="javac.test.processorpath" value="${javac.test.classpath}"/>
   866         <condition property="ap.supported.internal" value="true">
   867             <not>
   868                 <matches pattern="1\.[0-5](\..*)?" string="${javac.source}"/>
   869             </not>
   870         </condition>
   871     </target>
   872     <target depends="-init-ap-cmdline-properties" if="ap.supported.internal" name="-init-ap-cmdline-supported">
   873         <condition else="" property="ap.processors.internal" value="-processor ${annotation.processing.processors.list}">
   874             <isfalse value="${annotation.processing.run.all.processors}"/>
   875         </condition>
   876         <condition else="" property="ap.proc.none.internal" value="-proc:none">
   877             <isfalse value="${annotation.processing.enabled}"/>
   878         </condition>
   879     </target>
   880     <target depends="-init-ap-cmdline-properties,-init-ap-cmdline-supported" name="-init-ap-cmdline">
   881         <property name="ap.cmd.line.internal" value=""/>
   882     </target>
   883     <target depends="-pre-init,-init-private,-init-user,-init-project,-do-init,-post-init,-init-check,-init-macrodef-property,-init-macrodef-javac,-init-macrodef-test,-init-macrodef-test-debug,-init-macrodef-nbjpda,-init-macrodef-debug,-init-macrodef-java,-init-presetdef-jar,-init-ap-cmdline" name="init"/>
   884     <!--
   885                 ===================
   886                 COMPILATION SECTION
   887                 ===================
   888             -->
   889     <target name="-deps-jar-init" unless="built-jar.properties">
   890         <property location="${build.dir}/built-jar.properties" name="built-jar.properties"/>
   891         <delete file="${built-jar.properties}" quiet="true"/>
   892     </target>
   893     <target if="already.built.jar.${basedir}" name="-warn-already-built-jar">
   894         <echo level="warn" message="Cycle detected: sql-dk was already built"/>
   895     </target>
   896     <target depends="init,-deps-jar-init" name="deps-jar" unless="no.deps">
   897         <mkdir dir="${build.dir}"/>
   898         <touch file="${built-jar.properties}" verbose="false"/>
   899         <property file="${built-jar.properties}" prefix="already.built.jar."/>
   900         <antcall target="-warn-already-built-jar"/>
   901         <propertyfile file="${built-jar.properties}">
   902             <entry key="${basedir}" value=""/>
   903         </propertyfile>
   904     </target>
   905     <target depends="init,-check-automatic-build,-clean-after-automatic-build" name="-verify-automatic-build"/>
   906     <target depends="init" name="-check-automatic-build">
   907         <available file="${build.classes.dir}/.netbeans_automatic_build" property="netbeans.automatic.build"/>
   908     </target>
   909     <target depends="init" if="netbeans.automatic.build" name="-clean-after-automatic-build">
   910         <antcall target="clean"/>
   911     </target>
   912     <target depends="init,deps-jar" name="-pre-pre-compile">
   913         <mkdir dir="${build.classes.dir}"/>
   914     </target>
   915     <target name="-pre-compile">
   916         <!-- Empty placeholder for easier customization. -->
   917         <!-- You can override this target in the ../build.xml file. -->
   918     </target>
   919     <target if="do.depend.true" name="-compile-depend">
   920         <pathconvert property="build.generated.subdirs">
   921             <dirset dir="${build.generated.sources.dir}" erroronmissingdir="false">
   922                 <include name="*"/>
   923             </dirset>
   924         </pathconvert>
   925         <j2seproject3:depend srcdir="${src.dir}:${src.data.dir}:${build.generated.subdirs}"/>
   926     </target>
   927     <target depends="init,deps-jar,-pre-pre-compile,-pre-compile, -copy-persistence-xml,-compile-depend" if="have.sources" name="-do-compile">
   928         <j2seproject3:javac gensrcdir="${build.generated.sources.dir}"/>
   929         <copy todir="${build.classes.dir}">
   930             <fileset dir="${src.dir}" excludes="${build.classes.excludes},${excludes}" includes="${includes}"/>
   931             <fileset dir="${src.data.dir}" excludes="${build.classes.excludes},${excludes}" includes="${includes}"/>
   932         </copy>
   933     </target>
   934     <target if="has.persistence.xml" name="-copy-persistence-xml">
   935         <mkdir dir="${build.classes.dir}/META-INF"/>
   936         <copy todir="${build.classes.dir}/META-INF">
   937             <fileset dir="${meta.inf.dir}" includes="persistence.xml orm.xml"/>
   938         </copy>
   939     </target>
   940     <target name="-post-compile">
   941         <!-- Empty placeholder for easier customization. -->
   942         <!-- You can override this target in the ../build.xml file. -->
   943     </target>
   944     <target depends="init,deps-jar,-verify-automatic-build,-pre-pre-compile,-pre-compile,-do-compile,-post-compile" description="Compile project." name="compile"/>
   945     <target name="-pre-compile-single">
   946         <!-- Empty placeholder for easier customization. -->
   947         <!-- You can override this target in the ../build.xml file. -->
   948     </target>
   949     <target depends="init,deps-jar,-pre-pre-compile" name="-do-compile-single">
   950         <fail unless="javac.includes">Must select some files in the IDE or set javac.includes</fail>
   951         <j2seproject3:force-recompile/>
   952         <j2seproject3:javac excludes="" gensrcdir="${build.generated.sources.dir}" includes="${javac.includes}" sourcepath="${src.dir}:${src.data.dir}"/>
   953     </target>
   954     <target name="-post-compile-single">
   955         <!-- Empty placeholder for easier customization. -->
   956         <!-- You can override this target in the ../build.xml file. -->
   957     </target>
   958     <target depends="init,deps-jar,-verify-automatic-build,-pre-pre-compile,-pre-compile-single,-do-compile-single,-post-compile-single" name="compile-single"/>
   959     <!--
   960                 ====================
   961                 JAR BUILDING SECTION
   962                 ====================
   963             -->
   964     <target depends="init" name="-pre-pre-jar">
   965         <dirname file="${dist.jar}" property="dist.jar.dir"/>
   966         <mkdir dir="${dist.jar.dir}"/>
   967     </target>
   968     <target name="-pre-jar">
   969         <!-- Empty placeholder for easier customization. -->
   970         <!-- You can override this target in the ../build.xml file. -->
   971     </target>
   972     <target depends="init,compile,-pre-pre-jar,-pre-jar" if="do.archive" name="-do-jar-without-manifest" unless="manifest.available-mkdist.available">
   973         <j2seproject1:jar/>
   974     </target>
   975     <target depends="init,compile,-pre-pre-jar,-pre-jar" if="do.archive+manifest.available" name="-do-jar-with-manifest" unless="manifest.available+main.class-mkdist.available">
   976         <j2seproject1:jar manifest="${manifest.file}"/>
   977     </target>
   978     <target depends="init,compile,-pre-pre-jar,-pre-jar" if="do.archive+manifest.available+main.class" name="-do-jar-with-mainclass" unless="manifest.available+main.class+mkdist.available">
   979         <j2seproject1:jar manifest="${manifest.file}">
   980             <j2seproject1:manifest>
   981                 <j2seproject1:attribute name="Main-Class" value="${main.class}"/>
   982             </j2seproject1:manifest>
   983         </j2seproject1:jar>
   984         <echo level="info">To run this application from the command line without Ant, try:</echo>
   985         <property location="${build.classes.dir}" name="build.classes.dir.resolved"/>
   986         <property location="${dist.jar}" name="dist.jar.resolved"/>
   987         <pathconvert property="run.classpath.with.dist.jar">
   988             <path path="${run.classpath}"/>
   989             <map from="${build.classes.dir.resolved}" to="${dist.jar.resolved}"/>
   990         </pathconvert>
   991         <echo level="info">java -cp "${run.classpath.with.dist.jar}" ${main.class}</echo>
   992     </target>
   993     <target depends="init" if="do.archive" name="-do-jar-with-libraries-create-manifest" unless="manifest.available">
   994         <tempfile deleteonexit="true" destdir="${build.dir}" property="tmp.manifest.file"/>
   995         <touch file="${tmp.manifest.file}" verbose="false"/>
   996     </target>
   997     <target depends="init" if="do.archive+manifest.available" name="-do-jar-with-libraries-copy-manifest">
   998         <tempfile deleteonexit="true" destdir="${build.dir}" property="tmp.manifest.file"/>
   999         <copy file="${manifest.file}" tofile="${tmp.manifest.file}"/>
  1000     </target>
  1001     <target depends="init,-do-jar-with-libraries-create-manifest,-do-jar-with-libraries-copy-manifest" if="do.archive+main.class.available" name="-do-jar-with-libraries-set-main">
  1002         <manifest file="${tmp.manifest.file}" mode="update">
  1003             <attribute name="Main-Class" value="${main.class}"/>
  1004         </manifest>
  1005     </target>
  1006     <target depends="init,-do-jar-with-libraries-create-manifest,-do-jar-with-libraries-copy-manifest" if="do.archive+splashscreen.available" name="-do-jar-with-libraries-set-splashscreen">
  1007         <basename file="${application.splash}" property="splashscreen.basename"/>
  1008         <mkdir dir="${build.classes.dir}/META-INF"/>
  1009         <copy failonerror="false" file="${application.splash}" todir="${build.classes.dir}/META-INF"/>
  1010         <manifest file="${tmp.manifest.file}" mode="update">
  1011             <attribute name="SplashScreen-Image" value="META-INF/${splashscreen.basename}"/>
  1012         </manifest>
  1013     </target>
  1014     <target depends="init,-init-macrodef-copylibs,compile,-pre-pre-jar,-pre-jar,-do-jar-with-libraries-create-manifest,-do-jar-with-libraries-copy-manifest,-do-jar-with-libraries-set-main,-do-jar-with-libraries-set-splashscreen" if="do.mkdist" name="-do-jar-with-libraries-pack">
  1015         <j2seproject3:copylibs manifest="${tmp.manifest.file}"/>
  1016         <echo level="info">To run this application from the command line without Ant, try:</echo>
  1017         <property location="${dist.jar}" name="dist.jar.resolved"/>
  1018         <echo level="info">java -jar "${dist.jar.resolved}"</echo>
  1019     </target>
  1020     <target depends="-do-jar-with-libraries-pack" if="do.archive" name="-do-jar-with-libraries-delete-manifest">
  1021         <delete>
  1022             <fileset file="${tmp.manifest.file}"/>
  1023         </delete>
  1024     </target>
  1025     <target depends="init,compile,-pre-pre-jar,-pre-jar,-do-jar-with-libraries-create-manifest,-do-jar-with-libraries-copy-manifest,-do-jar-with-libraries-set-main,-do-jar-with-libraries-set-splashscreen,-do-jar-with-libraries-pack,-do-jar-with-libraries-delete-manifest" name="-do-jar-with-libraries"/>
  1026     <target name="-post-jar">
  1027         <!-- Empty placeholder for easier customization. -->
  1028         <!-- You can override this target in the ../build.xml file. -->
  1029     </target>
  1030     <target depends="init,compile,-pre-jar,-do-jar-with-manifest,-do-jar-without-manifest,-do-jar-with-mainclass,-do-jar-with-libraries,-post-jar" description="Build JAR." name="jar"/>
  1031     <!--
  1032                 =================
  1033                 EXECUTION SECTION
  1034                 =================
  1035             -->
  1036     <target depends="init,compile" description="Run a main class." name="run">
  1037         <j2seproject1:java>
  1038             <customize>
  1039                 <arg line="${application.args}"/>
  1040             </customize>
  1041         </j2seproject1:java>
  1042     </target>
  1043     <target name="-do-not-recompile">
  1044         <property name="javac.includes.binary" value=""/>
  1045     </target>
  1046     <target depends="init,compile-single" name="run-single">
  1047         <fail unless="run.class">Must select one file in the IDE or set run.class</fail>
  1048         <j2seproject1:java classname="${run.class}"/>
  1049     </target>
  1050     <target depends="init,compile-test-single" name="run-test-with-main">
  1051         <fail unless="run.class">Must select one file in the IDE or set run.class</fail>
  1052         <j2seproject1:java classname="${run.class}" classpath="${run.test.classpath}"/>
  1053     </target>
  1054     <!--
  1055                 =================
  1056                 DEBUGGING SECTION
  1057                 =================
  1058             -->
  1059     <target depends="init" if="netbeans.home" name="-debug-start-debugger">
  1060         <j2seproject1:nbjpdastart name="${debug.class}"/>
  1061     </target>
  1062     <target depends="init" if="netbeans.home" name="-debug-start-debugger-main-test">
  1063         <j2seproject1:nbjpdastart classpath="${debug.test.classpath}" name="${debug.class}"/>
  1064     </target>
  1065     <target depends="init,compile" name="-debug-start-debuggee">
  1066         <j2seproject3:debug>
  1067             <customize>
  1068                 <arg line="${application.args}"/>
  1069             </customize>
  1070         </j2seproject3:debug>
  1071     </target>
  1072     <target depends="init,compile,-debug-start-debugger,-debug-start-debuggee" description="Debug project in IDE." if="netbeans.home" name="debug"/>
  1073     <target depends="init" if="netbeans.home" name="-debug-start-debugger-stepinto">
  1074         <j2seproject1:nbjpdastart stopclassname="${main.class}"/>
  1075     </target>
  1076     <target depends="init,compile,-debug-start-debugger-stepinto,-debug-start-debuggee" if="netbeans.home" name="debug-stepinto"/>
  1077     <target depends="init,compile-single" if="netbeans.home" name="-debug-start-debuggee-single">
  1078         <fail unless="debug.class">Must select one file in the IDE or set debug.class</fail>
  1079         <j2seproject3:debug classname="${debug.class}"/>
  1080     </target>
  1081     <target depends="init,compile-single,-debug-start-debugger,-debug-start-debuggee-single" if="netbeans.home" name="debug-single"/>
  1082     <target depends="init,compile-test-single" if="netbeans.home" name="-debug-start-debuggee-main-test">
  1083         <fail unless="debug.class">Must select one file in the IDE or set debug.class</fail>
  1084         <j2seproject3:debug classname="${debug.class}" classpath="${debug.test.classpath}"/>
  1085     </target>
  1086     <target depends="init,compile-test-single,-debug-start-debugger-main-test,-debug-start-debuggee-main-test" if="netbeans.home" name="debug-test-with-main"/>
  1087     <target depends="init" name="-pre-debug-fix">
  1088         <fail unless="fix.includes">Must set fix.includes</fail>
  1089         <property name="javac.includes" value="${fix.includes}.java"/>
  1090     </target>
  1091     <target depends="init,-pre-debug-fix,compile-single" if="netbeans.home" name="-do-debug-fix">
  1092         <j2seproject1:nbjpdareload/>
  1093     </target>
  1094     <target depends="init,-pre-debug-fix,-do-debug-fix" if="netbeans.home" name="debug-fix"/>
  1095     <!--
  1096                 =================
  1097                 PROFILING SECTION
  1098                 =================
  1099             -->
  1100     <!--
  1101                 pre NB7.2 profiler integration
  1102             -->
  1103     <target depends="profile-init,compile" description="Profile a project in the IDE." if="profiler.info.jvmargs.agent" name="-profile-pre72">
  1104         <fail unless="netbeans.home">This target only works when run from inside the NetBeans IDE.</fail>
  1105         <nbprofiledirect>
  1106             <classpath>
  1107                 <path path="${run.classpath}"/>
  1108             </classpath>
  1109         </nbprofiledirect>
  1110         <profile/>
  1111     </target>
  1112     <target depends="profile-init,compile-single" description="Profile a selected class in the IDE." if="profiler.info.jvmargs.agent" name="-profile-single-pre72">
  1113         <fail unless="profile.class">Must select one file in the IDE or set profile.class</fail>
  1114         <fail unless="netbeans.home">This target only works when run from inside the NetBeans IDE.</fail>
  1115         <nbprofiledirect>
  1116             <classpath>
  1117                 <path path="${run.classpath}"/>
  1118             </classpath>
  1119         </nbprofiledirect>
  1120         <profile classname="${profile.class}"/>
  1121     </target>
  1122     <target depends="profile-init,compile-single" if="profiler.info.jvmargs.agent" name="-profile-applet-pre72">
  1123         <fail unless="netbeans.home">This target only works when run from inside the NetBeans IDE.</fail>
  1124         <nbprofiledirect>
  1125             <classpath>
  1126                 <path path="${run.classpath}"/>
  1127             </classpath>
  1128         </nbprofiledirect>
  1129         <profile classname="sun.applet.AppletViewer">
  1130             <customize>
  1131                 <arg value="${applet.url}"/>
  1132             </customize>
  1133         </profile>
  1134     </target>
  1135     <target depends="profile-init,compile-test-single" if="profiler.info.jvmargs.agent" name="-profile-test-single-pre72">
  1136         <fail unless="netbeans.home">This target only works when run from inside the NetBeans IDE.</fail>
  1137         <nbprofiledirect>
  1138             <classpath>
  1139                 <path path="${run.test.classpath}"/>
  1140             </classpath>
  1141         </nbprofiledirect>
  1142         <junit dir="${profiler.info.dir}" errorproperty="tests.failed" failureproperty="tests.failed" fork="true" jvm="${profiler.info.jvm}" showoutput="true">
  1143             <env key="${profiler.info.pathvar}" path="${profiler.info.agentpath}:${profiler.current.path}"/>
  1144             <jvmarg value="${profiler.info.jvmargs.agent}"/>
  1145             <jvmarg line="${profiler.info.jvmargs}"/>
  1146             <test name="${profile.class}"/>
  1147             <classpath>
  1148                 <path path="${run.test.classpath}"/>
  1149             </classpath>
  1150             <syspropertyset>
  1151                 <propertyref prefix="test-sys-prop."/>
  1152                 <mapper from="test-sys-prop.*" to="*" type="glob"/>
  1153             </syspropertyset>
  1154             <formatter type="brief" usefile="false"/>
  1155             <formatter type="xml"/>
  1156         </junit>
  1157     </target>
  1158     <!--
  1159                 end of pre NB72 profiling section
  1160             -->
  1161     <target if="netbeans.home" name="-profile-check">
  1162         <condition property="profiler.configured">
  1163             <or>
  1164                 <contains casesensitive="true" string="${run.jvmargs.ide}" substring="-agentpath:"/>
  1165                 <contains casesensitive="true" string="${run.jvmargs.ide}" substring="-javaagent:"/>
  1166             </or>
  1167         </condition>
  1168     </target>
  1169     <target depends="-profile-check,-profile-pre72" description="Profile a project in the IDE." if="profiler.configured" name="profile" unless="profiler.info.jvmargs.agent">
  1170         <startprofiler/>
  1171         <antcall target="run"/>
  1172     </target>
  1173     <target depends="-profile-check,-profile-single-pre72" description="Profile a selected class in the IDE." if="profiler.configured" name="profile-single" unless="profiler.info.jvmargs.agent">
  1174         <fail unless="run.class">Must select one file in the IDE or set run.class</fail>
  1175         <startprofiler/>
  1176         <antcall target="run-single"/>
  1177     </target>
  1178     <target depends="-profile-test-single-pre72" description="Profile a selected test in the IDE." name="profile-test-single"/>
  1179     <target depends="-profile-check" description="Profile a selected test in the IDE." if="profiler.configured" name="profile-test" unless="profiler.info.jvmargs">
  1180         <fail unless="test.includes">Must select some files in the IDE or set test.includes</fail>
  1181         <startprofiler/>
  1182         <antcall target="test-single"/>
  1183     </target>
  1184     <target depends="-profile-check" description="Profile a selected class in the IDE." if="profiler.configured" name="profile-test-with-main">
  1185         <fail unless="run.class">Must select one file in the IDE or set run.class</fail>
  1186         <startprofiler/>
  1187         <antcal target="run-test-with-main"/>
  1188     </target>
  1189     <target depends="-profile-check,-profile-applet-pre72" if="profiler.configured" name="profile-applet" unless="profiler.info.jvmargs.agent">
  1190         <fail unless="applet.url">Must select one file in the IDE or set applet.url</fail>
  1191         <startprofiler/>
  1192         <antcall target="run-applet"/>
  1193     </target>
  1194     <!--
  1195                 ===============
  1196                 JAVADOC SECTION
  1197                 ===============
  1198             -->
  1199     <target depends="init" if="have.sources" name="-javadoc-build">
  1200         <mkdir dir="${dist.javadoc.dir}"/>
  1201         <condition else="" property="javadoc.endorsed.classpath.cmd.line.arg" value="-J${endorsed.classpath.cmd.line.arg}">
  1202             <and>
  1203                 <isset property="endorsed.classpath.cmd.line.arg"/>
  1204                 <not>
  1205                     <equals arg1="${endorsed.classpath.cmd.line.arg}" arg2=""/>
  1206                 </not>
  1207             </and>
  1208         </condition>
  1209         <javadoc additionalparam="${javadoc.additionalparam}" author="${javadoc.author}" charset="UTF-8" destdir="${dist.javadoc.dir}" docencoding="UTF-8" encoding="${javadoc.encoding.used}" failonerror="true" noindex="${javadoc.noindex}" nonavbar="${javadoc.nonavbar}" notree="${javadoc.notree}" private="${javadoc.private}" source="${javac.source}" splitindex="${javadoc.splitindex}" use="${javadoc.use}" useexternalfile="true" version="${javadoc.version}" windowtitle="${javadoc.windowtitle}">
  1210             <classpath>
  1211                 <path path="${javac.classpath}"/>
  1212             </classpath>
  1213             <fileset dir="${src.dir}" excludes="*.java,${excludes}" includes="${includes}">
  1214                 <filename name="**/*.java"/>
  1215             </fileset>
  1216             <fileset dir="${src.data.dir}" excludes="*.java,${excludes}" includes="${includes}">
  1217                 <filename name="**/*.java"/>
  1218             </fileset>
  1219             <fileset dir="${build.generated.sources.dir}" erroronmissingdir="false">
  1220                 <include name="**/*.java"/>
  1221                 <exclude name="*.java"/>
  1222             </fileset>
  1223             <arg line="${javadoc.endorsed.classpath.cmd.line.arg}"/>
  1224         </javadoc>
  1225         <copy todir="${dist.javadoc.dir}">
  1226             <fileset dir="${src.dir}" excludes="${excludes}" includes="${includes}">
  1227                 <filename name="**/doc-files/**"/>
  1228             </fileset>
  1229             <fileset dir="${src.data.dir}" excludes="${excludes}" includes="${includes}">
  1230                 <filename name="**/doc-files/**"/>
  1231             </fileset>
  1232             <fileset dir="${build.generated.sources.dir}" erroronmissingdir="false">
  1233                 <include name="**/doc-files/**"/>
  1234             </fileset>
  1235         </copy>
  1236     </target>
  1237     <target depends="init,-javadoc-build" if="netbeans.home" name="-javadoc-browse" unless="no.javadoc.preview">
  1238         <nbbrowse file="${dist.javadoc.dir}/index.html"/>
  1239     </target>
  1240     <target depends="init,-javadoc-build,-javadoc-browse" description="Build Javadoc." name="javadoc"/>
  1241     <!--
  1242                 =========================
  1243                 TEST COMPILATION SECTION
  1244                 =========================
  1245             -->
  1246     <target depends="init,compile" if="have.tests" name="-pre-pre-compile-test">
  1247         <mkdir dir="${build.test.classes.dir}"/>
  1248     </target>
  1249     <target name="-pre-compile-test">
  1250         <!-- Empty placeholder for easier customization. -->
  1251         <!-- You can override this target in the ../build.xml file. -->
  1252     </target>
  1253     <target if="do.depend.true" name="-compile-test-depend">
  1254         <j2seproject3:depend classpath="${javac.test.classpath}" destdir="${build.test.classes.dir}" srcdir="${test.src.dir}"/>
  1255     </target>
  1256     <target depends="init,deps-jar,compile,-pre-pre-compile-test,-pre-compile-test,-compile-test-depend" if="have.tests" name="-do-compile-test">
  1257         <j2seproject3:javac apgeneratedsrcdir="${build.test.classes.dir}" classpath="${javac.test.classpath}" debug="true" destdir="${build.test.classes.dir}" processorpath="${javac.test.processorpath}" srcdir="${test.src.dir}"/>
  1258         <copy todir="${build.test.classes.dir}">
  1259             <fileset dir="${test.src.dir}" excludes="${build.classes.excludes},${excludes}" includes="${includes}"/>
  1260         </copy>
  1261     </target>
  1262     <target name="-post-compile-test">
  1263         <!-- Empty placeholder for easier customization. -->
  1264         <!-- You can override this target in the ../build.xml file. -->
  1265     </target>
  1266     <target depends="init,compile,-pre-pre-compile-test,-pre-compile-test,-do-compile-test,-post-compile-test" name="compile-test"/>
  1267     <target name="-pre-compile-test-single">
  1268         <!-- Empty placeholder for easier customization. -->
  1269         <!-- You can override this target in the ../build.xml file. -->
  1270     </target>
  1271     <target depends="init,deps-jar,compile,-pre-pre-compile-test,-pre-compile-test-single" if="have.tests" name="-do-compile-test-single">
  1272         <fail unless="javac.includes">Must select some files in the IDE or set javac.includes</fail>
  1273         <j2seproject3:force-recompile destdir="${build.test.classes.dir}"/>
  1274         <j2seproject3:javac apgeneratedsrcdir="${build.test.classes.dir}" classpath="${javac.test.classpath}" debug="true" destdir="${build.test.classes.dir}" excludes="" includes="${javac.includes}" processorpath="${javac.test.processorpath}" sourcepath="${test.src.dir}" srcdir="${test.src.dir}"/>
  1275         <copy todir="${build.test.classes.dir}">
  1276             <fileset dir="${test.src.dir}" excludes="${build.classes.excludes},${excludes}" includes="${includes}"/>
  1277         </copy>
  1278     </target>
  1279     <target name="-post-compile-test-single">
  1280         <!-- Empty placeholder for easier customization. -->
  1281         <!-- You can override this target in the ../build.xml file. -->
  1282     </target>
  1283     <target depends="init,compile,-pre-pre-compile-test,-pre-compile-test-single,-do-compile-test-single,-post-compile-test-single" name="compile-test-single"/>
  1284     <!--
  1285                 =======================
  1286                 TEST EXECUTION SECTION
  1287                 =======================
  1288             -->
  1289     <target depends="init" if="have.tests" name="-pre-test-run">
  1290         <mkdir dir="${build.test.results.dir}"/>
  1291     </target>
  1292     <target depends="init,compile-test,-pre-test-run" if="have.tests" name="-do-test-run">
  1293         <j2seproject3:test testincludes="**/*Test.java"/>
  1294     </target>
  1295     <target depends="init,compile-test,-pre-test-run,-do-test-run" if="have.tests" name="-post-test-run">
  1296         <fail if="tests.failed" unless="ignore.failing.tests">Some tests failed; see details above.</fail>
  1297     </target>
  1298     <target depends="init" if="have.tests" name="test-report"/>
  1299     <target depends="init" if="netbeans.home+have.tests" name="-test-browse"/>
  1300     <target depends="init,compile-test,-pre-test-run,-do-test-run,test-report,-post-test-run,-test-browse" description="Run unit tests." name="test"/>
  1301     <target depends="init" if="have.tests" name="-pre-test-run-single">
  1302         <mkdir dir="${build.test.results.dir}"/>
  1303     </target>
  1304     <target depends="init,compile-test-single,-pre-test-run-single" if="have.tests" name="-do-test-run-single">
  1305         <fail unless="test.includes">Must select some files in the IDE or set test.includes</fail>
  1306         <j2seproject3:test excludes="" includes="${test.includes}" testincludes="${test.includes}"/>
  1307     </target>
  1308     <target depends="init,compile-test-single,-pre-test-run-single,-do-test-run-single" if="have.tests" name="-post-test-run-single">
  1309         <fail if="tests.failed" unless="ignore.failing.tests">Some tests failed; see details above.</fail>
  1310     </target>
  1311     <target depends="init,compile-test-single,-pre-test-run-single,-do-test-run-single,-post-test-run-single" description="Run single unit test." name="test-single"/>
  1312     <target depends="init,compile-test-single,-pre-test-run-single" if="have.tests" name="-do-test-run-single-method">
  1313         <fail unless="test.class">Must select some files in the IDE or set test.class</fail>
  1314         <fail unless="test.method">Must select some method in the IDE or set test.method</fail>
  1315         <j2seproject3:test excludes="" includes="${javac.includes}" testincludes="${test.class}" testmethods="${test.method}"/>
  1316     </target>
  1317     <target depends="init,compile-test-single,-pre-test-run-single,-do-test-run-single-method" if="have.tests" name="-post-test-run-single-method">
  1318         <fail if="tests.failed" unless="ignore.failing.tests">Some tests failed; see details above.</fail>
  1319     </target>
  1320     <target depends="init,compile-test-single,-pre-test-run-single,-do-test-run-single-method,-post-test-run-single-method" description="Run single unit test." name="test-single-method"/>
  1321     <!--
  1322                 =======================
  1323                 TEST DEBUGGING SECTION
  1324                 =======================
  1325             -->
  1326     <target depends="init,compile-test-single,-pre-test-run-single" if="have.tests" name="-debug-start-debuggee-test">
  1327         <fail unless="test.class">Must select one file in the IDE or set test.class</fail>
  1328         <j2seproject3:test-debug excludes="" includes="${javac.includes}" testClass="${test.class}" testincludes="${javac.includes}"/>
  1329     </target>
  1330     <target depends="init,compile-test-single,-pre-test-run-single" if="have.tests" name="-debug-start-debuggee-test-method">
  1331         <fail unless="test.class">Must select one file in the IDE or set test.class</fail>
  1332         <fail unless="test.method">Must select some method in the IDE or set test.method</fail>
  1333         <j2seproject3:test-debug excludes="" includes="${javac.includes}" testClass="${test.class}" testMethod="${test.method}" testincludes="${test.class}" testmethods="${test.method}"/>
  1334     </target>
  1335     <target depends="init,compile-test" if="netbeans.home+have.tests" name="-debug-start-debugger-test">
  1336         <j2seproject1:nbjpdastart classpath="${debug.test.classpath}" name="${test.class}"/>
  1337     </target>
  1338     <target depends="init,compile-test-single,-debug-start-debugger-test,-debug-start-debuggee-test" name="debug-test"/>
  1339     <target depends="init,compile-test-single,-debug-start-debugger-test,-debug-start-debuggee-test-method" name="debug-test-method"/>
  1340     <target depends="init,-pre-debug-fix,compile-test-single" if="netbeans.home" name="-do-debug-fix-test">
  1341         <j2seproject1:nbjpdareload dir="${build.test.classes.dir}"/>
  1342     </target>
  1343     <target depends="init,-pre-debug-fix,-do-debug-fix-test" if="netbeans.home" name="debug-fix-test"/>
  1344     <!--
  1345                 =========================
  1346                 APPLET EXECUTION SECTION
  1347                 =========================
  1348             -->
  1349     <target depends="init,compile-single" name="run-applet">
  1350         <fail unless="applet.url">Must select one file in the IDE or set applet.url</fail>
  1351         <j2seproject1:java classname="sun.applet.AppletViewer">
  1352             <customize>
  1353                 <arg value="${applet.url}"/>
  1354             </customize>
  1355         </j2seproject1:java>
  1356     </target>
  1357     <!--
  1358                 =========================
  1359                 APPLET DEBUGGING  SECTION
  1360                 =========================
  1361             -->
  1362     <target depends="init,compile-single" if="netbeans.home" name="-debug-start-debuggee-applet">
  1363         <fail unless="applet.url">Must select one file in the IDE or set applet.url</fail>
  1364         <j2seproject3:debug classname="sun.applet.AppletViewer">
  1365             <customize>
  1366                 <arg value="${applet.url}"/>
  1367             </customize>
  1368         </j2seproject3:debug>
  1369     </target>
  1370     <target depends="init,compile-single,-debug-start-debugger,-debug-start-debuggee-applet" if="netbeans.home" name="debug-applet"/>
  1371     <!--
  1372                 ===============
  1373                 CLEANUP SECTION
  1374                 ===============
  1375             -->
  1376     <target name="-deps-clean-init" unless="built-clean.properties">
  1377         <property location="${build.dir}/built-clean.properties" name="built-clean.properties"/>
  1378         <delete file="${built-clean.properties}" quiet="true"/>
  1379     </target>
  1380     <target if="already.built.clean.${basedir}" name="-warn-already-built-clean">
  1381         <echo level="warn" message="Cycle detected: sql-dk was already built"/>
  1382     </target>
  1383     <target depends="init,-deps-clean-init" name="deps-clean" unless="no.deps">
  1384         <mkdir dir="${build.dir}"/>
  1385         <touch file="${built-clean.properties}" verbose="false"/>
  1386         <property file="${built-clean.properties}" prefix="already.built.clean."/>
  1387         <antcall target="-warn-already-built-clean"/>
  1388         <propertyfile file="${built-clean.properties}">
  1389             <entry key="${basedir}" value=""/>
  1390         </propertyfile>
  1391     </target>
  1392     <target depends="init" name="-do-clean">
  1393         <delete dir="${build.dir}"/>
  1394         <delete dir="${dist.dir}" followsymlinks="false" includeemptydirs="true"/>
  1395     </target>
  1396     <target name="-post-clean">
  1397         <!-- Empty placeholder for easier customization. -->
  1398         <!-- You can override this target in the ../build.xml file. -->
  1399     </target>
  1400     <target depends="init,deps-clean,-do-clean,-post-clean" description="Clean build products." name="clean"/>
  1401     <target name="-check-call-dep">
  1402         <property file="${call.built.properties}" prefix="already.built."/>
  1403         <condition property="should.call.dep">
  1404             <and>
  1405                 <not>
  1406                     <isset property="already.built.${call.subproject}"/>
  1407                 </not>
  1408                 <available file="${call.script}"/>
  1409             </and>
  1410         </condition>
  1411     </target>
  1412     <target depends="-check-call-dep" if="should.call.dep" name="-maybe-call-dep">
  1413         <ant antfile="${call.script}" inheritall="false" target="${call.target}">
  1414             <propertyset>
  1415                 <propertyref prefix="transfer."/>
  1416                 <mapper from="transfer.*" to="*" type="glob"/>
  1417             </propertyset>
  1418         </ant>
  1419     </target>
  1420 </project>