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