samples/friendpackage/nbproject/build-impl.xml
author Jaroslav Tulach <jtulach@netbeans.org>
Sat, 14 Jun 2008 09:50:27 +0200
changeset 1 de3e5a6c990b
child 2 d494ad06dbe7
permissions -rw-r--r--
build files should not be ignored
     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 name="friendpackage-impl" default="default" basedir=".." xmlns:j2seproject3="http://www.netbeans.org/ns/j2se-project/3" xmlns:j2seproject2="http://www.netbeans.org/ns/j2se-project/2" xmlns:j2seproject1="http://www.netbeans.org/ns/j2se-project/1">
    23     <target name="default" depends="test,jar,javadoc" description="Build and test whole project."/>
    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 name="-init-private" depends="-pre-init">
    34         <property file="nbproject/private/private.properties"/>
    35     </target>
    36     <target name="-init-user" depends="-pre-init,-init-private">
    37         <property file="${user.properties.file}"/>
    38         <!-- The two properties below are usually overridden -->
    39         <!-- by the active platform. Just a fallback. -->
    40         <property name="default.javac.source" value="1.4"/>
    41         <property name="default.javac.target" value="1.4"/>
    42     </target>
    43     <target name="-init-project" depends="-pre-init,-init-private,-init-user">
    44         <property file="nbproject/project.properties"/>
    45     </target>
    46     <target name="-do-init" depends="-pre-init,-init-private,-init-user,-init-project,-init-macrodef-property">
    47         <available file="${manifest.file}" property="manifest.available"/>
    48         <condition property="manifest.available+main.class">
    49             <and>
    50                 <isset property="manifest.available"/>
    51                 <isset property="main.class"/>
    52                 <not>
    53                     <equals arg1="${main.class}" arg2="" trim="true"/>
    54                 </not>
    55             </and>
    56         </condition>
    57         <condition property="manifest.available+main.class+mkdist.available">
    58             <and>
    59                 <istrue value="${manifest.available+main.class}"/>
    60                 <isset property="libs.CopyLibs.classpath"/>
    61             </and>
    62         </condition>
    63         <condition property="have.tests">
    64             <or>
    65                 <available file="${test.src.dir}"/>
    66             </or>
    67         </condition>
    68         <condition property="have.sources">
    69             <or>
    70                 <available file="${src.dir}"/>
    71             </or>
    72         </condition>
    73         <condition property="netbeans.home+have.tests">
    74             <and>
    75                 <isset property="netbeans.home"/>
    76                 <isset property="have.tests"/>
    77             </and>
    78         </condition>
    79         <condition property="no.javadoc.preview">
    80             <isfalse value="${javadoc.preview}"/>
    81         </condition>
    82         <property name="run.jvmargs" value=""/>
    83         <property name="javac.compilerargs" value=""/>
    84         <property name="work.dir" value="${basedir}"/>
    85         <condition property="no.deps">
    86             <and>
    87                 <istrue value="${no.dependencies}"/>
    88             </and>
    89         </condition>
    90         <property name="javac.debug" value="true"/>
    91         <property name="javadoc.preview" value="true"/>
    92         <property name="application.args" value=""/>
    93     </target>
    94     <target name="-post-init">
    95         <!-- Empty placeholder for easier customization. -->
    96         <!-- You can override this target in the ../build.xml file. -->
    97     </target>
    98     <target name="-init-check" depends="-pre-init,-init-private,-init-user,-init-project,-do-init">
    99         <fail unless="src.dir">Must set src.dir</fail>
   100         <fail unless="test.src.dir">Must set test.src.dir</fail>
   101         <fail unless="build.dir">Must set build.dir</fail>
   102         <fail unless="dist.dir">Must set dist.dir</fail>
   103         <fail unless="build.classes.dir">Must set build.classes.dir</fail>
   104         <fail unless="dist.javadoc.dir">Must set dist.javadoc.dir</fail>
   105         <fail unless="build.test.classes.dir">Must set build.test.classes.dir</fail>
   106         <fail unless="build.test.results.dir">Must set build.test.results.dir</fail>
   107         <fail unless="build.classes.excludes">Must set build.classes.excludes</fail>
   108         <fail unless="dist.jar">Must set dist.jar</fail>
   109     </target>
   110     <target name="-init-macrodef-property">
   111         <macrodef name="property" uri="http://www.netbeans.org/ns/j2se-project/1">
   112             <attribute name="name"/>
   113             <attribute name="value"/>
   114             <sequential>
   115                 <property name="@{name}" value="${@{value}}"/>
   116             </sequential>
   117         </macrodef>
   118     </target>
   119     <target name="-init-macrodef-javac">
   120         <macrodef name="javac" uri="http://www.netbeans.org/ns/j2se-project/3">
   121             <attribute name="srcdir" default="${src.dir}"/>
   122             <attribute name="destdir" default="${build.classes.dir}"/>
   123             <attribute name="classpath" default="${javac.classpath}"/>
   124             <attribute name="debug" default="${javac.debug}"/>
   125             <element name="customize" optional="true"/>
   126             <sequential>
   127                 <javac srcdir="@{srcdir}" destdir="@{destdir}" debug="@{debug}" deprecation="${javac.deprecation}" source="${javac.source}" target="${javac.target}" includeantruntime="false">
   128                     <classpath>
   129                         <path path="@{classpath}"/>
   130                     </classpath>
   131                     <compilerarg line="${javac.compilerargs}"/>
   132                     <customize/>
   133                 </javac>
   134             </sequential>
   135         </macrodef>
   136     </target>
   137     <target name="-init-macrodef-junit">
   138         <macrodef name="junit" uri="http://www.netbeans.org/ns/j2se-project/3">
   139             <attribute name="includes" default="**/*Test.java"/>
   140             <sequential>
   141                 <junit showoutput="true" fork="true" dir="${basedir}" failureproperty="tests.failed" errorproperty="tests.failed">
   142                     <batchtest todir="${build.test.results.dir}">
   143                         <fileset dir="${test.src.dir}" includes="@{includes}"/>
   144                     </batchtest>
   145                     <classpath>
   146                         <path path="${run.test.classpath}"/>
   147                     </classpath>
   148                     <syspropertyset>
   149                         <propertyref prefix="test-sys-prop."/>
   150                         <mapper type="glob" from="test-sys-prop.*" to="*"/>
   151                     </syspropertyset>
   152                     <formatter type="brief" usefile="false"/>
   153                     <formatter type="xml"/>
   154                     <jvmarg line="${run.jvmargs}"/>
   155                 </junit>
   156             </sequential>
   157         </macrodef>
   158     </target>
   159     <target name="-init-macrodef-nbjpda">
   160         <macrodef name="nbjpdastart" uri="http://www.netbeans.org/ns/j2se-project/1">
   161             <attribute name="name" default="${main.class}"/>
   162             <attribute name="classpath" default="${debug.classpath}"/>
   163             <attribute name="stopclassname" default=""/>
   164             <sequential>
   165                 <nbjpdastart transport="dt_socket" addressproperty="jpda.address" name="@{name}" stopclassname="@{stopclassname}">
   166                     <classpath>
   167                         <path path="@{classpath}"/>
   168                     </classpath>
   169                 </nbjpdastart>
   170             </sequential>
   171         </macrodef>
   172         <macrodef name="nbjpdareload" uri="http://www.netbeans.org/ns/j2se-project/1">
   173             <attribute name="dir" default="${build.classes.dir}"/>
   174             <sequential>
   175                 <nbjpdareload>
   176                     <fileset includes="${fix.includes}*.class" dir="@{dir}"/>
   177                 </nbjpdareload>
   178             </sequential>
   179         </macrodef>
   180     </target>
   181     <target name="-init-macrodef-debug">
   182         <macrodef name="debug" uri="http://www.netbeans.org/ns/j2se-project/3">
   183             <attribute name="classname" default="${main.class}"/>
   184             <attribute name="classpath" default="${debug.classpath}"/>
   185             <element name="customize" optional="true"/>
   186             <sequential>
   187                 <java fork="true" classname="@{classname}" dir="${work.dir}">
   188                     <jvmarg value="-Xdebug"/>
   189                     <jvmarg value="-Xnoagent"/>
   190                     <jvmarg value="-Djava.compiler=none"/>
   191                     <jvmarg value="-Xrunjdwp:transport=dt_socket,address=${jpda.address}"/>
   192                     <jvmarg line="${run.jvmargs}"/>
   193                     <classpath>
   194                         <path path="@{classpath}"/>
   195                     </classpath>
   196                     <syspropertyset>
   197                         <propertyref prefix="run-sys-prop."/>
   198                         <mapper type="glob" from="run-sys-prop.*" to="*"/>
   199                     </syspropertyset>
   200                     <customize/>
   201                 </java>
   202             </sequential>
   203         </macrodef>
   204     </target>
   205     <target name="-init-macrodef-java">
   206         <macrodef name="java" uri="http://www.netbeans.org/ns/j2se-project/1">
   207             <attribute name="classname" default="${main.class}"/>
   208             <element name="customize" optional="true"/>
   209             <sequential>
   210                 <java fork="true" classname="@{classname}" dir="${work.dir}">
   211                     <jvmarg line="${run.jvmargs}"/>
   212                     <classpath>
   213                         <path path="${run.classpath}"/>
   214                     </classpath>
   215                     <syspropertyset>
   216                         <propertyref prefix="run-sys-prop."/>
   217                         <mapper type="glob" from="run-sys-prop.*" to="*"/>
   218                     </syspropertyset>
   219                     <customize/>
   220                 </java>
   221             </sequential>
   222         </macrodef>
   223     </target>
   224     <target name="-init-presetdef-jar">
   225         <presetdef name="jar" uri="http://www.netbeans.org/ns/j2se-project/1">
   226             <jar jarfile="${dist.jar}" compress="${jar.compress}">
   227                 <j2seproject1:fileset dir="${build.classes.dir}"/>
   228             </jar>
   229         </presetdef>
   230     </target>
   231     <target name="init" 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"/>
   232     <!--
   233     ===================
   234     COMPILATION SECTION
   235     ===================
   236     -->
   237     <target name="deps-jar" depends="init" unless="no.deps"/>
   238     <target name="-pre-pre-compile" depends="init,deps-jar">
   239         <mkdir dir="${build.classes.dir}"/>
   240     </target>
   241     <target name="-pre-compile">
   242         <!-- Empty placeholder for easier customization. -->
   243         <!-- You can override this target in the ../build.xml file. -->
   244     </target>
   245     <target name="-do-compile" depends="init,deps-jar,-pre-pre-compile,-pre-compile" if="have.sources">
   246         <j2seproject3:javac/>
   247         <copy todir="${build.classes.dir}">
   248             <fileset dir="${src.dir}" excludes="${build.classes.excludes}"/>
   249         </copy>
   250     </target>
   251     <target name="-post-compile">
   252         <!-- Empty placeholder for easier customization. -->
   253         <!-- You can override this target in the ../build.xml file. -->
   254     </target>
   255     <target name="compile" depends="init,deps-jar,-pre-pre-compile,-pre-compile,-do-compile,-post-compile" description="Compile project."/>
   256     <target name="-pre-compile-single">
   257         <!-- Empty placeholder for easier customization. -->
   258         <!-- You can override this target in the ../build.xml file. -->
   259     </target>
   260     <target name="-do-compile-single" depends="init,deps-jar,-pre-pre-compile">
   261         <fail unless="javac.includes">Must select some files in the IDE or set javac.includes</fail>
   262         <j2seproject3:javac>
   263             <customize>
   264                 <patternset includes="${javac.includes}"/>
   265             </customize>
   266         </j2seproject3:javac>
   267     </target>
   268     <target name="-post-compile-single">
   269         <!-- Empty placeholder for easier customization. -->
   270         <!-- You can override this target in the ../build.xml file. -->
   271     </target>
   272     <target name="compile-single" depends="init,deps-jar,-pre-pre-compile,-pre-compile-single,-do-compile-single,-post-compile-single"/>
   273     <!--
   274     ====================
   275     JAR BUILDING SECTION
   276     ====================
   277     -->
   278     <target name="-pre-pre-jar" depends="init">
   279         <dirname property="dist.jar.dir" file="${dist.jar}"/>
   280         <mkdir dir="${dist.jar.dir}"/>
   281     </target>
   282     <target name="-pre-jar">
   283         <!-- Empty placeholder for easier customization. -->
   284         <!-- You can override this target in the ../build.xml file. -->
   285     </target>
   286     <target name="-do-jar-without-manifest" depends="init,compile,-pre-pre-jar,-pre-jar" unless="manifest.available">
   287         <j2seproject1:jar/>
   288     </target>
   289     <target name="-do-jar-with-manifest" depends="init,compile,-pre-pre-jar,-pre-jar" if="manifest.available" unless="manifest.available+main.class">
   290         <j2seproject1:jar manifest="${manifest.file}"/>
   291     </target>
   292     <target name="-do-jar-with-mainclass" depends="init,compile,-pre-pre-jar,-pre-jar" if="manifest.available+main.class" unless="manifest.available+main.class+mkdist.available">
   293         <j2seproject1:jar manifest="${manifest.file}">
   294             <j2seproject1:manifest>
   295                 <j2seproject1:attribute name="Main-Class" value="${main.class}"/>
   296             </j2seproject1:manifest>
   297         </j2seproject1:jar>
   298         <echo>To run this application from the command line without Ant, try:</echo>
   299         <property name="build.classes.dir.resolved" location="${build.classes.dir}"/>
   300         <property name="dist.jar.resolved" location="${dist.jar}"/>
   301         <pathconvert property="run.classpath.with.dist.jar">
   302             <path path="${run.classpath}"/>
   303             <map from="${build.classes.dir.resolved}" to="${dist.jar.resolved}"/>
   304         </pathconvert>
   305         <echo>java -cp "${run.classpath.with.dist.jar}" ${main.class}</echo>
   306     </target>
   307     <target name="-do-jar-with-libraries" depends="init,compile,-pre-pre-jar,-pre-jar" if="manifest.available+main.class+mkdist.available">
   308         <property name="build.classes.dir.resolved" location="${build.classes.dir}"/>
   309         <pathconvert property="run.classpath.without.build.classes.dir">
   310             <path path="${run.classpath}"/>
   311             <map from="${build.classes.dir.resolved}" to=""/>
   312         </pathconvert>
   313         <pathconvert property="jar.classpath" pathsep=" ">
   314             <path path="${run.classpath.without.build.classes.dir}"/>
   315             <chainedmapper>
   316                 <flattenmapper/>
   317                 <globmapper from="*" to="lib/*"/>
   318             </chainedmapper>
   319         </pathconvert>
   320         <taskdef classname="org.netbeans.modules.java.j2seproject.copylibstask.CopyLibs" name="copylibs" classpath="${libs.CopyLibs.classpath}"/>
   321         <copylibs manifest="${manifest.file}" runtimeclasspath="${run.classpath.without.build.classes.dir}" jarfile="${dist.jar}" compress="${jar.compress}">
   322             <fileset dir="${build.classes.dir}"/>
   323             <manifest>
   324                 <attribute name="Main-Class" value="${main.class}"/>
   325                 <attribute name="Class-Path" value="${jar.classpath}"/>
   326             </manifest>
   327         </copylibs>
   328         <echo>To run this application from the command line without Ant, try:</echo>
   329         <property name="dist.jar.resolved" location="${dist.jar}"/>
   330         <echo>java -jar "${dist.jar.resolved}"</echo>
   331     </target>
   332     <target name="-post-jar">
   333         <!-- Empty placeholder for easier customization. -->
   334         <!-- You can override this target in the ../build.xml file. -->
   335     </target>
   336     <target name="jar" 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."/>
   337     <!--
   338     =================
   339     EXECUTION SECTION
   340     =================
   341     -->
   342     <target name="run" depends="init,compile" description="Run a main class.">
   343         <j2seproject1:java>
   344             <customize>
   345                 <arg line="${application.args}"/>
   346             </customize>
   347         </j2seproject1:java>
   348     </target>
   349     <target name="run-single" depends="init,compile-single">
   350         <fail unless="run.class">Must select one file in the IDE or set run.class</fail>
   351         <j2seproject1:java classname="${run.class}"/>
   352     </target>
   353     <!--
   354     =================
   355     DEBUGGING SECTION
   356     =================
   357     -->
   358     <target name="-debug-start-debugger" if="netbeans.home" depends="init">
   359         <j2seproject1:nbjpdastart name="${debug.class}"/>
   360     </target>
   361     <target name="-debug-start-debuggee" depends="init,compile">
   362         <j2seproject3:debug>
   363             <customize>
   364                 <arg line="${application.args}"/>
   365             </customize>
   366         </j2seproject3:debug>
   367     </target>
   368     <target name="debug" if="netbeans.home" depends="init,compile,-debug-start-debugger,-debug-start-debuggee" description="Debug project in IDE."/>
   369     <target name="-debug-start-debugger-stepinto" if="netbeans.home" depends="init">
   370         <j2seproject1:nbjpdastart stopclassname="${main.class}"/>
   371     </target>
   372     <target name="debug-stepinto" if="netbeans.home" depends="init,compile,-debug-start-debugger-stepinto,-debug-start-debuggee"/>
   373     <target name="-debug-start-debuggee-single" if="netbeans.home" depends="init,compile-single">
   374         <fail unless="debug.class">Must select one file in the IDE or set debug.class</fail>
   375         <j2seproject3:debug classname="${debug.class}"/>
   376     </target>
   377     <target name="debug-single" if="netbeans.home" depends="init,compile-single,-debug-start-debugger,-debug-start-debuggee-single"/>
   378     <target name="-pre-debug-fix" depends="init">
   379         <fail unless="fix.includes">Must set fix.includes</fail>
   380         <property name="javac.includes" value="${fix.includes}.java"/>
   381     </target>
   382     <target name="-do-debug-fix" if="netbeans.home" depends="init,-pre-debug-fix,compile-single">
   383         <j2seproject1:nbjpdareload/>
   384     </target>
   385     <target name="debug-fix" if="netbeans.home" depends="init,-pre-debug-fix,-do-debug-fix"/>
   386     <!--
   387     ===============
   388     JAVADOC SECTION
   389     ===============
   390     -->
   391     <target name="-javadoc-build" depends="init">
   392         <mkdir dir="${dist.javadoc.dir}"/>
   393         <javadoc destdir="${dist.javadoc.dir}" source="${javac.source}" notree="${javadoc.notree}" use="${javadoc.use}" nonavbar="${javadoc.nonavbar}" noindex="${javadoc.noindex}" splitindex="${javadoc.splitindex}" author="${javadoc.author}" version="${javadoc.version}" windowtitle="${javadoc.windowtitle}" private="${javadoc.private}" additionalparam="${javadoc.additionalparam}" failonerror="true" useexternalfile="true">
   394             <classpath>
   395                 <path path="${javac.classpath}"/>
   396             </classpath>
   397             <sourcepath>
   398                 <pathelement location="${src.dir}"/>
   399             </sourcepath>
   400             <packageset dir="${src.dir}" includes="*/**"/>
   401             <fileset dir="${src.dir}" includes="*.java"/>
   402         </javadoc>
   403     </target>
   404     <target name="-javadoc-browse" if="netbeans.home" unless="no.javadoc.preview" depends="init,-javadoc-build">
   405         <nbbrowse file="${dist.javadoc.dir}/index.html"/>
   406     </target>
   407     <target name="javadoc" depends="init,-javadoc-build,-javadoc-browse" description="Build Javadoc."/>
   408     <!--
   409     =========================
   410     JUNIT COMPILATION SECTION
   411     =========================
   412     -->
   413     <target name="-pre-pre-compile-test" if="have.tests" depends="init,compile">
   414         <mkdir dir="${build.test.classes.dir}"/>
   415     </target>
   416     <target name="-pre-compile-test">
   417         <!-- Empty placeholder for easier customization. -->
   418         <!-- You can override this target in the ../build.xml file. -->
   419     </target>
   420     <target name="-do-compile-test" if="have.tests" depends="init,compile,-pre-pre-compile-test,-pre-compile-test">
   421         <j2seproject3:javac srcdir="${test.src.dir}" destdir="${build.test.classes.dir}" debug="true" classpath="${javac.test.classpath}"/>
   422         <copy todir="${build.test.classes.dir}">
   423             <fileset dir="${test.src.dir}" excludes="**/*.java"/>
   424         </copy>
   425     </target>
   426     <target name="-post-compile-test">
   427         <!-- Empty placeholder for easier customization. -->
   428         <!-- You can override this target in the ../build.xml file. -->
   429     </target>
   430     <target name="compile-test" depends="init,compile,-pre-pre-compile-test,-pre-compile-test,-do-compile-test,-post-compile-test"/>
   431     <target name="-pre-compile-test-single">
   432         <!-- Empty placeholder for easier customization. -->
   433         <!-- You can override this target in the ../build.xml file. -->
   434     </target>
   435     <target name="-do-compile-test-single" if="have.tests" depends="init,compile,-pre-pre-compile-test,-pre-compile-test-single">
   436         <fail unless="javac.includes">Must select some files in the IDE or set javac.includes</fail>
   437         <j2seproject3:javac srcdir="${test.src.dir}" destdir="${build.test.classes.dir}" debug="true" classpath="${javac.test.classpath}">
   438             <customize>
   439                 <patternset includes="${javac.includes}"/>
   440             </customize>
   441         </j2seproject3:javac>
   442         <copy todir="${build.test.classes.dir}">
   443             <fileset dir="${test.src.dir}" excludes="**/*.java"/>
   444         </copy>
   445     </target>
   446     <target name="-post-compile-test-single">
   447         <!-- Empty placeholder for easier customization. -->
   448         <!-- You can override this target in the ../build.xml file. -->
   449     </target>
   450     <target name="compile-test-single" depends="init,compile,-pre-pre-compile-test,-pre-compile-test-single,-do-compile-test-single,-post-compile-test-single"/>
   451     <!--
   452     =======================
   453     JUNIT EXECUTION SECTION
   454     =======================
   455     -->
   456     <target name="-pre-test-run" if="have.tests" depends="init">
   457         <mkdir dir="${build.test.results.dir}"/>
   458     </target>
   459     <target name="-do-test-run" if="have.tests" depends="init,compile-test,-pre-test-run">
   460         <j2seproject3:junit/>
   461     </target>
   462     <target name="-post-test-run" if="have.tests" depends="init,compile-test,-pre-test-run,-do-test-run">
   463         <fail if="tests.failed">Some tests failed; see details above.</fail>
   464     </target>
   465     <target name="test-report" if="have.tests" depends="init"/>
   466     <target name="-test-browse" if="netbeans.home+have.tests" depends="init"/>
   467     <target name="test" depends="init,compile-test,-pre-test-run,-do-test-run,test-report,-post-test-run,-test-browse" description="Run unit tests."/>
   468     <target name="-pre-test-run-single" if="have.tests" depends="init">
   469         <mkdir dir="${build.test.results.dir}"/>
   470     </target>
   471     <target name="-do-test-run-single" if="have.tests" depends="init,compile-test-single,-pre-test-run-single">
   472         <fail unless="test.includes">Must select some files in the IDE or set test.includes</fail>
   473         <j2seproject3:junit includes="${test.includes}"/>
   474     </target>
   475     <target name="-post-test-run-single" if="have.tests" depends="init,compile-test-single,-pre-test-run-single,-do-test-run-single">
   476         <fail if="tests.failed">Some tests failed; see details above.</fail>
   477     </target>
   478     <target name="test-single" depends="init,compile-test-single,-pre-test-run-single,-do-test-run-single,-post-test-run-single" description="Run single unit test."/>
   479     <!--
   480     =======================
   481     JUNIT DEBUGGING SECTION
   482     =======================
   483     -->
   484     <target name="-debug-start-debuggee-test" if="have.tests" depends="init,compile-test">
   485         <fail unless="test.class">Must select one file in the IDE or set test.class</fail>
   486         <j2seproject3:debug classname="junit.textui.TestRunner" classpath="${debug.test.classpath}">
   487             <customize>
   488                 <arg line="${test.class}"/>
   489             </customize>
   490         </j2seproject3:debug>
   491     </target>
   492     <target name="-debug-start-debugger-test" if="netbeans.home+have.tests" depends="init,compile-test">
   493         <j2seproject1:nbjpdastart name="${test.class}" classpath="${debug.test.classpath}"/>
   494     </target>
   495     <target name="debug-test" depends="init,compile-test,-debug-start-debugger-test,-debug-start-debuggee-test"/>
   496     <target name="-do-debug-fix-test" if="netbeans.home" depends="init,-pre-debug-fix,compile-test-single">
   497         <j2seproject1:nbjpdareload dir="${build.test.classes.dir}"/>
   498     </target>
   499     <target name="debug-fix-test" if="netbeans.home" depends="init,-pre-debug-fix,-do-debug-fix-test"/>
   500     <!--
   501     =========================
   502     APPLET EXECUTION SECTION
   503     =========================
   504     -->
   505     <target name="run-applet" depends="init,compile-single">
   506         <fail unless="applet.url">Must select one file in the IDE or set applet.url</fail>
   507         <j2seproject1:java classname="sun.applet.AppletViewer">
   508             <customize>
   509                 <arg value="${applet.url}"/>
   510             </customize>
   511         </j2seproject1:java>
   512     </target>
   513     <!--
   514     =========================
   515     APPLET DEBUGGING  SECTION
   516     =========================
   517     -->
   518     <target name="-debug-start-debuggee-applet" if="netbeans.home" depends="init,compile-single">
   519         <fail unless="applet.url">Must select one file in the IDE or set applet.url</fail>
   520         <j2seproject3:debug classname="sun.applet.AppletViewer">
   521             <customize>
   522                 <arg value="${applet.url}"/>
   523             </customize>
   524         </j2seproject3:debug>
   525     </target>
   526     <target name="debug-applet" if="netbeans.home" depends="init,compile-single,-debug-start-debugger,-debug-start-debuggee-applet"/>
   527     <!--
   528     ===============
   529     CLEANUP SECTION
   530     ===============
   531     -->
   532     <target name="deps-clean" depends="init" unless="no.deps"/>
   533     <target name="-do-clean" depends="init">
   534         <delete dir="${build.dir}"/>
   535         <delete dir="${dist.dir}"/>
   536     </target>
   537     <target name="-post-clean">
   538         <!-- Empty placeholder for easier customization. -->
   539         <!-- You can override this target in the ../build.xml file. -->
   540     </target>
   541     <target name="clean" depends="init,deps-clean,-do-clean,-post-clean" description="Clean build products."/>
   542 </project>