comparison src/PlistTable/nbproject/build-impl.xml @ 0:f0afece42f48

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