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