1 <?xml version="1.0" encoding="UTF-8"?>
3 *** GENERATED FROM project.xml - DO NOT EDIT ***
4 *** EDIT ../build.xml INSTEAD ***
6 For the purpose of easier reading the script
7 is divided into following sections:
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="httpserv-impl">
23 <fail message="Please build using Ant 1.7.1 or higher.">
26 <antversion atleast="1.7.1"/>
30 <target depends="test,jar,javadoc" description="Build and test whole project." name="default"/>
32 ======================
33 INITIALIZATION SECTION
34 ======================
36 <target name="-pre-init">
37 <!-- Empty placeholder for easier customization. -->
38 <!-- You can override this target in the ../build.xml file. -->
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"/>
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"/>
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"/>
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">
60 <isset property="manifest.available"/>
61 <isset property="main.class"/>
63 <equals arg1="${main.class}" arg2="" trim="true"/>
67 <condition property="manifest.available+main.class+mkdist.available">
69 <istrue value="${manifest.available+main.class}"/>
70 <isset property="libs.CopyLibs.classpath"/>
73 <condition property="have.tests">
75 <available file="${test.src.dir}"/>
78 <condition property="have.sources">
80 <available file="${src.dir}"/>
83 <condition property="netbeans.home+have.tests">
85 <isset property="netbeans.home"/>
86 <isset property="have.tests"/>
89 <condition property="no.javadoc.preview">
91 <isset property="javadoc.preview"/>
92 <isfalse value="${javadoc.preview}"/>
95 <property name="run.jvmargs" value=""/>
96 <property name="javac.compilerargs" value=""/>
97 <property name="work.dir" value="${basedir}"/>
98 <condition property="no.deps">
100 <istrue value="${no.dependencies}"/>
103 <property name="javac.debug" value="true"/>
104 <property name="javadoc.preview" value="true"/>
105 <property name="application.args" value=""/>
106 <property name="source.encoding" value="${file.encoding}"/>
107 <condition property="javadoc.encoding.used" value="${javadoc.encoding}">
109 <isset property="javadoc.encoding"/>
111 <equals arg1="${javadoc.encoding}" arg2=""/>
115 <property name="javadoc.encoding.used" value="${source.encoding}"/>
116 <property name="includes" value="**"/>
117 <property name="excludes" value=""/>
118 <property name="do.depend" value="false"/>
119 <condition property="do.depend.true">
120 <istrue value="${do.depend}"/>
122 <condition else="" property="javac.compilerargs.jaxws" value="-Djava.endorsed.dirs='${jaxws.endorsed.dir}'">
124 <isset property="jaxws.endorsed.dir"/>
125 <available file="nbproject/jaxws-build.xml"/>
129 <target name="-post-init">
130 <!-- Empty placeholder for easier customization. -->
131 <!-- You can override this target in the ../build.xml file. -->
133 <target depends="-pre-init,-init-private,-init-user,-init-project,-do-init" name="-init-check">
134 <fail unless="src.dir">Must set src.dir</fail>
135 <fail unless="test.src.dir">Must set test.src.dir</fail>
136 <fail unless="build.dir">Must set build.dir</fail>
137 <fail unless="dist.dir">Must set dist.dir</fail>
138 <fail unless="build.classes.dir">Must set build.classes.dir</fail>
139 <fail unless="dist.javadoc.dir">Must set dist.javadoc.dir</fail>
140 <fail unless="build.test.classes.dir">Must set build.test.classes.dir</fail>
141 <fail unless="build.test.results.dir">Must set build.test.results.dir</fail>
142 <fail unless="build.classes.excludes">Must set build.classes.excludes</fail>
143 <fail unless="dist.jar">Must set dist.jar</fail>
145 <target name="-init-macrodef-property">
146 <macrodef name="property" uri="http://www.netbeans.org/ns/j2se-project/1">
147 <attribute name="name"/>
148 <attribute name="value"/>
150 <property name="@{name}" value="${@{value}}"/>
154 <target name="-init-macrodef-javac">
155 <macrodef name="javac" uri="http://www.netbeans.org/ns/j2se-project/3">
156 <attribute default="${src.dir}" name="srcdir"/>
157 <attribute default="${build.classes.dir}" name="destdir"/>
158 <attribute default="${javac.classpath}" name="classpath"/>
159 <attribute default="${includes}" name="includes"/>
160 <attribute default="${excludes}" name="excludes"/>
161 <attribute default="${javac.debug}" name="debug"/>
162 <attribute default="${empty.dir}" name="sourcepath"/>
163 <attribute default="${empty.dir}" name="gensrcdir"/>
164 <element name="customize" optional="true"/>
166 <property location="${build.dir}/empty" name="empty.dir"/>
167 <mkdir dir="${empty.dir}"/>
168 <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}">
170 <dirset dir="@{gensrcdir}" erroronmissingdir="false">
175 <path path="@{classpath}"/>
177 <compilerarg line="${javac.compilerargs} ${javac.compilerargs.jaxws}"/>
182 <macrodef name="depend" uri="http://www.netbeans.org/ns/j2se-project/3">
183 <attribute default="${src.dir}" name="srcdir"/>
184 <attribute default="${build.classes.dir}" name="destdir"/>
185 <attribute default="${javac.classpath}" name="classpath"/>
187 <depend cache="${build.dir}/depcache" destdir="@{destdir}" excludes="${excludes}" includes="${includes}" srcdir="@{srcdir}">
189 <path path="@{classpath}"/>
194 <macrodef name="force-recompile" uri="http://www.netbeans.org/ns/j2se-project/3">
195 <attribute default="${build.classes.dir}" name="destdir"/>
197 <fail unless="javac.includes">Must set javac.includes</fail>
198 <pathconvert pathsep="," property="javac.includes.binary">
200 <filelist dir="@{destdir}" files="${javac.includes}"/>
202 <globmapper from="*.java" to="*.class"/>
205 <files includes="${javac.includes.binary}"/>
210 <target name="-init-macrodef-junit">
211 <macrodef name="junit" uri="http://www.netbeans.org/ns/j2se-project/3">
212 <attribute default="${includes}" name="includes"/>
213 <attribute default="${excludes}" name="excludes"/>
214 <attribute default="**" name="testincludes"/>
216 <junit dir="${work.dir}" errorproperty="tests.failed" failureproperty="tests.failed" fork="true" showoutput="true">
217 <batchtest todir="${build.test.results.dir}">
218 <fileset dir="${test.src.dir}" excludes="@{excludes},${excludes}" includes="@{includes}">
219 <filename name="@{testincludes}"/>
223 <path path="${run.test.classpath}"/>
226 <propertyref prefix="test-sys-prop."/>
227 <mapper from="test-sys-prop.*" to="*" type="glob"/>
229 <formatter type="brief" usefile="false"/>
230 <formatter type="xml"/>
231 <jvmarg line="${run.jvmargs}"/>
236 <target depends="-init-debug-args" name="-init-macrodef-nbjpda">
237 <macrodef name="nbjpdastart" uri="http://www.netbeans.org/ns/j2se-project/1">
238 <attribute default="${main.class}" name="name"/>
239 <attribute default="${debug.classpath}" name="classpath"/>
240 <attribute default="" name="stopclassname"/>
242 <nbjpdastart addressproperty="jpda.address" name="@{name}" stopclassname="@{stopclassname}" transport="${debug-transport}">
244 <path path="@{classpath}"/>
249 <macrodef name="nbjpdareload" uri="http://www.netbeans.org/ns/j2se-project/1">
250 <attribute default="${build.classes.dir}" name="dir"/>
253 <fileset dir="@{dir}" includes="${fix.classes}">
254 <include name="${fix.includes}*.class"/>
260 <target name="-init-debug-args">
261 <property name="version-output" value="java version "${ant.java.version}"/>
262 <condition property="have-jdk-older-than-1.4">
264 <contains string="${version-output}" substring="java version "1.0"/>
265 <contains string="${version-output}" substring="java version "1.1"/>
266 <contains string="${version-output}" substring="java version "1.2"/>
267 <contains string="${version-output}" substring="java version "1.3"/>
270 <condition else="-Xdebug" property="debug-args-line" value="-Xdebug -Xnoagent -Djava.compiler=none">
271 <istrue value="${have-jdk-older-than-1.4}"/>
273 <condition else="dt_socket" property="debug-transport-by-os" value="dt_shmem">
274 <os family="windows"/>
276 <condition else="${debug-transport-by-os}" property="debug-transport" value="${debug.transport}">
277 <isset property="debug.transport"/>
280 <target depends="-init-debug-args" name="-init-macrodef-debug">
281 <macrodef name="debug" uri="http://www.netbeans.org/ns/j2se-project/3">
282 <attribute default="${main.class}" name="classname"/>
283 <attribute default="${debug.classpath}" name="classpath"/>
284 <element name="customize" optional="true"/>
286 <java classname="@{classname}" dir="${work.dir}" fork="true">
287 <jvmarg line="${debug-args-line}"/>
288 <jvmarg value="-Xrunjdwp:transport=${debug-transport},address=${jpda.address}"/>
289 <jvmarg value="-Dfile.encoding=${source.encoding}"/>
290 <redirector errorencoding="${source.encoding}" inputencoding="${source.encoding}" outputencoding="${source.encoding}"/>
291 <jvmarg line="${run.jvmargs}"/>
293 <path path="@{classpath}"/>
296 <propertyref prefix="run-sys-prop."/>
297 <mapper from="run-sys-prop.*" to="*" type="glob"/>
304 <target name="-init-macrodef-java">
305 <macrodef name="java" uri="http://www.netbeans.org/ns/j2se-project/1">
306 <attribute default="${main.class}" name="classname"/>
307 <attribute default="${run.classpath}" name="classpath"/>
308 <element name="customize" optional="true"/>
310 <java classname="@{classname}" dir="${work.dir}" fork="true">
311 <jvmarg value="-Dfile.encoding=${source.encoding}"/>
312 <redirector errorencoding="${source.encoding}" inputencoding="${source.encoding}" outputencoding="${source.encoding}"/>
313 <jvmarg line="${run.jvmargs}"/>
315 <path path="@{classpath}"/>
318 <propertyref prefix="run-sys-prop."/>
319 <mapper from="run-sys-prop.*" to="*" type="glob"/>
326 <target name="-init-presetdef-jar">
327 <presetdef name="jar" uri="http://www.netbeans.org/ns/j2se-project/1">
328 <jar compress="${jar.compress}" jarfile="${dist.jar}">
329 <j2seproject1:fileset dir="${build.classes.dir}"/>
333 <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"/>
339 <target depends="init" name="deps-jar" unless="no.deps"/>
340 <target depends="init,-check-automatic-build,-clean-after-automatic-build" name="-verify-automatic-build"/>
341 <target depends="init" name="-check-automatic-build">
342 <available file="${build.classes.dir}/.netbeans_automatic_build" property="netbeans.automatic.build"/>
344 <target depends="init" if="netbeans.automatic.build" name="-clean-after-automatic-build">
345 <antcall target="clean"/>
347 <target depends="init,deps-jar" name="-pre-pre-compile">
348 <mkdir dir="${build.classes.dir}"/>
350 <target name="-pre-compile">
351 <!-- Empty placeholder for easier customization. -->
352 <!-- You can override this target in the ../build.xml file. -->
354 <target if="do.depend.true" name="-compile-depend">
355 <pathconvert property="build.generated.subdirs">
356 <dirset dir="${build.generated.sources.dir}" erroronmissingdir="false">
360 <j2seproject3:depend srcdir="${src.dir}:${build.generated.subdirs}"/>
362 <target depends="init,deps-jar,-pre-pre-compile,-pre-compile,-compile-depend" if="have.sources" name="-do-compile">
363 <j2seproject3:javac gensrcdir="${build.generated.sources.dir}"/>
364 <copy todir="${build.classes.dir}">
365 <fileset dir="${src.dir}" excludes="${build.classes.excludes},${excludes}" includes="${includes}"/>
368 <target name="-post-compile">
369 <!-- Empty placeholder for easier customization. -->
370 <!-- You can override this target in the ../build.xml file. -->
372 <target depends="init,deps-jar,-verify-automatic-build,-pre-pre-compile,-pre-compile,-do-compile,-post-compile" description="Compile project." name="compile"/>
373 <target name="-pre-compile-single">
374 <!-- Empty placeholder for easier customization. -->
375 <!-- You can override this target in the ../build.xml file. -->
377 <target depends="init,deps-jar,-pre-pre-compile" name="-do-compile-single">
378 <fail unless="javac.includes">Must select some files in the IDE or set javac.includes</fail>
379 <j2seproject3:force-recompile/>
380 <j2seproject3:javac excludes="" gensrcdir="${build.generated.sources.dir}" includes="${javac.includes}" sourcepath="${src.dir}"/>
382 <target name="-post-compile-single">
383 <!-- Empty placeholder for easier customization. -->
384 <!-- You can override this target in the ../build.xml file. -->
386 <target depends="init,deps-jar,-verify-automatic-build,-pre-pre-compile,-pre-compile-single,-do-compile-single,-post-compile-single" name="compile-single"/>
392 <target depends="init" name="-pre-pre-jar">
393 <dirname file="${dist.jar}" property="dist.jar.dir"/>
394 <mkdir dir="${dist.jar.dir}"/>
396 <target name="-pre-jar">
397 <!-- Empty placeholder for easier customization. -->
398 <!-- You can override this target in the ../build.xml file. -->
400 <target depends="init,compile,-pre-pre-jar,-pre-jar" name="-do-jar-without-manifest" unless="manifest.available">
403 <target depends="init,compile,-pre-pre-jar,-pre-jar" if="manifest.available" name="-do-jar-with-manifest" unless="manifest.available+main.class">
404 <j2seproject1:jar manifest="${manifest.file}"/>
406 <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">
407 <j2seproject1:jar manifest="${manifest.file}">
408 <j2seproject1:manifest>
409 <j2seproject1:attribute name="Main-Class" value="${main.class}"/>
410 </j2seproject1:manifest>
412 <echo>To run this application from the command line without Ant, try:</echo>
413 <property location="${build.classes.dir}" name="build.classes.dir.resolved"/>
414 <property location="${dist.jar}" name="dist.jar.resolved"/>
415 <pathconvert property="run.classpath.with.dist.jar">
416 <path path="${run.classpath}"/>
417 <map from="${build.classes.dir.resolved}" to="${dist.jar.resolved}"/>
419 <echo>java -cp "${run.classpath.with.dist.jar}" ${main.class}</echo>
421 <target depends="init,compile,-pre-pre-jar,-pre-jar" if="manifest.available+main.class+mkdist.available" name="-do-jar-with-libraries">
422 <property location="${build.classes.dir}" name="build.classes.dir.resolved"/>
423 <pathconvert property="run.classpath.without.build.classes.dir">
424 <path path="${run.classpath}"/>
425 <map from="${build.classes.dir.resolved}" to=""/>
427 <pathconvert pathsep=" " property="jar.classpath">
428 <path path="${run.classpath.without.build.classes.dir}"/>
431 <globmapper from="*" to="lib/*"/>
434 <taskdef classname="org.netbeans.modules.java.j2seproject.copylibstask.CopyLibs" classpath="${libs.CopyLibs.classpath}" name="copylibs"/>
435 <copylibs compress="${jar.compress}" jarfile="${dist.jar}" manifest="${manifest.file}" runtimeclasspath="${run.classpath.without.build.classes.dir}">
436 <fileset dir="${build.classes.dir}"/>
438 <attribute name="Main-Class" value="${main.class}"/>
439 <attribute name="Class-Path" value="${jar.classpath}"/>
442 <echo>To run this application from the command line without Ant, try:</echo>
443 <property location="${dist.jar}" name="dist.jar.resolved"/>
444 <echo>java -jar "${dist.jar.resolved}"</echo>
446 <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">
447 <property location="${build.classes.dir}" name="build.classes.dir.resolved"/>
448 <pathconvert property="run.classpath.without.build.classes.dir">
449 <path path="${run.classpath}"/>
450 <map from="${build.classes.dir.resolved}" to=""/>
452 <pathconvert pathsep=" " property="jar.classpath">
453 <path path="${run.classpath.without.build.classes.dir}"/>
456 <globmapper from="*" to="lib/*"/>
459 <taskdef classname="org.netbeans.modules.java.j2seproject.copylibstask.CopyLibs" classpath="${libs.CopyLibs.classpath}" name="copylibs"/>
460 <copylibs compress="${jar.compress}" jarfile="${dist.jar}" runtimeclasspath="${run.classpath.without.build.classes.dir}">
461 <fileset dir="${build.classes.dir}"/>
464 <target name="-post-jar">
465 <!-- Empty placeholder for easier customization. -->
466 <!-- You can override this target in the ../build.xml file. -->
468 <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"/>
474 <target depends="init,compile" description="Run a main class." name="run">
477 <arg line="${application.args}"/>
481 <target name="-do-not-recompile">
482 <property name="javac.includes.binary" value=""/>
484 <target depends="init,-do-not-recompile,compile-single" name="run-single">
485 <fail unless="run.class">Must select one file in the IDE or set run.class</fail>
486 <j2seproject1:java classname="${run.class}"/>
488 <target depends="init,-do-not-recompile,compile-test-single" name="run-test-with-main">
489 <fail unless="run.class">Must select one file in the IDE or set run.class</fail>
490 <j2seproject1:java classname="${run.class}" classpath="${run.test.classpath}"/>
497 <target depends="init" if="netbeans.home" name="-debug-start-debugger">
498 <j2seproject1:nbjpdastart name="${debug.class}"/>
500 <target depends="init" if="netbeans.home" name="-debug-start-debugger-main-test">
501 <j2seproject1:nbjpdastart classpath="${debug.test.classpath}" name="${debug.class}"/>
503 <target depends="init,compile" name="-debug-start-debuggee">
506 <arg line="${application.args}"/>
508 </j2seproject3:debug>
510 <target depends="init,compile,-debug-start-debugger,-debug-start-debuggee" description="Debug project in IDE." if="netbeans.home" name="debug"/>
511 <target depends="init" if="netbeans.home" name="-debug-start-debugger-stepinto">
512 <j2seproject1:nbjpdastart stopclassname="${main.class}"/>
514 <target depends="init,compile,-debug-start-debugger-stepinto,-debug-start-debuggee" if="netbeans.home" name="debug-stepinto"/>
515 <target depends="init,compile-single" if="netbeans.home" name="-debug-start-debuggee-single">
516 <fail unless="debug.class">Must select one file in the IDE or set debug.class</fail>
517 <j2seproject3:debug classname="${debug.class}"/>
519 <target depends="init,-do-not-recompile,compile-single,-debug-start-debugger,-debug-start-debuggee-single" if="netbeans.home" name="debug-single"/>
520 <target depends="init,compile-test-single" if="netbeans.home" name="-debug-start-debuggee-main-test">
521 <fail unless="debug.class">Must select one file in the IDE or set debug.class</fail>
522 <j2seproject3:debug classname="${debug.class}" classpath="${debug.test.classpath}"/>
524 <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"/>
525 <target depends="init" name="-pre-debug-fix">
526 <fail unless="fix.includes">Must set fix.includes</fail>
527 <property name="javac.includes" value="${fix.includes}.java"/>
529 <target depends="init,-pre-debug-fix,compile-single" if="netbeans.home" name="-do-debug-fix">
530 <j2seproject1:nbjpdareload/>
532 <target depends="init,-pre-debug-fix,-do-debug-fix" if="netbeans.home" name="debug-fix"/>
538 <target depends="init" name="-javadoc-build">
539 <mkdir dir="${dist.javadoc.dir}"/>
540 <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}">
542 <path path="${javac.classpath}"/>
544 <fileset dir="${src.dir}" excludes="${excludes}" includes="${includes}">
545 <filename name="**/*.java"/>
547 <fileset dir="${build.generated.sources.dir}" erroronmissingdir="false">
548 <include name="**/*.java"/>
552 <target depends="init,-javadoc-build" if="netbeans.home" name="-javadoc-browse" unless="no.javadoc.preview">
553 <nbbrowse file="${dist.javadoc.dir}/index.html"/>
555 <target depends="init,-javadoc-build,-javadoc-browse" description="Build Javadoc." name="javadoc"/>
557 =========================
558 JUNIT COMPILATION SECTION
559 =========================
561 <target depends="init,compile" if="have.tests" name="-pre-pre-compile-test">
562 <mkdir dir="${build.test.classes.dir}"/>
564 <target name="-pre-compile-test">
565 <!-- Empty placeholder for easier customization. -->
566 <!-- You can override this target in the ../build.xml file. -->
568 <target if="do.depend.true" name="-compile-test-depend">
569 <j2seproject3:depend classpath="${javac.test.classpath}" destdir="${build.test.classes.dir}" srcdir="${test.src.dir}"/>
571 <target depends="init,compile,-pre-pre-compile-test,-pre-compile-test,-compile-test-depend" if="have.tests" name="-do-compile-test">
572 <j2seproject3:javac classpath="${javac.test.classpath}" debug="true" destdir="${build.test.classes.dir}" srcdir="${test.src.dir}"/>
573 <copy todir="${build.test.classes.dir}">
574 <fileset dir="${test.src.dir}" excludes="${build.classes.excludes},${excludes}" includes="${includes}"/>
577 <target name="-post-compile-test">
578 <!-- Empty placeholder for easier customization. -->
579 <!-- You can override this target in the ../build.xml file. -->
581 <target depends="init,compile,-pre-pre-compile-test,-pre-compile-test,-do-compile-test,-post-compile-test" name="compile-test"/>
582 <target name="-pre-compile-test-single">
583 <!-- Empty placeholder for easier customization. -->
584 <!-- You can override this target in the ../build.xml file. -->
586 <target depends="init,compile,-pre-pre-compile-test,-pre-compile-test-single" if="have.tests" name="-do-compile-test-single">
587 <fail unless="javac.includes">Must select some files in the IDE or set javac.includes</fail>
588 <j2seproject3:force-recompile destdir="${build.test.classes.dir}"/>
589 <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}"/>
590 <copy todir="${build.test.classes.dir}">
591 <fileset dir="${test.src.dir}" excludes="${build.classes.excludes},${excludes}" includes="${includes}"/>
594 <target name="-post-compile-test-single">
595 <!-- Empty placeholder for easier customization. -->
596 <!-- You can override this target in the ../build.xml file. -->
598 <target depends="init,compile,-pre-pre-compile-test,-pre-compile-test-single,-do-compile-test-single,-post-compile-test-single" name="compile-test-single"/>
600 =======================
601 JUNIT EXECUTION SECTION
602 =======================
604 <target depends="init" if="have.tests" name="-pre-test-run">
605 <mkdir dir="${build.test.results.dir}"/>
607 <target depends="init,compile-test,-pre-test-run" if="have.tests" name="-do-test-run">
608 <j2seproject3:junit testincludes="**/*Test.java"/>
610 <target depends="init,compile-test,-pre-test-run,-do-test-run" if="have.tests" name="-post-test-run">
611 <fail if="tests.failed" unless="ignore.failing.tests">Some tests failed; see details above.</fail>
613 <target depends="init" if="have.tests" name="test-report"/>
614 <target depends="init" if="netbeans.home+have.tests" name="-test-browse"/>
615 <target depends="init,compile-test,-pre-test-run,-do-test-run,test-report,-post-test-run,-test-browse" description="Run unit tests." name="test"/>
616 <target depends="init" if="have.tests" name="-pre-test-run-single">
617 <mkdir dir="${build.test.results.dir}"/>
619 <target depends="init,compile-test-single,-pre-test-run-single" if="have.tests" name="-do-test-run-single">
620 <fail unless="test.includes">Must select some files in the IDE or set test.includes</fail>
621 <j2seproject3:junit excludes="" includes="${test.includes}"/>
623 <target depends="init,compile-test-single,-pre-test-run-single,-do-test-run-single" if="have.tests" name="-post-test-run-single">
624 <fail if="tests.failed" unless="ignore.failing.tests">Some tests failed; see details above.</fail>
626 <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"/>
628 =======================
629 JUNIT DEBUGGING SECTION
630 =======================
632 <target depends="init,compile-test" if="have.tests" name="-debug-start-debuggee-test">
633 <fail unless="test.class">Must select one file in the IDE or set test.class</fail>
634 <property location="${build.test.results.dir}/TEST-${test.class}.xml" name="test.report.file"/>
635 <delete file="${test.report.file}"/>
636 <mkdir dir="${build.test.results.dir}"/>
637 <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}">
640 <propertyref prefix="test-sys-prop."/>
641 <mapper from="test-sys-prop.*" to="*" type="glob"/>
643 <arg value="${test.class}"/>
644 <arg value="showoutput=true"/>
645 <arg value="formatter=org.apache.tools.ant.taskdefs.optional.junit.BriefJUnitResultFormatter"/>
646 <arg value="formatter=org.apache.tools.ant.taskdefs.optional.junit.XMLJUnitResultFormatter,${test.report.file}"/>
648 </j2seproject3:debug>
650 <target depends="init,compile-test" if="netbeans.home+have.tests" name="-debug-start-debugger-test">
651 <j2seproject1:nbjpdastart classpath="${debug.test.classpath}" name="${test.class}"/>
653 <target depends="init,-do-not-recompile,compile-test-single,-debug-start-debugger-test,-debug-start-debuggee-test" name="debug-test"/>
654 <target depends="init,-pre-debug-fix,compile-test-single" if="netbeans.home" name="-do-debug-fix-test">
655 <j2seproject1:nbjpdareload dir="${build.test.classes.dir}"/>
657 <target depends="init,-pre-debug-fix,-do-debug-fix-test" if="netbeans.home" name="debug-fix-test"/>
659 =========================
660 APPLET EXECUTION SECTION
661 =========================
663 <target depends="init,compile-single" name="run-applet">
664 <fail unless="applet.url">Must select one file in the IDE or set applet.url</fail>
665 <j2seproject1:java classname="sun.applet.AppletViewer">
667 <arg value="${applet.url}"/>
672 =========================
673 APPLET DEBUGGING SECTION
674 =========================
676 <target depends="init,compile-single" if="netbeans.home" name="-debug-start-debuggee-applet">
677 <fail unless="applet.url">Must select one file in the IDE or set applet.url</fail>
678 <j2seproject3:debug classname="sun.applet.AppletViewer">
680 <arg value="${applet.url}"/>
682 </j2seproject3:debug>
684 <target depends="init,compile-single,-debug-start-debugger,-debug-start-debuggee-applet" if="netbeans.home" name="debug-applet"/>
690 <target depends="init" name="deps-clean" unless="no.deps"/>
691 <target depends="init" name="-do-clean">
692 <delete dir="${build.dir}"/>
693 <delete dir="${dist.dir}"/>
695 <target name="-post-clean">
696 <!-- Empty placeholder for easier customization. -->
697 <!-- You can override this target in the ../build.xml file. -->
699 <target depends="init,deps-clean,-do-clean,-post-clean" description="Clean build products." name="clean"/>