source: liacs/se/RouteGUI/nbproject/build-impl.xml@ 204

Last change on this file since 204 was 2, checked in by Rick van der Zwet, 15 years ago

Initial import of data of old repository ('data') worth keeping (e.g. tracking
means of URL access statistics)

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