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