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: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
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
111 <property name="do.depend" value="false"/>
\r
112 <condition property="do.depend.true">
\r
113 <istrue value="${do.depend}"/>
\r
115 <condition else="" property="javac.compilerargs.jaxws" value="-Djava.endorsed.dirs='${jaxws.endorsed.dir}'">
\r
117 <isset property="jaxws.endorsed.dir"/>
\r
118 <available file="nbproject/jaxws-build.xml"/>
\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
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
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
143 <property name="@{name}" value="${@{value}}"/>
\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
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
160 <path path="@{classpath}"/>
\r
162 <compilerarg line="${javac.compilerargs} ${javac.compilerargs.jaxws}"/>
\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
172 <depend cache="${build.dir}/depcache" destdir="@{destdir}" excludes="${excludes}" includes="${includes}" srcdir="@{srcdir}">
\r
174 <path path="@{classpath}"/>
\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
182 <fail unless="javac.includes">Must set javac.includes</fail>
\r
183 <pathconvert pathsep="," property="javac.includes.binary">
\r
185 <filelist dir="@{destdir}" files="${javac.includes}"/>
\r
187 <globmapper from="*.java" to="*.class"/>
\r
190 <files includes="${javac.includes.binary}"/>
\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
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
208 <path path="${run.test.classpath}"/>
\r
211 <propertyref prefix="test-sys-prop."/>
\r
212 <mapper from="test-sys-prop.*" to="*" type="glob"/>
\r
214 <formatter type="brief" usefile="false"/>
\r
215 <formatter type="xml"/>
\r
216 <jvmarg line="${run.jvmargs}"/>
\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
227 <nbjpdastart addressproperty="jpda.address" name="@{name}" stopclassname="@{stopclassname}" transport="${debug-transport}">
\r
229 <path path="@{classpath}"/>
\r
234 <macrodef name="nbjpdareload" uri="http://www.netbeans.org/ns/j2se-project/1">
\r
235 <attribute default="${build.classes.dir}" name="dir"/>
\r
238 <fileset dir="@{dir}" includes="${fix.classes}">
\r
239 <include name="${fix.includes}*.class"/>
\r
245 <target name="-init-debug-args">
\r
246 <property name="version-output" value="java version "${ant.java.version}"/>
\r
247 <condition property="have-jdk-older-than-1.4">
\r
249 <contains string="${version-output}" substring="java version "1.0"/>
\r
250 <contains string="${version-output}" substring="java version "1.1"/>
\r
251 <contains string="${version-output}" substring="java version "1.2"/>
\r
252 <contains string="${version-output}" substring="java version "1.3"/>
\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
258 <condition else="dt_socket" property="debug-transport-by-os" value="dt_shmem">
\r
259 <os family="windows"/>
\r
261 <condition else="${debug-transport-by-os}" property="debug-transport" value="${debug.transport}">
\r
262 <isset property="debug.transport"/>
\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
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
276 <path path="@{classpath}"/>
\r
279 <propertyref prefix="run-sys-prop."/>
\r
280 <mapper from="run-sys-prop.*" to="*" type="glob"/>
\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
292 <java classname="@{classname}" dir="${work.dir}" fork="true">
\r
293 <jvmarg line="${run.jvmargs}"/>
\r
295 <path path="${run.classpath}"/>
\r
298 <propertyref prefix="run-sys-prop."/>
\r
299 <mapper from="run-sys-prop.*" to="*" type="glob"/>
\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
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
315 ===================
\r
316 COMPILATION SECTION
\r
317 ===================
\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
324 <target depends="init" if="netbeans.automatic.build" name="-clean-after-automatic-build">
\r
325 <antcall target="clean"/>
\r
327 <target depends="init,deps-jar" name="-pre-pre-compile">
\r
328 <mkdir dir="${build.classes.dir}"/>
\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
334 <target if="do.depend.true" name="-compile-depend">
\r
335 <j2seproject3:depend/>
\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
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
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
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
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
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
363 ====================
\r
364 JAR BUILDING SECTION
\r
365 ====================
\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
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
375 <target depends="init,compile,-pre-pre-jar,-pre-jar" name="-do-jar-without-manifest" unless="manifest.available">
\r
376 <j2seproject1:jar/>
\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
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
394 <echo>java -cp "${run.classpath.with.dist.jar}" ${main.class}</echo>
\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
402 <pathconvert pathsep=" " property="jar.classpath">
\r
403 <path path="${run.classpath.without.build.classes.dir}"/>
\r
406 <globmapper from="*" to="lib/*"/>
\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
413 <attribute name="Main-Class" value="${main.class}"/>
\r
414 <attribute name="Class-Path" value="${jar.classpath}"/>
\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
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
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
431 <target depends="init,compile" description="Run a main class." name="run">
\r
432 <j2seproject1:java>
\r
434 <arg line="${application.args}"/>
\r
436 </j2seproject1:java>
\r
438 <target name="-do-not-recompile">
\r
439 <property name="javac.includes.binary" value=""/>
\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
450 <target depends="init" if="netbeans.home" name="-debug-start-debugger">
\r
451 <j2seproject1:nbjpdastart name="${debug.class}"/>
\r
453 <target depends="init,compile" name="-debug-start-debuggee">
\r
454 <j2seproject3:debug>
\r
456 <arg line="${application.args}"/>
\r
458 </j2seproject3:debug>
\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
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
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
474 <target depends="init,-pre-debug-fix,compile-single" if="netbeans.home" name="-do-debug-fix">
\r
475 <j2seproject1:nbjpdareload/>
\r
477 <target depends="init,-pre-debug-fix,-do-debug-fix" if="netbeans.home" name="debug-fix"/>
\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
487 <path path="${javac.classpath}"/>
\r
489 <fileset dir="${src.dir}" excludes="${excludes}" includes="${includes}">
\r
490 <filename name="**/*.java"/>
\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
497 <target depends="init,-javadoc-build,-javadoc-browse" description="Build Javadoc." name="javadoc"/>
\r
499 =========================
\r
500 JUNIT COMPILATION SECTION
\r
501 =========================
\r
503 <target depends="init,compile" if="have.tests" name="-pre-pre-compile-test">
\r
504 <mkdir dir="${build.test.classes.dir}"/>
\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
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
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
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
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
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
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
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
542 =======================
\r
543 JUNIT EXECUTION SECTION
\r
544 =======================
\r
546 <target depends="init" if="have.tests" name="-pre-test-run">
\r
547 <mkdir dir="${build.test.results.dir}"/>
\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
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
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
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
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
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
570 =======================
\r
571 JUNIT DEBUGGING SECTION
\r
572 =======================
\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
582 <propertyref prefix="test-sys-prop."/>
\r
583 <mapper from="test-sys-prop.*" to="*" type="glob"/>
\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
590 </j2seproject3:debug>
\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
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
599 <target depends="init,-pre-debug-fix,-do-debug-fix-test" if="netbeans.home" name="debug-fix-test"/>
\r
601 =========================
\r
602 APPLET EXECUTION SECTION
\r
603 =========================
\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
609 <arg value="${applet.url}"/>
\r
611 </j2seproject1:java>
\r
614 =========================
\r
615 APPLET DEBUGGING SECTION
\r
616 =========================
\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
622 <arg value="${applet.url}"/>
\r
624 </j2seproject3:debug>
\r
626 <target depends="init,compile-single,-debug-start-debugger,-debug-start-debuggee-applet" if="netbeans.home" name="debug-applet"/>
\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
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
641 <target depends="init,deps-clean,-do-clean,-post-clean" description="Clean build products." name="clean"/>
\r