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