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