java/JFTable/nbproject/build-impl.xml
author František Kučera <franta-hg@frantovo.cz>
Sat Feb 28 16:51:54 2009 +0100 (2009-02-28)
changeset 0 0359f2c3b3ba
child 1 41e8def54cbd
permissions -rw-r--r--
Prvotní přidání zdrojáků JFTable – Swingová tabulka s možností řazení
     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   - junit compilation
    16   - junit execution
    17   - junit debugging
    18   - applet
    19   - cleanup
    20 
    21         -->
    22 <project xmlns:j2seproject1="http://www.netbeans.org/ns/j2se-project/1" xmlns:j2seproject2="http://www.netbeans.org/ns/j2se-project/2" 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="JFTable-impl">
    23     <target depends="test,jar,javadoc" description="Build and test whole project." name="default"/>
    24     <!-- 
    25                 ======================
    26                 INITIALIZATION SECTION 
    27                 ======================
    28             -->
    29     <target name="-pre-init">
    30         <!-- Empty placeholder for easier customization. -->
    31         <!-- You can override this target in the ../build.xml file. -->
    32     </target>
    33     <target depends="-pre-init" name="-init-private">
    34         <property file="nbproject/private/config.properties"/>
    35         <property file="nbproject/private/configs/${config}.properties"/>
    36         <property file="nbproject/private/private.properties"/>
    37     </target>
    38     <target depends="-pre-init,-init-private" name="-init-user">
    39         <property file="${user.properties.file}"/>
    40         <!-- The two properties below are usually overridden -->
    41         <!-- by the active platform. Just a fallback. -->
    42         <property name="default.javac.source" value="1.4"/>
    43         <property name="default.javac.target" value="1.4"/>
    44     </target>
    45     <target depends="-pre-init,-init-private,-init-user" name="-init-project">
    46         <property file="nbproject/configs/${config}.properties"/>
    47         <property file="nbproject/project.properties"/>
    48     </target>
    49     <target depends="-pre-init,-init-private,-init-user,-init-project,-init-macrodef-property" name="-do-init">
    50         <available file="${manifest.file}" property="manifest.available"/>
    51         <condition property="manifest.available+main.class">
    52             <and>
    53                 <isset property="manifest.available"/>
    54                 <isset property="main.class"/>
    55                 <not>
    56                     <equals arg1="${main.class}" arg2="" trim="true"/>
    57                 </not>
    58             </and>
    59         </condition>
    60         <condition property="manifest.available+main.class+mkdist.available">
    61             <and>
    62                 <istrue value="${manifest.available+main.class}"/>
    63                 <isset property="libs.CopyLibs.classpath"/>
    64             </and>
    65         </condition>
    66         <condition property="have.tests">
    67             <or>
    68                 <available file="${test.src.dir}"/>
    69             </or>
    70         </condition>
    71         <condition property="have.sources">
    72             <or>
    73                 <available file="${src.dir}"/>
    74             </or>
    75         </condition>
    76         <condition property="netbeans.home+have.tests">
    77             <and>
    78                 <isset property="netbeans.home"/>
    79                 <isset property="have.tests"/>
    80             </and>
    81         </condition>
    82         <condition property="no.javadoc.preview">
    83             <and>
    84                 <isset property="javadoc.preview"/>
    85                 <isfalse value="${javadoc.preview}"/>
    86             </and>
    87         </condition>
    88         <property name="run.jvmargs" value=""/>
    89         <property name="javac.compilerargs" value=""/>
    90         <property name="work.dir" value="${basedir}"/>
    91         <condition property="no.deps">
    92             <and>
    93                 <istrue value="${no.dependencies}"/>
    94             </and>
    95         </condition>
    96         <property name="javac.debug" value="true"/>
    97         <property name="javadoc.preview" value="true"/>
    98         <property name="application.args" value=""/>
    99         <property name="source.encoding" value="${file.encoding}"/>
   100         <condition property="javadoc.encoding.used" value="${javadoc.encoding}">
   101             <and>
   102                 <isset property="javadoc.encoding"/>
   103                 <not>
   104                     <equals arg1="${javadoc.encoding}" arg2=""/>
   105                 </not>
   106             </and>
   107         </condition>
   108         <property name="javadoc.encoding.used" value="${source.encoding}"/>
   109         <property name="includes" value="**"/>
   110         <property name="excludes" value=""/>
   111         <property name="do.depend" value="false"/>
   112         <condition property="do.depend.true">
   113             <istrue value="${do.depend}"/>
   114         </condition>
   115         <condition else="" property="javac.compilerargs.jaxws" value="-Djava.endorsed.dirs='${jaxws.endorsed.dir}'">
   116             <and>
   117                 <isset property="jaxws.endorsed.dir"/>
   118                 <available file="nbproject/jaxws-build.xml"/>
   119             </and>
   120         </condition>
   121     </target>
   122     <target name="-post-init">
   123         <!-- Empty placeholder for easier customization. -->
   124         <!-- You can override this target in the ../build.xml file. -->
   125     </target>
   126     <target depends="-pre-init,-init-private,-init-user,-init-project,-do-init" name="-init-check">
   127         <fail unless="src.dir">Must set src.dir</fail>
   128         <fail unless="test.src.dir">Must set test.src.dir</fail>
   129         <fail unless="build.dir">Must set build.dir</fail>
   130         <fail unless="dist.dir">Must set dist.dir</fail>
   131         <fail unless="build.classes.dir">Must set build.classes.dir</fail>
   132         <fail unless="dist.javadoc.dir">Must set dist.javadoc.dir</fail>
   133         <fail unless="build.test.classes.dir">Must set build.test.classes.dir</fail>
   134         <fail unless="build.test.results.dir">Must set build.test.results.dir</fail>
   135         <fail unless="build.classes.excludes">Must set build.classes.excludes</fail>
   136         <fail unless="dist.jar">Must set dist.jar</fail>
   137     </target>
   138     <target name="-init-macrodef-property">
   139         <macrodef name="property" uri="http://www.netbeans.org/ns/j2se-project/1">
   140             <attribute name="name"/>
   141             <attribute name="value"/>
   142             <sequential>
   143                 <property name="@{name}" value="${@{value}}"/>
   144             </sequential>
   145         </macrodef>
   146     </target>
   147     <target name="-init-macrodef-javac">
   148         <macrodef name="javac" uri="http://www.netbeans.org/ns/j2se-project/3">
   149             <attribute default="${src.dir}" name="srcdir"/>
   150             <attribute default="${build.classes.dir}" name="destdir"/>
   151             <attribute default="${javac.classpath}" name="classpath"/>
   152             <attribute default="${includes}" name="includes"/>
   153             <attribute default="${excludes}" name="excludes"/>
   154             <attribute default="${javac.debug}" name="debug"/>
   155             <attribute default="" name="sourcepath"/>
   156             <element name="customize" optional="true"/>
   157             <sequential>
   158                 <javac debug="@{debug}" deprecation="${javac.deprecation}" destdir="@{destdir}" encoding="${source.encoding}" excludes="@{excludes}" includeantruntime="false" includes="@{includes}" source="${javac.source}" sourcepath="@{sourcepath}" srcdir="@{srcdir}" target="${javac.target}">
   159                     <classpath>
   160                         <path path="@{classpath}"/>
   161                     </classpath>
   162                     <compilerarg line="${javac.compilerargs} ${javac.compilerargs.jaxws}"/>
   163                     <customize/>
   164                 </javac>
   165             </sequential>
   166         </macrodef>
   167         <macrodef name="depend" uri="http://www.netbeans.org/ns/j2se-project/3">
   168             <attribute default="${src.dir}" name="srcdir"/>
   169             <attribute default="${build.classes.dir}" name="destdir"/>
   170             <attribute default="${javac.classpath}" name="classpath"/>
   171             <sequential>
   172                 <depend cache="${build.dir}/depcache" destdir="@{destdir}" excludes="${excludes}" includes="${includes}" srcdir="@{srcdir}">
   173                     <classpath>
   174                         <path path="@{classpath}"/>
   175                     </classpath>
   176                 </depend>
   177             </sequential>
   178         </macrodef>
   179         <macrodef name="force-recompile" uri="http://www.netbeans.org/ns/j2se-project/3">
   180             <attribute default="${build.classes.dir}" name="destdir"/>
   181             <sequential>
   182                 <fail unless="javac.includes">Must set javac.includes</fail>
   183                 <pathconvert pathsep="," property="javac.includes.binary">
   184                     <path>
   185                         <filelist dir="@{destdir}" files="${javac.includes}"/>
   186                     </path>
   187                     <globmapper from="*.java" to="*.class"/>
   188                 </pathconvert>
   189                 <delete>
   190                     <files includes="${javac.includes.binary}"/>
   191                 </delete>
   192             </sequential>
   193         </macrodef>
   194     </target>
   195     <target name="-init-macrodef-junit">
   196         <macrodef name="junit" uri="http://www.netbeans.org/ns/j2se-project/3">
   197             <attribute default="${includes}" name="includes"/>
   198             <attribute default="${excludes}" name="excludes"/>
   199             <attribute default="**" name="testincludes"/>
   200             <sequential>
   201                 <junit dir="${work.dir}" errorproperty="tests.failed" failureproperty="tests.failed" fork="true" showoutput="true">
   202                     <batchtest todir="${build.test.results.dir}">
   203                         <fileset dir="${test.src.dir}" excludes="@{excludes},${excludes}" includes="@{includes}">
   204                             <filename name="@{testincludes}"/>
   205                         </fileset>
   206                     </batchtest>
   207                     <classpath>
   208                         <path path="${run.test.classpath}"/>
   209                     </classpath>
   210                     <syspropertyset>
   211                         <propertyref prefix="test-sys-prop."/>
   212                         <mapper from="test-sys-prop.*" to="*" type="glob"/>
   213                     </syspropertyset>
   214                     <formatter type="brief" usefile="false"/>
   215                     <formatter type="xml"/>
   216                     <jvmarg line="${run.jvmargs}"/>
   217                 </junit>
   218             </sequential>
   219         </macrodef>
   220     </target>
   221     <target name="-init-macrodef-nbjpda">
   222         <macrodef name="nbjpdastart" uri="http://www.netbeans.org/ns/j2se-project/1">
   223             <attribute default="${main.class}" name="name"/>
   224             <attribute default="${debug.classpath}" name="classpath"/>
   225             <attribute default="" name="stopclassname"/>
   226             <sequential>
   227                 <nbjpdastart addressproperty="jpda.address" name="@{name}" stopclassname="@{stopclassname}" transport="dt_socket">
   228                     <classpath>
   229                         <path path="@{classpath}"/>
   230                     </classpath>
   231                 </nbjpdastart>
   232             </sequential>
   233         </macrodef>
   234         <macrodef name="nbjpdareload" uri="http://www.netbeans.org/ns/j2se-project/1">
   235             <attribute default="${build.classes.dir}" name="dir"/>
   236             <sequential>
   237                 <nbjpdareload>
   238                     <fileset dir="@{dir}" includes="${fix.includes}*.class"/>
   239                 </nbjpdareload>
   240             </sequential>
   241         </macrodef>
   242     </target>
   243     <target name="-init-debug-args">
   244         <property name="version-output" value="java version &quot;${ant.java.version}"/>
   245         <condition property="have-jdk-older-than-1.4">
   246             <or>
   247                 <contains string="${version-output}" substring="java version &quot;1.0"/>
   248                 <contains string="${version-output}" substring="java version &quot;1.1"/>
   249                 <contains string="${version-output}" substring="java version &quot;1.2"/>
   250                 <contains string="${version-output}" substring="java version &quot;1.3"/>
   251             </or>
   252         </condition>
   253         <condition else="-Xdebug" property="debug-args-line" value="-Xdebug -Xnoagent -Djava.compiler=none">
   254             <istrue value="${have-jdk-older-than-1.4}"/>
   255         </condition>
   256     </target>
   257     <target depends="-init-debug-args" name="-init-macrodef-debug">
   258         <macrodef name="debug" uri="http://www.netbeans.org/ns/j2se-project/3">
   259             <attribute default="${main.class}" name="classname"/>
   260             <attribute default="${debug.classpath}" name="classpath"/>
   261             <element name="customize" optional="true"/>
   262             <sequential>
   263                 <java classname="@{classname}" dir="${work.dir}" fork="true">
   264                     <jvmarg line="${debug-args-line}"/>
   265                     <jvmarg value="-Xrunjdwp:transport=dt_socket,address=${jpda.address}"/>
   266                     <jvmarg line="${run.jvmargs}"/>
   267                     <classpath>
   268                         <path path="@{classpath}"/>
   269                     </classpath>
   270                     <syspropertyset>
   271                         <propertyref prefix="run-sys-prop."/>
   272                         <mapper from="run-sys-prop.*" to="*" type="glob"/>
   273                     </syspropertyset>
   274                     <customize/>
   275                 </java>
   276             </sequential>
   277         </macrodef>
   278     </target>
   279     <target name="-init-macrodef-java">
   280         <macrodef name="java" uri="http://www.netbeans.org/ns/j2se-project/1">
   281             <attribute default="${main.class}" name="classname"/>
   282             <element name="customize" optional="true"/>
   283             <sequential>
   284                 <java classname="@{classname}" dir="${work.dir}" fork="true">
   285                     <jvmarg line="${run.jvmargs}"/>
   286                     <classpath>
   287                         <path path="${run.classpath}"/>
   288                     </classpath>
   289                     <syspropertyset>
   290                         <propertyref prefix="run-sys-prop."/>
   291                         <mapper from="run-sys-prop.*" to="*" type="glob"/>
   292                     </syspropertyset>
   293                     <customize/>
   294                 </java>
   295             </sequential>
   296         </macrodef>
   297     </target>
   298     <target name="-init-presetdef-jar">
   299         <presetdef name="jar" uri="http://www.netbeans.org/ns/j2se-project/1">
   300             <jar compress="${jar.compress}" jarfile="${dist.jar}">
   301                 <j2seproject1:fileset dir="${build.classes.dir}"/>
   302             </jar>
   303         </presetdef>
   304     </target>
   305     <target depends="-pre-init,-init-private,-init-user,-init-project,-do-init,-post-init,-init-check,-init-macrodef-property,-init-macrodef-javac,-init-macrodef-junit,-init-macrodef-nbjpda,-init-macrodef-debug,-init-macrodef-java,-init-presetdef-jar" name="init"/>
   306     <!--
   307                 ===================
   308                 COMPILATION SECTION
   309                 ===================
   310             -->
   311     <target depends="init" name="deps-jar" unless="no.deps"/>
   312     <target depends="init,deps-jar" name="-pre-pre-compile">
   313         <mkdir dir="${build.classes.dir}"/>
   314     </target>
   315     <target name="-pre-compile">
   316         <!-- Empty placeholder for easier customization. -->
   317         <!-- You can override this target in the ../build.xml file. -->
   318     </target>
   319     <target if="do.depend.true" name="-compile-depend">
   320         <j2seproject3:depend/>
   321     </target>
   322     <target depends="init,deps-jar,-pre-pre-compile,-pre-compile,-compile-depend" if="have.sources" name="-do-compile">
   323         <j2seproject3:javac/>
   324         <copy todir="${build.classes.dir}">
   325             <fileset dir="${src.dir}" excludes="${build.classes.excludes},${excludes}" includes="${includes}"/>
   326         </copy>
   327     </target>
   328     <target name="-post-compile">
   329         <!-- Empty placeholder for easier customization. -->
   330         <!-- You can override this target in the ../build.xml file. -->
   331     </target>
   332     <target depends="init,deps-jar,-pre-pre-compile,-pre-compile,-do-compile,-post-compile" description="Compile project." name="compile"/>
   333     <target name="-pre-compile-single">
   334         <!-- Empty placeholder for easier customization. -->
   335         <!-- You can override this target in the ../build.xml file. -->
   336     </target>
   337     <target depends="init,deps-jar,-pre-pre-compile" name="-do-compile-single">
   338         <fail unless="javac.includes">Must select some files in the IDE or set javac.includes</fail>
   339         <j2seproject3:force-recompile/>
   340         <j2seproject3:javac excludes="" includes="${javac.includes}" sourcepath="${src.dir}"/>
   341     </target>
   342     <target name="-post-compile-single">
   343         <!-- Empty placeholder for easier customization. -->
   344         <!-- You can override this target in the ../build.xml file. -->
   345     </target>
   346     <target depends="init,deps-jar,-pre-pre-compile,-pre-compile-single,-do-compile-single,-post-compile-single" name="compile-single"/>
   347     <!--
   348                 ====================
   349                 JAR BUILDING SECTION
   350                 ====================
   351             -->
   352     <target depends="init" name="-pre-pre-jar">
   353         <dirname file="${dist.jar}" property="dist.jar.dir"/>
   354         <mkdir dir="${dist.jar.dir}"/>
   355     </target>
   356     <target name="-pre-jar">
   357         <!-- Empty placeholder for easier customization. -->
   358         <!-- You can override this target in the ../build.xml file. -->
   359     </target>
   360     <target depends="init,compile,-pre-pre-jar,-pre-jar" name="-do-jar-without-manifest" unless="manifest.available">
   361         <j2seproject1:jar/>
   362     </target>
   363     <target depends="init,compile,-pre-pre-jar,-pre-jar" if="manifest.available" name="-do-jar-with-manifest" unless="manifest.available+main.class">
   364         <j2seproject1:jar manifest="${manifest.file}"/>
   365     </target>
   366     <target depends="init,compile,-pre-pre-jar,-pre-jar" if="manifest.available+main.class" name="-do-jar-with-mainclass" unless="manifest.available+main.class+mkdist.available">
   367         <j2seproject1:jar manifest="${manifest.file}">
   368             <j2seproject1:manifest>
   369                 <j2seproject1:attribute name="Main-Class" value="${main.class}"/>
   370             </j2seproject1:manifest>
   371         </j2seproject1:jar>
   372         <echo>To run this application from the command line without Ant, try:</echo>
   373         <property location="${build.classes.dir}" name="build.classes.dir.resolved"/>
   374         <property location="${dist.jar}" name="dist.jar.resolved"/>
   375         <pathconvert property="run.classpath.with.dist.jar">
   376             <path path="${run.classpath}"/>
   377             <map from="${build.classes.dir.resolved}" to="${dist.jar.resolved}"/>
   378         </pathconvert>
   379         <echo>java -cp "${run.classpath.with.dist.jar}" ${main.class}</echo>
   380     </target>
   381     <target depends="init,compile,-pre-pre-jar,-pre-jar" if="manifest.available+main.class+mkdist.available" name="-do-jar-with-libraries">
   382         <property location="${build.classes.dir}" name="build.classes.dir.resolved"/>
   383         <pathconvert property="run.classpath.without.build.classes.dir">
   384             <path path="${run.classpath}"/>
   385             <map from="${build.classes.dir.resolved}" to=""/>
   386         </pathconvert>
   387         <pathconvert pathsep=" " property="jar.classpath">
   388             <path path="${run.classpath.without.build.classes.dir}"/>
   389             <chainedmapper>
   390                 <flattenmapper/>
   391                 <globmapper from="*" to="lib/*"/>
   392             </chainedmapper>
   393         </pathconvert>
   394         <taskdef classname="org.netbeans.modules.java.j2seproject.copylibstask.CopyLibs" classpath="${libs.CopyLibs.classpath}" name="copylibs"/>
   395         <copylibs compress="${jar.compress}" jarfile="${dist.jar}" manifest="${manifest.file}" runtimeclasspath="${run.classpath.without.build.classes.dir}">
   396             <fileset dir="${build.classes.dir}"/>
   397             <manifest>
   398                 <attribute name="Main-Class" value="${main.class}"/>
   399                 <attribute name="Class-Path" value="${jar.classpath}"/>
   400             </manifest>
   401         </copylibs>
   402         <echo>To run this application from the command line without Ant, try:</echo>
   403         <property location="${dist.jar}" name="dist.jar.resolved"/>
   404         <echo>java -jar "${dist.jar.resolved}"</echo>
   405     </target>
   406     <target name="-post-jar">
   407         <!-- Empty placeholder for easier customization. -->
   408         <!-- You can override this target in the ../build.xml file. -->
   409     </target>
   410     <target depends="init,compile,-pre-jar,-do-jar-with-manifest,-do-jar-without-manifest,-do-jar-with-mainclass,-do-jar-with-libraries,-post-jar" description="Build JAR." name="jar"/>
   411     <!--
   412                 =================
   413                 EXECUTION SECTION
   414                 =================
   415             -->
   416     <target depends="init,compile" description="Run a main class." name="run">
   417         <j2seproject1:java>
   418             <customize>
   419                 <arg line="${application.args}"/>
   420             </customize>
   421         </j2seproject1:java>
   422     </target>
   423     <target name="-do-not-recompile">
   424         <property name="javac.includes.binary" value=""/>
   425     </target>
   426     <target depends="init,-do-not-recompile,compile-single" name="run-single">
   427         <fail unless="run.class">Must select one file in the IDE or set run.class</fail>
   428         <j2seproject1:java classname="${run.class}"/>
   429     </target>
   430     <!--
   431                 =================
   432                 DEBUGGING SECTION
   433                 =================
   434             -->
   435     <target depends="init" if="netbeans.home" name="-debug-start-debugger">
   436         <j2seproject1:nbjpdastart name="${debug.class}"/>
   437     </target>
   438     <target depends="init,compile" name="-debug-start-debuggee">
   439         <j2seproject3:debug>
   440             <customize>
   441                 <arg line="${application.args}"/>
   442             </customize>
   443         </j2seproject3:debug>
   444     </target>
   445     <target depends="init,compile,-debug-start-debugger,-debug-start-debuggee" description="Debug project in IDE." if="netbeans.home" name="debug"/>
   446     <target depends="init" if="netbeans.home" name="-debug-start-debugger-stepinto">
   447         <j2seproject1:nbjpdastart stopclassname="${main.class}"/>
   448     </target>
   449     <target depends="init,compile,-debug-start-debugger-stepinto,-debug-start-debuggee" if="netbeans.home" name="debug-stepinto"/>
   450     <target depends="init,compile-single" if="netbeans.home" name="-debug-start-debuggee-single">
   451         <fail unless="debug.class">Must select one file in the IDE or set debug.class</fail>
   452         <j2seproject3:debug classname="${debug.class}"/>
   453     </target>
   454     <target depends="init,-do-not-recompile,compile-single,-debug-start-debugger,-debug-start-debuggee-single" if="netbeans.home" name="debug-single"/>
   455     <target depends="init" name="-pre-debug-fix">
   456         <fail unless="fix.includes">Must set fix.includes</fail>
   457         <property name="javac.includes" value="${fix.includes}.java"/>
   458     </target>
   459     <target depends="init,-pre-debug-fix,compile-single" if="netbeans.home" name="-do-debug-fix">
   460         <j2seproject1:nbjpdareload/>
   461     </target>
   462     <target depends="init,-pre-debug-fix,-do-debug-fix" if="netbeans.home" name="debug-fix"/>
   463     <!--
   464                 ===============
   465                 JAVADOC SECTION
   466                 ===============
   467             -->
   468     <target depends="init" name="-javadoc-build">
   469         <mkdir dir="${dist.javadoc.dir}"/>
   470         <javadoc additionalparam="${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}">
   471             <classpath>
   472                 <path path="${javac.classpath}"/>
   473             </classpath>
   474             <fileset dir="${src.dir}" excludes="${excludes}" includes="${includes}">
   475                 <filename name="**/*.java"/>
   476             </fileset>
   477         </javadoc>
   478     </target>
   479     <target depends="init,-javadoc-build" if="netbeans.home" name="-javadoc-browse" unless="no.javadoc.preview">
   480         <nbbrowse file="${dist.javadoc.dir}/index.html"/>
   481     </target>
   482     <target depends="init,-javadoc-build,-javadoc-browse" description="Build Javadoc." name="javadoc"/>
   483     <!--
   484                 =========================
   485                 JUNIT COMPILATION SECTION
   486                 =========================
   487             -->
   488     <target depends="init,compile" if="have.tests" name="-pre-pre-compile-test">
   489         <mkdir dir="${build.test.classes.dir}"/>
   490     </target>
   491     <target name="-pre-compile-test">
   492         <!-- Empty placeholder for easier customization. -->
   493         <!-- You can override this target in the ../build.xml file. -->
   494     </target>
   495     <target if="do.depend.true" name="-compile-test-depend">
   496         <j2seproject3:depend classpath="${javac.test.classpath}" destdir="${build.test.classes.dir}" srcdir="${test.src.dir}"/>
   497     </target>
   498     <target depends="init,compile,-pre-pre-compile-test,-pre-compile-test,-compile-test-depend" if="have.tests" name="-do-compile-test">
   499         <j2seproject3:javac classpath="${javac.test.classpath}" debug="true" destdir="${build.test.classes.dir}" srcdir="${test.src.dir}"/>
   500         <copy todir="${build.test.classes.dir}">
   501             <fileset dir="${test.src.dir}" excludes="${build.classes.excludes},${excludes}" includes="${includes}"/>
   502         </copy>
   503     </target>
   504     <target name="-post-compile-test">
   505         <!-- Empty placeholder for easier customization. -->
   506         <!-- You can override this target in the ../build.xml file. -->
   507     </target>
   508     <target depends="init,compile,-pre-pre-compile-test,-pre-compile-test,-do-compile-test,-post-compile-test" name="compile-test"/>
   509     <target name="-pre-compile-test-single">
   510         <!-- Empty placeholder for easier customization. -->
   511         <!-- You can override this target in the ../build.xml file. -->
   512     </target>
   513     <target depends="init,compile,-pre-pre-compile-test,-pre-compile-test-single" if="have.tests" name="-do-compile-test-single">
   514         <fail unless="javac.includes">Must select some files in the IDE or set javac.includes</fail>
   515         <j2seproject3:force-recompile destdir="${build.test.classes.dir}"/>
   516         <j2seproject3:javac classpath="${javac.test.classpath}" debug="true" destdir="${build.test.classes.dir}" excludes="" includes="${javac.includes}" sourcepath="${test.src.dir}" srcdir="${test.src.dir}"/>
   517         <copy todir="${build.test.classes.dir}">
   518             <fileset dir="${test.src.dir}" excludes="${build.classes.excludes},${excludes}" includes="${includes}"/>
   519         </copy>
   520     </target>
   521     <target name="-post-compile-test-single">
   522         <!-- Empty placeholder for easier customization. -->
   523         <!-- You can override this target in the ../build.xml file. -->
   524     </target>
   525     <target depends="init,compile,-pre-pre-compile-test,-pre-compile-test-single,-do-compile-test-single,-post-compile-test-single" name="compile-test-single"/>
   526     <!--
   527                 =======================
   528                 JUNIT EXECUTION SECTION
   529                 =======================
   530             -->
   531     <target depends="init" if="have.tests" name="-pre-test-run">
   532         <mkdir dir="${build.test.results.dir}"/>
   533     </target>
   534     <target depends="init,compile-test,-pre-test-run" if="have.tests" name="-do-test-run">
   535         <j2seproject3:junit testincludes="**/*Test.java"/>
   536     </target>
   537     <target depends="init,compile-test,-pre-test-run,-do-test-run" if="have.tests" name="-post-test-run">
   538         <fail if="tests.failed">Some tests failed; see details above.</fail>
   539     </target>
   540     <target depends="init" if="have.tests" name="test-report"/>
   541     <target depends="init" if="netbeans.home+have.tests" name="-test-browse"/>
   542     <target depends="init,compile-test,-pre-test-run,-do-test-run,test-report,-post-test-run,-test-browse" description="Run unit tests." name="test"/>
   543     <target depends="init" if="have.tests" name="-pre-test-run-single">
   544         <mkdir dir="${build.test.results.dir}"/>
   545     </target>
   546     <target depends="init,compile-test-single,-pre-test-run-single" if="have.tests" name="-do-test-run-single">
   547         <fail unless="test.includes">Must select some files in the IDE or set test.includes</fail>
   548         <j2seproject3:junit excludes="" includes="${test.includes}"/>
   549     </target>
   550     <target depends="init,compile-test-single,-pre-test-run-single,-do-test-run-single" if="have.tests" name="-post-test-run-single">
   551         <fail if="tests.failed">Some tests failed; see details above.</fail>
   552     </target>
   553     <target depends="init,-do-not-recompile,compile-test-single,-pre-test-run-single,-do-test-run-single,-post-test-run-single" description="Run single unit test." name="test-single"/>
   554     <!--
   555                 =======================
   556                 JUNIT DEBUGGING SECTION
   557                 =======================
   558             -->
   559     <target depends="init,compile-test" if="have.tests" name="-debug-start-debuggee-test">
   560         <fail unless="test.class">Must select one file in the IDE or set test.class</fail>
   561         <property location="${build.test.results.dir}/TEST-${test.class}.xml" name="test.report.file"/>
   562         <delete file="${test.report.file}"/>
   563         <mkdir dir="${build.test.results.dir}"/>
   564         <j2seproject3:debug classname="org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner" classpath="${ant.home}/lib/ant.jar:${ant.home}/lib/ant-junit.jar:${debug.test.classpath}">
   565             <customize>
   566                 <syspropertyset>
   567                     <propertyref prefix="test-sys-prop."/>
   568                     <mapper from="test-sys-prop.*" to="*" type="glob"/>
   569                 </syspropertyset>
   570                 <arg value="${test.class}"/>
   571                 <arg value="showoutput=true"/>
   572                 <arg value="formatter=org.apache.tools.ant.taskdefs.optional.junit.BriefJUnitResultFormatter"/>
   573                 <arg value="formatter=org.apache.tools.ant.taskdefs.optional.junit.XMLJUnitResultFormatter,${test.report.file}"/>
   574             </customize>
   575         </j2seproject3:debug>
   576     </target>
   577     <target depends="init,compile-test" if="netbeans.home+have.tests" name="-debug-start-debugger-test">
   578         <j2seproject1:nbjpdastart classpath="${debug.test.classpath}" name="${test.class}"/>
   579     </target>
   580     <target depends="init,-do-not-recompile,compile-test-single,-debug-start-debugger-test,-debug-start-debuggee-test" name="debug-test"/>
   581     <target depends="init,-pre-debug-fix,compile-test-single" if="netbeans.home" name="-do-debug-fix-test">
   582         <j2seproject1:nbjpdareload dir="${build.test.classes.dir}"/>
   583     </target>
   584     <target depends="init,-pre-debug-fix,-do-debug-fix-test" if="netbeans.home" name="debug-fix-test"/>
   585     <!--
   586                 =========================
   587                 APPLET EXECUTION SECTION
   588                 =========================
   589             -->
   590     <target depends="init,compile-single" name="run-applet">
   591         <fail unless="applet.url">Must select one file in the IDE or set applet.url</fail>
   592         <j2seproject1:java classname="sun.applet.AppletViewer">
   593             <customize>
   594                 <arg value="${applet.url}"/>
   595             </customize>
   596         </j2seproject1:java>
   597     </target>
   598     <!--
   599                 =========================
   600                 APPLET DEBUGGING  SECTION
   601                 =========================
   602             -->
   603     <target depends="init,compile-single" if="netbeans.home" name="-debug-start-debuggee-applet">
   604         <fail unless="applet.url">Must select one file in the IDE or set applet.url</fail>
   605         <j2seproject3:debug classname="sun.applet.AppletViewer">
   606             <customize>
   607                 <arg value="${applet.url}"/>
   608             </customize>
   609         </j2seproject3:debug>
   610     </target>
   611     <target depends="init,compile-single,-debug-start-debugger,-debug-start-debuggee-applet" if="netbeans.home" name="debug-applet"/>
   612     <!--
   613                 ===============
   614                 CLEANUP SECTION
   615                 ===============
   616             -->
   617     <target depends="init" name="deps-clean" unless="no.deps"/>
   618     <target depends="init" name="-do-clean">
   619         <delete dir="${build.dir}"/>
   620         <delete dir="${dist.dir}"/>
   621     </target>
   622     <target name="-post-clean">
   623         <!-- Empty placeholder for easier customization. -->
   624         <!-- You can override this target in the ../build.xml file. -->
   625     </target>
   626     <target depends="init,deps-clean,-do-clean,-post-clean" description="Clean build products." name="clean"/>
   627 </project>