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