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