1 <?xml version="1.0" encoding="UTF-8"?>
\r
3 *** GENERATED FROM project.xml - DO NOT EDIT ***
\r
4 *** EDIT ../build.xml INSTEAD ***
\r
6 For the purpose of easier reading the script
\r
7 is divided into following sections:
\r
22 <project xmlns:j2seproject1="http://www.netbeans.org/ns/j2se-project/1" xmlns:j2seproject2="http://www.netbeans.org/ns/j2se-project/2" xmlns:j2seproject3="http://www.netbeans.org/ns/j2se-project/3" xmlns:jaxrpc="http://www.netbeans.org/ns/j2se-project/jax-rpc" basedir=".." default="default" name="galago-ui-impl">
\r
23 <target depends="test,jar,javadoc" description="Build and test whole project." name="default"/>
\r
25 ======================
\r
26 INITIALIZATION SECTION
\r
27 ======================
\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
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
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
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
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
53 <isset property="manifest.available"/>
\r
54 <isset property="main.class"/>
\r
56 <equals arg1="${main.class}" arg2="" trim="true"/>
\r
60 <condition property="manifest.available+main.class+mkdist.available">
\r
62 <istrue value="${manifest.available+main.class}"/>
\r
63 <isset property="libs.CopyLibs.classpath"/>
\r
66 <condition property="have.tests">
\r
68 <available file="${test.src.dir}"/>
\r
71 <condition property="have.sources">
\r
73 <available file="${src.dir}"/>
\r
76 <condition property="netbeans.home+have.tests">
\r
78 <isset property="netbeans.home"/>
\r
79 <isset property="have.tests"/>
\r
82 <condition property="no.javadoc.preview">
\r
84 <isset property="javadoc.preview"/>
\r
85 <isfalse value="${javadoc.preview}"/>
\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
93 <istrue value="${no.dependencies}"/>
\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
102 <isset property="javadoc.encoding"/>
\r
104 <equals arg1="${javadoc.encoding}" arg2=""/>
\r
108 <property name="javadoc.encoding.used" value="${source.encoding}"/>
\r
109 <property name="includes" value="**"/>
\r
110 <property name="excludes" value=""/>
\r
112 <target name="-post-init">
\r
113 <!-- Empty placeholder for easier customization. -->
\r
114 <!-- You can override this target in the ../build.xml file. -->
\r
116 <target depends="-pre-init,-init-private,-init-user,-init-project,-do-init" name="-init-check">
\r
117 <fail unless="src.dir">Must set src.dir</fail>
\r
118 <fail unless="test.src.dir">Must set test.src.dir</fail>
\r
119 <fail unless="build.dir">Must set build.dir</fail>
\r
120 <fail unless="dist.dir">Must set dist.dir</fail>
\r
121 <fail unless="build.classes.dir">Must set build.classes.dir</fail>
\r
122 <fail unless="dist.javadoc.dir">Must set dist.javadoc.dir</fail>
\r
123 <fail unless="build.test.classes.dir">Must set build.test.classes.dir</fail>
\r
124 <fail unless="build.test.results.dir">Must set build.test.results.dir</fail>
\r
125 <fail unless="build.classes.excludes">Must set build.classes.excludes</fail>
\r
126 <fail unless="dist.jar">Must set dist.jar</fail>
\r
128 <target name="-init-macrodef-property">
\r
129 <macrodef name="property" uri="http://www.netbeans.org/ns/j2se-project/1">
\r
130 <attribute name="name"/>
\r
131 <attribute name="value"/>
\r
133 <property name="@{name}" value="${@{value}}"/>
\r
137 <target name="-init-macrodef-javac">
\r
138 <macrodef name="javac" uri="http://www.netbeans.org/ns/j2se-project/3">
\r
139 <attribute default="${src.dir}" name="srcdir"/>
\r
140 <attribute default="${build.classes.dir}" name="destdir"/>
\r
141 <attribute default="${javac.classpath}" name="classpath"/>
\r
142 <attribute default="${includes}" name="includes"/>
\r
143 <attribute default="${excludes}" name="excludes"/>
\r
144 <attribute default="${javac.debug}" name="debug"/>
\r
145 <attribute default="" name="javac.compilerargs.jaxws"/>
\r
146 <attribute default="" name="sourcepath"/>
\r
147 <element name="customize" optional="true"/>
\r
149 <javac debug="@{debug}" deprecation="${javac.deprecation}" destdir="@{destdir}" encoding="${source.encoding}" excludes="@{excludes}" includeantruntime="false" includes="@{includes}" source="${javac.source}" sourcepath="@{sourcepath}" srcdir="@{srcdir}" target="${javac.target}">
\r
151 <path path="@{classpath}"/>
\r
153 <compilerarg line="${javac.compilerargs} @{javac.compilerargs.jaxws}"/>
\r
158 <macrodef name="depend" uri="http://www.netbeans.org/ns/j2se-project/3">
\r
159 <attribute default="${src.dir}" name="srcdir"/>
\r
160 <attribute default="${build.classes.dir}" name="destdir"/>
\r
161 <attribute default="${javac.classpath}" name="classpath"/>
\r
163 <depend cache="${build.dir}/depcache" destdir="@{destdir}" excludes="${excludes}" includes="${includes}" srcdir="@{srcdir}">
\r
165 <path path="@{classpath}"/>
\r
170 <macrodef name="force-recompile" uri="http://www.netbeans.org/ns/j2se-project/3">
\r
171 <attribute default="${build.classes.dir}" name="destdir"/>
\r
173 <fail unless="javac.includes">Must set javac.includes</fail>
\r
174 <pathconvert pathsep="," property="javac.includes.binary">
\r
176 <filelist dir="@{destdir}" files="${javac.includes}"/>
\r
178 <globmapper from="*.java" to="*.class"/>
\r
181 <files includes="${javac.includes.binary}"/>
\r
186 <target name="-init-macrodef-junit">
\r
187 <macrodef name="junit" uri="http://www.netbeans.org/ns/j2se-project/3">
\r
188 <attribute default="${includes}" name="includes"/>
\r
189 <attribute default="${excludes}" name="excludes"/>
\r
191 <junit dir="${work.dir}" errorproperty="tests.failed" failureproperty="tests.failed" fork="true" showoutput="true">
\r
192 <batchtest todir="${build.test.results.dir}">
\r
193 <fileset dir="${test.src.dir}" excludes="@{excludes},${excludes}" includes="@{includes}">
\r
194 <filename name="**/*Test.java"/>
\r
198 <path path="${run.test.classpath}"/>
\r
201 <propertyref prefix="test-sys-prop."/>
\r
202 <mapper from="test-sys-prop.*" to="*" type="glob"/>
\r
204 <formatter type="brief" usefile="false"/>
\r
205 <formatter type="xml"/>
\r
206 <jvmarg line="${run.jvmargs}"/>
\r
211 <target name="-init-macrodef-nbjpda">
\r
212 <macrodef name="nbjpdastart" uri="http://www.netbeans.org/ns/j2se-project/1">
\r
213 <attribute default="${main.class}" name="name"/>
\r
214 <attribute default="${debug.classpath}" name="classpath"/>
\r
215 <attribute default="" name="stopclassname"/>
\r
217 <nbjpdastart addressproperty="jpda.address" name="@{name}" stopclassname="@{stopclassname}" transport="dt_socket">
\r
219 <path path="@{classpath}"/>
\r
224 <macrodef name="nbjpdareload" uri="http://www.netbeans.org/ns/j2se-project/1">
\r
225 <attribute default="${build.classes.dir}" name="dir"/>
\r
228 <fileset dir="@{dir}" includes="${fix.includes}*.class"/>
\r
233 <target name="-init-debug-args">
\r
234 <property name="version-output" value="java version "${ant.java.version}"/>
\r
235 <condition property="have-jdk-older-than-1.4">
\r
237 <contains string="${version-output}" substring="java version "1.0"/>
\r
238 <contains string="${version-output}" substring="java version "1.1"/>
\r
239 <contains string="${version-output}" substring="java version "1.2"/>
\r
240 <contains string="${version-output}" substring="java version "1.3"/>
\r
243 <condition else="-Xdebug" property="debug-args-line" value="-Xdebug -Xnoagent -Djava.compiler=none">
\r
244 <istrue value="${have-jdk-older-than-1.4}"/>
\r
247 <target depends="-init-debug-args" name="-init-macrodef-debug">
\r
248 <macrodef name="debug" uri="http://www.netbeans.org/ns/j2se-project/3">
\r
249 <attribute default="${main.class}" name="classname"/>
\r
250 <attribute default="${debug.classpath}" name="classpath"/>
\r
251 <element name="customize" optional="true"/>
\r
253 <java classname="@{classname}" dir="${work.dir}" fork="true">
\r
254 <jvmarg line="${debug-args-line}"/>
\r
255 <jvmarg value="-Xrunjdwp:transport=dt_socket,address=${jpda.address}"/>
\r
256 <jvmarg line="${run.jvmargs}"/>
\r
258 <path path="@{classpath}"/>
\r
261 <propertyref prefix="run-sys-prop."/>
\r
262 <mapper from="run-sys-prop.*" to="*" type="glob"/>
\r
269 <target name="-init-macrodef-java">
\r
270 <macrodef name="java" uri="http://www.netbeans.org/ns/j2se-project/1">
\r
271 <attribute default="${main.class}" name="classname"/>
\r
272 <element name="customize" optional="true"/>
\r
274 <java classname="@{classname}" dir="${work.dir}" fork="true">
\r
275 <jvmarg line="${run.jvmargs}"/>
\r
277 <path path="${run.classpath}"/>
\r
280 <propertyref prefix="run-sys-prop."/>
\r
281 <mapper from="run-sys-prop.*" to="*" type="glob"/>
\r
288 <target name="-init-presetdef-jar">
\r
289 <presetdef name="jar" uri="http://www.netbeans.org/ns/j2se-project/1">
\r
290 <jar compress="${jar.compress}" jarfile="${dist.jar}">
\r
291 <j2seproject1:fileset dir="${build.classes.dir}"/>
\r
295 <target depends="-pre-init,-init-private,-init-user,-init-project,-do-init,-post-init,-init-check,-init-macrodef-property,-init-macrodef-javac,-init-macrodef-junit,-init-macrodef-nbjpda,-init-macrodef-debug,-init-macrodef-java,-init-presetdef-jar" name="init"/>
\r
297 ===================
\r
298 COMPILATION SECTION
\r
299 ===================
\r
301 <target depends="init" name="deps-jar" unless="no.deps"/>
\r
302 <target depends="init,deps-jar" name="-pre-pre-compile">
\r
303 <mkdir dir="${build.classes.dir}"/>
\r
305 <target name="-pre-compile">
\r
306 <!-- Empty placeholder for easier customization. -->
\r
307 <!-- You can override this target in the ../build.xml file. -->
\r
309 <target depends="init,deps-jar,-pre-pre-compile,-pre-compile" if="have.sources" name="-do-compile">
\r
310 <j2seproject3:depend/>
\r
311 <j2seproject3:javac/>
\r
312 <copy todir="${build.classes.dir}">
\r
313 <fileset dir="${src.dir}" excludes="${build.classes.excludes},${excludes}" includes="${includes}"/>
\r
316 <target name="-post-compile">
\r
317 <!-- Empty placeholder for easier customization. -->
\r
318 <!-- You can override this target in the ../build.xml file. -->
\r
320 <target depends="init,deps-jar,-pre-pre-compile,-pre-compile,-do-compile,-post-compile" description="Compile project." name="compile"/>
\r
321 <target name="-pre-compile-single">
\r
322 <!-- Empty placeholder for easier customization. -->
\r
323 <!-- You can override this target in the ../build.xml file. -->
\r
325 <target depends="init,deps-jar,-pre-pre-compile" name="-do-compile-single">
\r
326 <fail unless="javac.includes">Must select some files in the IDE or set javac.includes</fail>
\r
327 <j2seproject3:force-recompile/>
\r
328 <j2seproject3:javac excludes="" includes="${javac.includes}" sourcepath="${src.dir}"/>
\r
330 <target name="-post-compile-single">
\r
331 <!-- Empty placeholder for easier customization. -->
\r
332 <!-- You can override this target in the ../build.xml file. -->
\r
334 <target depends="init,deps-jar,-pre-pre-compile,-pre-compile-single,-do-compile-single,-post-compile-single" name="compile-single"/>
\r
336 ====================
\r
337 JAR BUILDING SECTION
\r
338 ====================
\r
340 <target depends="init" name="-pre-pre-jar">
\r
341 <dirname file="${dist.jar}" property="dist.jar.dir"/>
\r
342 <mkdir dir="${dist.jar.dir}"/>
\r
344 <target name="-pre-jar">
\r
345 <!-- Empty placeholder for easier customization. -->
\r
346 <!-- You can override this target in the ../build.xml file. -->
\r
348 <target depends="init,compile,-pre-pre-jar,-pre-jar" name="-do-jar-without-manifest" unless="manifest.available">
\r
349 <j2seproject1:jar/>
\r
351 <target depends="init,compile,-pre-pre-jar,-pre-jar" if="manifest.available" name="-do-jar-with-manifest" unless="manifest.available+main.class">
\r
352 <j2seproject1:jar manifest="${manifest.file}"/>
\r
354 <target depends="init,compile,-pre-pre-jar,-pre-jar" if="manifest.available+main.class" name="-do-jar-with-mainclass" unless="manifest.available+main.class+mkdist.available">
\r
355 <j2seproject1:jar manifest="${manifest.file}">
\r
356 <j2seproject1:manifest>
\r
357 <j2seproject1:attribute name="Main-Class" value="${main.class}"/>
\r
358 </j2seproject1:manifest>
\r
359 </j2seproject1:jar>
\r
360 <echo>To run this application from the command line without Ant, try:</echo>
\r
361 <property location="${build.classes.dir}" name="build.classes.dir.resolved"/>
\r
362 <property location="${dist.jar}" name="dist.jar.resolved"/>
\r
363 <pathconvert property="run.classpath.with.dist.jar">
\r
364 <path path="${run.classpath}"/>
\r
365 <map from="${build.classes.dir.resolved}" to="${dist.jar.resolved}"/>
\r
367 <echo>java -cp "${run.classpath.with.dist.jar}" ${main.class}</echo>
\r
369 <target depends="init,compile,-pre-pre-jar,-pre-jar" if="manifest.available+main.class+mkdist.available" name="-do-jar-with-libraries">
\r
370 <property location="${build.classes.dir}" name="build.classes.dir.resolved"/>
\r
371 <pathconvert property="run.classpath.without.build.classes.dir">
\r
372 <path path="${run.classpath}"/>
\r
373 <map from="${build.classes.dir.resolved}" to=""/>
\r
375 <pathconvert pathsep=" " property="jar.classpath">
\r
376 <path path="${run.classpath.without.build.classes.dir}"/>
\r
379 <globmapper from="*" to="lib/*"/>
\r
382 <taskdef classname="org.netbeans.modules.java.j2seproject.copylibstask.CopyLibs" classpath="${libs.CopyLibs.classpath}" name="copylibs"/>
\r
383 <copylibs compress="${jar.compress}" jarfile="${dist.jar}" manifest="${manifest.file}" runtimeclasspath="${run.classpath.without.build.classes.dir}">
\r
384 <fileset dir="${build.classes.dir}"/>
\r
386 <attribute name="Main-Class" value="${main.class}"/>
\r
387 <attribute name="Class-Path" value="${jar.classpath}"/>
\r
390 <echo>To run this application from the command line without Ant, try:</echo>
\r
391 <property location="${dist.jar}" name="dist.jar.resolved"/>
\r
392 <echo>java -jar "${dist.jar.resolved}"</echo>
\r
394 <target name="-post-jar">
\r
395 <!-- Empty placeholder for easier customization. -->
\r
396 <!-- You can override this target in the ../build.xml file. -->
\r
398 <target depends="init,compile,-pre-jar,-do-jar-with-manifest,-do-jar-without-manifest,-do-jar-with-mainclass,-do-jar-with-libraries,-post-jar" description="Build JAR." name="jar"/>
\r
404 <target depends="init,compile" description="Run a main class." name="run">
\r
405 <j2seproject1:java>
\r
407 <arg line="${application.args}"/>
\r
409 </j2seproject1:java>
\r
411 <target depends="init,compile" name="run-single">
\r
412 <fail unless="run.class">Must select one file in the IDE or set run.class</fail>
\r
413 <j2seproject1:java classname="${run.class}"/>
\r
420 <target depends="init" if="netbeans.home" name="-debug-start-debugger">
\r
421 <j2seproject1:nbjpdastart name="${debug.class}"/>
\r
423 <target depends="init,compile" name="-debug-start-debuggee">
\r
424 <j2seproject3:debug>
\r
426 <arg line="${application.args}"/>
\r
428 </j2seproject3:debug>
\r
430 <target depends="init,compile,-debug-start-debugger,-debug-start-debuggee" description="Debug project in IDE." if="netbeans.home" name="debug"/>
\r
431 <target depends="init" if="netbeans.home" name="-debug-start-debugger-stepinto">
\r
432 <j2seproject1:nbjpdastart stopclassname="${main.class}"/>
\r
434 <target depends="init,compile,-debug-start-debugger-stepinto,-debug-start-debuggee" if="netbeans.home" name="debug-stepinto"/>
\r
435 <target depends="init,compile-single" if="netbeans.home" name="-debug-start-debuggee-single">
\r
436 <fail unless="debug.class">Must select one file in the IDE or set debug.class</fail>
\r
437 <j2seproject3:debug classname="${debug.class}"/>
\r
439 <target depends="init,compile,-debug-start-debugger,-debug-start-debuggee-single" if="netbeans.home" name="debug-single"/>
\r
440 <target depends="init" name="-pre-debug-fix">
\r
441 <fail unless="fix.includes">Must set fix.includes</fail>
\r
442 <property name="javac.includes" value="${fix.includes}.java"/>
\r
444 <target depends="init,-pre-debug-fix,compile-single" if="netbeans.home" name="-do-debug-fix">
\r
445 <j2seproject1:nbjpdareload/>
\r
447 <target depends="init,-pre-debug-fix,-do-debug-fix" if="netbeans.home" name="debug-fix"/>
\r
453 <target depends="init" name="-javadoc-build">
\r
454 <mkdir dir="${dist.javadoc.dir}"/>
\r
455 <javadoc additionalparam="${javadoc.additionalparam}" author="${javadoc.author}" destdir="${dist.javadoc.dir}" encoding="${javadoc.encoding.used}" failonerror="true" noindex="${javadoc.noindex}" nonavbar="${javadoc.nonavbar}" notree="${javadoc.notree}" private="${javadoc.private}" source="${javac.source}" splitindex="${javadoc.splitindex}" use="${javadoc.use}" useexternalfile="true" version="${javadoc.version}" windowtitle="${javadoc.windowtitle}">
\r
457 <path path="${javac.classpath}"/>
\r
459 <fileset dir="${src.dir}" excludes="${excludes}" includes="${includes}">
\r
460 <filename name="**/*.java"/>
\r
464 <target depends="init,-javadoc-build" if="netbeans.home" name="-javadoc-browse" unless="no.javadoc.preview">
\r
465 <nbbrowse file="${dist.javadoc.dir}/index.html"/>
\r
467 <target depends="init,-javadoc-build,-javadoc-browse" description="Build Javadoc." name="javadoc"/>
\r
469 =========================
\r
470 JUNIT COMPILATION SECTION
\r
471 =========================
\r
473 <target depends="init,compile" if="have.tests" name="-pre-pre-compile-test">
\r
474 <mkdir dir="${build.test.classes.dir}"/>
\r
476 <target name="-pre-compile-test">
\r
477 <!-- Empty placeholder for easier customization. -->
\r
478 <!-- You can override this target in the ../build.xml file. -->
\r
480 <target depends="init,compile,-pre-pre-compile-test,-pre-compile-test" if="have.tests" name="-do-compile-test">
\r
481 <j2seproject3:depend classpath="${javac.test.classpath}" destdir="${build.test.classes.dir}" srcdir="${test.src.dir}"/>
\r
482 <j2seproject3:javac classpath="${javac.test.classpath}" debug="true" destdir="${build.test.classes.dir}" srcdir="${test.src.dir}"/>
\r
483 <copy todir="${build.test.classes.dir}">
\r
484 <fileset dir="${test.src.dir}" excludes="${build.classes.excludes},${excludes}" includes="${includes}"/>
\r
487 <target name="-post-compile-test">
\r
488 <!-- Empty placeholder for easier customization. -->
\r
489 <!-- You can override this target in the ../build.xml file. -->
\r
491 <target depends="init,compile,-pre-pre-compile-test,-pre-compile-test,-do-compile-test,-post-compile-test" name="compile-test"/>
\r
492 <target name="-pre-compile-test-single">
\r
493 <!-- Empty placeholder for easier customization. -->
\r
494 <!-- You can override this target in the ../build.xml file. -->
\r
496 <target depends="init,compile,-pre-pre-compile-test,-pre-compile-test-single" if="have.tests" name="-do-compile-test-single">
\r
497 <fail unless="javac.includes">Must select some files in the IDE or set javac.includes</fail>
\r
498 <j2seproject3:force-recompile destdir="${build.test.classes.dir}"/>
\r
499 <j2seproject3:javac classpath="${javac.test.classpath}" debug="true" destdir="${build.test.classes.dir}" excludes="" includes="${javac.includes}" sourcepath="${test.src.dir}" srcdir="${test.src.dir}"/>
\r
500 <copy todir="${build.test.classes.dir}">
\r
501 <fileset dir="${test.src.dir}" excludes="${build.classes.excludes},${excludes}" includes="${includes}"/>
\r
504 <target name="-post-compile-test-single">
\r
505 <!-- Empty placeholder for easier customization. -->
\r
506 <!-- You can override this target in the ../build.xml file. -->
\r
508 <target depends="init,compile,-pre-pre-compile-test,-pre-compile-test-single,-do-compile-test-single,-post-compile-test-single" name="compile-test-single"/>
\r
510 =======================
\r
511 JUNIT EXECUTION SECTION
\r
512 =======================
\r
514 <target depends="init" if="have.tests" name="-pre-test-run">
\r
515 <mkdir dir="${build.test.results.dir}"/>
\r
517 <target depends="init,compile-test,-pre-test-run" if="have.tests" name="-do-test-run">
\r
518 <j2seproject3:junit/>
\r
520 <target depends="init,compile-test,-pre-test-run,-do-test-run" if="have.tests" name="-post-test-run">
\r
521 <fail if="tests.failed">Some tests failed; see details above.</fail>
\r
523 <target depends="init" if="have.tests" name="test-report"/>
\r
524 <target depends="init" if="netbeans.home+have.tests" name="-test-browse"/>
\r
525 <target depends="init,compile-test,-pre-test-run,-do-test-run,test-report,-post-test-run,-test-browse" description="Run unit tests." name="test"/>
\r
526 <target depends="init" if="have.tests" name="-pre-test-run-single">
\r
527 <mkdir dir="${build.test.results.dir}"/>
\r
529 <target depends="init,compile-test-single,-pre-test-run-single" if="have.tests" name="-do-test-run-single">
\r
530 <fail unless="test.includes">Must select some files in the IDE or set test.includes</fail>
\r
531 <j2seproject3:junit excludes="" includes="${test.includes}"/>
\r
533 <target depends="init,compile-test-single,-pre-test-run-single,-do-test-run-single" if="have.tests" name="-post-test-run-single">
\r
534 <fail if="tests.failed">Some tests failed; see details above.</fail>
\r
536 <target depends="init,compile-test,-pre-test-run-single,-do-test-run-single,-post-test-run-single" description="Run single unit test." name="test-single"/>
\r
538 =======================
\r
539 JUNIT DEBUGGING SECTION
\r
540 =======================
\r
542 <target depends="init,compile-test" if="have.tests" name="-debug-start-debuggee-test">
\r
543 <fail unless="test.class">Must select one file in the IDE or set test.class</fail>
\r
544 <property location="${build.test.results.dir}/TEST-${test.class}.xml" name="test.report.file"/>
\r
545 <delete file="${test.report.file}"/>
\r
546 <mkdir dir="${build.test.results.dir}"/>
\r
547 <j2seproject3:debug classname="org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner" classpath="${ant.home}/lib/ant.jar:${ant.home}/lib/ant-junit.jar:${debug.test.classpath}">
\r
550 <propertyref prefix="test-sys-prop."/>
\r
551 <mapper from="test-sys-prop.*" to="*" type="glob"/>
\r
553 <arg value="${test.class}"/>
\r
554 <arg value="showoutput=true"/>
\r
555 <arg value="formatter=org.apache.tools.ant.taskdefs.optional.junit.BriefJUnitResultFormatter"/>
\r
556 <arg value="formatter=org.apache.tools.ant.taskdefs.optional.junit.XMLJUnitResultFormatter,${test.report.file}"/>
\r
558 </j2seproject3:debug>
\r
560 <target depends="init,compile-test" if="netbeans.home+have.tests" name="-debug-start-debugger-test">
\r
561 <j2seproject1:nbjpdastart classpath="${debug.test.classpath}" name="${test.class}"/>
\r
563 <target depends="init,compile-test,-debug-start-debugger-test,-debug-start-debuggee-test" name="debug-test"/>
\r
564 <target depends="init,-pre-debug-fix,compile-test-single" if="netbeans.home" name="-do-debug-fix-test">
\r
565 <j2seproject1:nbjpdareload dir="${build.test.classes.dir}"/>
\r
567 <target depends="init,-pre-debug-fix,-do-debug-fix-test" if="netbeans.home" name="debug-fix-test"/>
\r
569 =========================
\r
570 APPLET EXECUTION SECTION
\r
571 =========================
\r
573 <target depends="init,compile-single" name="run-applet">
\r
574 <fail unless="applet.url">Must select one file in the IDE or set applet.url</fail>
\r
575 <j2seproject1:java classname="sun.applet.AppletViewer">
\r
577 <arg value="${applet.url}"/>
\r
579 </j2seproject1:java>
\r
582 =========================
\r
583 APPLET DEBUGGING SECTION
\r
584 =========================
\r
586 <target depends="init,compile-single" if="netbeans.home" name="-debug-start-debuggee-applet">
\r
587 <fail unless="applet.url">Must select one file in the IDE or set applet.url</fail>
\r
588 <j2seproject3:debug classname="sun.applet.AppletViewer">
\r
590 <arg value="${applet.url}"/>
\r
592 </j2seproject3:debug>
\r
594 <target depends="init,compile-single,-debug-start-debugger,-debug-start-debuggee-applet" if="netbeans.home" name="debug-applet"/>
\r
600 <target depends="init" name="deps-clean" unless="no.deps"/>
\r
601 <target depends="init" name="-do-clean">
\r
602 <delete dir="${build.dir}"/>
\r
603 <delete dir="${dist.dir}"/>
\r
605 <target name="-post-clean">
\r
606 <!-- Empty placeholder for easier customization. -->
\r
607 <!-- You can override this target in the ../build.xml file. -->
\r
609 <target depends="init,deps-clean,-do-clean,-post-clean" description="Clean build products." name="clean"/>
\r