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