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