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