OSDN Git Service

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