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