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="NicoBrowser-impl">
\r
23 <import file="groovy-build.xml"/>
\r
24 <import file="jnlp-impl.xml"/>
\r
25 <fail message="Please build using Ant 1.7.1 or higher.">
\r
28 <antversion atleast="1.7.1"/>
\r
32 <target depends="test,jar,javadoc" description="Build and test whole project." name="default"/>
\r
34 ======================
\r
35 INITIALIZATION SECTION
\r
36 ======================
\r
38 <target name="-pre-init">
\r
39 <!-- Empty placeholder for easier customization. -->
\r
40 <!-- You can override this target in the ../build.xml file. -->
\r
42 <target depends="-pre-init" name="-init-private">
\r
43 <property file="nbproject/private/config.properties"/>
\r
44 <property file="nbproject/private/configs/${config}.properties"/>
\r
45 <property file="nbproject/private/private.properties"/>
\r
47 <target depends="-pre-init,-init-private" name="-init-user">
\r
48 <property file="${user.properties.file}"/>
\r
49 <!-- The two properties below are usually overridden -->
\r
50 <!-- by the active platform. Just a fallback. -->
\r
51 <property name="default.javac.source" value="1.4"/>
\r
52 <property name="default.javac.target" value="1.4"/>
\r
54 <target depends="-pre-init,-init-private,-init-user" name="-init-project">
\r
55 <property file="nbproject/configs/${config}.properties"/>
\r
56 <property file="nbproject/project.properties"/>
\r
58 <target depends="-pre-init,-init-private,-init-user,-init-project,-init-macrodef-property" name="-do-init">
\r
59 <available file="${manifest.file}" property="manifest.available"/>
\r
60 <condition property="manifest.available+main.class">
\r
62 <isset property="manifest.available"/>
\r
63 <isset property="main.class"/>
\r
65 <equals arg1="${main.class}" arg2="" trim="true"/>
\r
69 <condition property="manifest.available+main.class+mkdist.available">
\r
71 <istrue value="${manifest.available+main.class}"/>
\r
72 <isset property="libs.CopyLibs.classpath"/>
\r
75 <condition property="have.tests">
\r
77 <available file="${test.src.dir}"/>
\r
80 <condition property="have.sources">
\r
82 <available file="${src.dir}"/>
\r
85 <condition property="netbeans.home+have.tests">
\r
87 <isset property="netbeans.home"/>
\r
88 <isset property="have.tests"/>
\r
91 <condition property="no.javadoc.preview">
\r
93 <isset property="javadoc.preview"/>
\r
94 <isfalse value="${javadoc.preview}"/>
\r
97 <property name="run.jvmargs" value=""/>
\r
98 <property name="javac.compilerargs" value=""/>
\r
99 <property name="work.dir" value="${basedir}"/>
\r
100 <condition property="no.deps">
\r
102 <istrue value="${no.dependencies}"/>
\r
105 <property name="javac.debug" value="true"/>
\r
106 <property name="javadoc.preview" value="true"/>
\r
107 <property name="application.args" value=""/>
\r
108 <property name="source.encoding" value="${file.encoding}"/>
\r
109 <condition property="javadoc.encoding.used" value="${javadoc.encoding}">
\r
111 <isset property="javadoc.encoding"/>
\r
113 <equals arg1="${javadoc.encoding}" arg2=""/>
\r
117 <property name="javadoc.encoding.used" value="${source.encoding}"/>
\r
118 <property name="includes" value="**"/>
\r
119 <property name="excludes" value=""/>
\r
120 <property name="do.depend" value="false"/>
\r
121 <condition property="do.depend.true">
\r
122 <istrue value="${do.depend}"/>
\r
124 <condition else="" property="javac.compilerargs.jaxws" value="-Djava.endorsed.dirs='${jaxws.endorsed.dir}'">
\r
126 <isset property="jaxws.endorsed.dir"/>
\r
127 <available file="nbproject/jaxws-build.xml"/>
\r
131 <target name="-post-init">
\r
132 <!-- Empty placeholder for easier customization. -->
\r
133 <!-- You can override this target in the ../build.xml file. -->
\r
135 <target depends="-pre-init,-init-private,-init-user,-init-project,-do-init" name="-init-check">
\r
136 <fail unless="src.dir">Must set src.dir</fail>
\r
137 <fail unless="test.src.dir">Must set test.src.dir</fail>
\r
138 <fail unless="build.dir">Must set build.dir</fail>
\r
139 <fail unless="dist.dir">Must set dist.dir</fail>
\r
140 <fail unless="build.classes.dir">Must set build.classes.dir</fail>
\r
141 <fail unless="dist.javadoc.dir">Must set dist.javadoc.dir</fail>
\r
142 <fail unless="build.test.classes.dir">Must set build.test.classes.dir</fail>
\r
143 <fail unless="build.test.results.dir">Must set build.test.results.dir</fail>
\r
144 <fail unless="build.classes.excludes">Must set build.classes.excludes</fail>
\r
145 <fail unless="dist.jar">Must set dist.jar</fail>
\r
147 <target name="-init-macrodef-property">
\r
148 <macrodef name="property" uri="http://www.netbeans.org/ns/j2se-project/1">
\r
149 <attribute name="name"/>
\r
150 <attribute name="value"/>
\r
152 <property name="@{name}" value="${@{value}}"/>
\r
156 <target name="-init-macrodef-javac">
\r
157 <macrodef name="javac" uri="http://www.netbeans.org/ns/j2se-project/3">
\r
158 <attribute default="${src.dir}" name="srcdir"/>
\r
159 <attribute default="${build.classes.dir}" name="destdir"/>
\r
160 <attribute default="${javac.classpath}" name="classpath"/>
\r
161 <attribute default="${includes}" name="includes"/>
\r
162 <attribute default="${excludes}" name="excludes"/>
\r
163 <attribute default="${javac.debug}" name="debug"/>
\r
164 <attribute default="${empty.dir}" name="sourcepath"/>
\r
165 <attribute default="${empty.dir}" name="gensrcdir"/>
\r
166 <element name="customize" optional="true"/>
\r
168 <property location="${build.dir}/empty" name="empty.dir"/>
\r
169 <mkdir dir="${empty.dir}"/>
\r
170 <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
172 <dirset dir="@{gensrcdir}" erroronmissingdir="false">
\r
173 <include name="*"/>
\r
177 <path path="@{classpath}"/>
\r
179 <compilerarg line="${javac.compilerargs} ${javac.compilerargs.jaxws}"/>
\r
184 <macrodef name="depend" uri="http://www.netbeans.org/ns/j2se-project/3">
\r
185 <attribute default="${src.dir}" name="srcdir"/>
\r
186 <attribute default="${build.classes.dir}" name="destdir"/>
\r
187 <attribute default="${javac.classpath}" name="classpath"/>
\r
189 <depend cache="${build.dir}/depcache" destdir="@{destdir}" excludes="${excludes}" includes="${includes}" srcdir="@{srcdir}">
\r
191 <path path="@{classpath}"/>
\r
196 <macrodef name="force-recompile" uri="http://www.netbeans.org/ns/j2se-project/3">
\r
197 <attribute default="${build.classes.dir}" name="destdir"/>
\r
199 <fail unless="javac.includes">Must set javac.includes</fail>
\r
200 <pathconvert pathsep="," property="javac.includes.binary">
\r
202 <filelist dir="@{destdir}" files="${javac.includes}"/>
\r
204 <globmapper from="*.java" to="*.class"/>
\r
207 <files includes="${javac.includes.binary}"/>
\r
212 <target name="-init-macrodef-junit">
\r
213 <macrodef name="junit" uri="http://www.netbeans.org/ns/j2se-project/3">
\r
214 <attribute default="${includes}" name="includes"/>
\r
215 <attribute default="${excludes}" name="excludes"/>
\r
216 <attribute default="**" name="testincludes"/>
\r
218 <junit dir="${work.dir}" errorproperty="tests.failed" failureproperty="tests.failed" fork="true" showoutput="true">
\r
219 <batchtest todir="${build.test.results.dir}">
\r
220 <fileset dir="${test.src.dir}" excludes="@{excludes},${excludes}" includes="@{includes}">
\r
221 <filename name="@{testincludes}"/>
\r
225 <path path="${run.test.classpath}"/>
\r
228 <propertyref prefix="test-sys-prop."/>
\r
229 <mapper from="test-sys-prop.*" to="*" type="glob"/>
\r
231 <formatter type="brief" usefile="false"/>
\r
232 <formatter type="xml"/>
\r
233 <jvmarg line="${run.jvmargs}"/>
\r
238 <target depends="-init-debug-args" name="-init-macrodef-nbjpda">
\r
239 <macrodef name="nbjpdastart" uri="http://www.netbeans.org/ns/j2se-project/1">
\r
240 <attribute default="${main.class}" name="name"/>
\r
241 <attribute default="${debug.classpath}" name="classpath"/>
\r
242 <attribute default="" name="stopclassname"/>
\r
244 <nbjpdastart addressproperty="jpda.address" name="@{name}" stopclassname="@{stopclassname}" transport="${debug-transport}">
\r
246 <path path="@{classpath}"/>
\r
251 <macrodef name="nbjpdareload" uri="http://www.netbeans.org/ns/j2se-project/1">
\r
252 <attribute default="${build.classes.dir}" name="dir"/>
\r
255 <fileset dir="@{dir}" includes="${fix.classes}">
\r
256 <include name="${fix.includes}*.class"/>
\r
262 <target name="-init-debug-args">
\r
263 <property name="version-output" value="java version "${ant.java.version}"/>
\r
264 <condition property="have-jdk-older-than-1.4">
\r
266 <contains string="${version-output}" substring="java version "1.0"/>
\r
267 <contains string="${version-output}" substring="java version "1.1"/>
\r
268 <contains string="${version-output}" substring="java version "1.2"/>
\r
269 <contains string="${version-output}" substring="java version "1.3"/>
\r
272 <condition else="-Xdebug" property="debug-args-line" value="-Xdebug -Xnoagent -Djava.compiler=none">
\r
273 <istrue value="${have-jdk-older-than-1.4}"/>
\r
275 <condition else="dt_socket" property="debug-transport-by-os" value="dt_shmem">
\r
276 <os family="windows"/>
\r
278 <condition else="${debug-transport-by-os}" property="debug-transport" value="${debug.transport}">
\r
279 <isset property="debug.transport"/>
\r
282 <target depends="-init-debug-args" name="-init-macrodef-debug">
\r
283 <macrodef name="debug" uri="http://www.netbeans.org/ns/j2se-project/3">
\r
284 <attribute default="${main.class}" name="classname"/>
\r
285 <attribute default="${debug.classpath}" name="classpath"/>
\r
286 <element name="customize" optional="true"/>
\r
288 <java classname="@{classname}" dir="${work.dir}" fork="true">
\r
289 <jvmarg line="${debug-args-line}"/>
\r
290 <jvmarg value="-Xrunjdwp:transport=${debug-transport},address=${jpda.address}"/>
\r
291 <jvmarg value="-Dfile.encoding=${source.encoding}"/>
\r
292 <redirector errorencoding="${source.encoding}" inputencoding="${source.encoding}" outputencoding="${source.encoding}"/>
\r
293 <jvmarg line="${run.jvmargs}"/>
\r
295 <path path="@{classpath}"/>
\r
298 <propertyref prefix="run-sys-prop."/>
\r
299 <mapper from="run-sys-prop.*" to="*" type="glob"/>
\r
306 <target name="-init-macrodef-java">
\r
307 <macrodef name="java" uri="http://www.netbeans.org/ns/j2se-project/1">
\r
308 <attribute default="${main.class}" name="classname"/>
\r
309 <attribute default="${run.classpath}" name="classpath"/>
\r
310 <element name="customize" optional="true"/>
\r
312 <java classname="@{classname}" dir="${work.dir}" fork="true">
\r
313 <jvmarg value="-Dfile.encoding=${source.encoding}"/>
\r
314 <redirector errorencoding="${source.encoding}" inputencoding="${source.encoding}" outputencoding="${source.encoding}"/>
\r
315 <jvmarg line="${run.jvmargs}"/>
\r
317 <path path="@{classpath}"/>
\r
320 <propertyref prefix="run-sys-prop."/>
\r
321 <mapper from="run-sys-prop.*" to="*" type="glob"/>
\r
328 <target name="-init-presetdef-jar">
\r
329 <presetdef name="jar" uri="http://www.netbeans.org/ns/j2se-project/1">
\r
330 <jar compress="${jar.compress}" jarfile="${dist.jar}">
\r
331 <j2seproject1:fileset dir="${build.classes.dir}"/>
\r
335 <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
337 ===================
\r
338 COMPILATION SECTION
\r
339 ===================
\r
341 <target depends="init" name="deps-jar" unless="no.deps"/>
\r
342 <target depends="init,-check-automatic-build,-clean-after-automatic-build" name="-verify-automatic-build"/>
\r
343 <target depends="init" name="-check-automatic-build">
\r
344 <available file="${build.classes.dir}/.netbeans_automatic_build" property="netbeans.automatic.build"/>
\r
346 <target depends="init" if="netbeans.automatic.build" name="-clean-after-automatic-build">
\r
347 <antcall target="clean"/>
\r
349 <target depends="init,deps-jar,-groovy-init-macrodef-javac" name="-pre-pre-compile">
\r
350 <mkdir dir="${build.classes.dir}"/>
\r
352 <target name="-pre-compile">
\r
353 <!-- Empty placeholder for easier customization. -->
\r
354 <!-- You can override this target in the ../build.xml file. -->
\r
356 <target if="do.depend.true" name="-compile-depend">
\r
357 <pathconvert property="build.generated.subdirs">
\r
358 <dirset dir="${build.generated.sources.dir}" erroronmissingdir="false">
\r
359 <include name="*"/>
\r
362 <j2seproject3:depend srcdir="${src.dir}:${build.generated.subdirs}"/>
\r
364 <target depends="init,deps-jar,-pre-pre-compile,-pre-compile,-compile-depend" if="have.sources" name="-do-compile">
\r
365 <j2seproject3:javac gensrcdir="${build.generated.sources.dir}"/>
\r
366 <copy todir="${build.classes.dir}">
\r
367 <fileset dir="${src.dir}" excludes="${build.classes.excludes},${excludes}" includes="${includes}"/>
\r
370 <target name="-post-compile">
\r
371 <!-- Empty placeholder for easier customization. -->
\r
372 <!-- You can override this target in the ../build.xml file. -->
\r
374 <target depends="init,deps-jar,-verify-automatic-build,-pre-pre-compile,-pre-compile,-do-compile,-post-compile" description="Compile project." name="compile"/>
\r
375 <target name="-pre-compile-single">
\r
376 <!-- Empty placeholder for easier customization. -->
\r
377 <!-- You can override this target in the ../build.xml file. -->
\r
379 <target depends="init,deps-jar,-pre-pre-compile" name="-do-compile-single">
\r
380 <fail unless="javac.includes">Must select some files in the IDE or set javac.includes</fail>
\r
381 <j2seproject3:force-recompile/>
\r
382 <j2seproject3:javac excludes="" gensrcdir="${build.generated.sources.dir}" includes="${javac.includes}" sourcepath="${src.dir}"/>
\r
384 <target name="-post-compile-single">
\r
385 <!-- Empty placeholder for easier customization. -->
\r
386 <!-- You can override this target in the ../build.xml file. -->
\r
388 <target depends="init,deps-jar,-verify-automatic-build,-pre-pre-compile,-pre-compile-single,-do-compile-single,-post-compile-single" name="compile-single"/>
\r
390 ====================
\r
391 JAR BUILDING SECTION
\r
392 ====================
\r
394 <target depends="init" name="-pre-pre-jar">
\r
395 <dirname file="${dist.jar}" property="dist.jar.dir"/>
\r
396 <mkdir dir="${dist.jar.dir}"/>
\r
398 <target name="-pre-jar">
\r
399 <!-- Empty placeholder for easier customization. -->
\r
400 <!-- You can override this target in the ../build.xml file. -->
\r
402 <target depends="init,compile,-pre-pre-jar,-pre-jar" name="-do-jar-without-manifest" unless="manifest.available">
\r
403 <j2seproject1:jar/>
\r
405 <target depends="init,compile,-pre-pre-jar,-pre-jar" if="manifest.available" name="-do-jar-with-manifest" unless="manifest.available+main.class">
\r
406 <j2seproject1:jar manifest="${manifest.file}"/>
\r
408 <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
409 <j2seproject1:jar manifest="${manifest.file}">
\r
410 <j2seproject1:manifest>
\r
411 <j2seproject1:attribute name="Main-Class" value="${main.class}"/>
\r
412 </j2seproject1:manifest>
\r
413 </j2seproject1:jar>
\r
414 <echo>To run this application from the command line without Ant, try:</echo>
\r
415 <property location="${build.classes.dir}" name="build.classes.dir.resolved"/>
\r
416 <property location="${dist.jar}" name="dist.jar.resolved"/>
\r
417 <pathconvert property="run.classpath.with.dist.jar">
\r
418 <path path="${run.classpath}"/>
\r
419 <map from="${build.classes.dir.resolved}" to="${dist.jar.resolved}"/>
\r
421 <echo>java -cp "${run.classpath.with.dist.jar}" ${main.class}</echo>
\r
423 <target depends="init,compile,-pre-pre-jar,-pre-jar" if="manifest.available+main.class+mkdist.available" name="-do-jar-with-libraries">
\r
424 <property location="${build.classes.dir}" name="build.classes.dir.resolved"/>
\r
425 <pathconvert property="run.classpath.without.build.classes.dir">
\r
426 <path path="${run.classpath}"/>
\r
427 <map from="${build.classes.dir.resolved}" to=""/>
\r
429 <pathconvert pathsep=" " property="jar.classpath">
\r
430 <path path="${run.classpath.without.build.classes.dir}"/>
\r
433 <globmapper from="*" to="lib/*"/>
\r
436 <taskdef classname="org.netbeans.modules.java.j2seproject.copylibstask.CopyLibs" classpath="${libs.CopyLibs.classpath}" name="copylibs"/>
\r
437 <copylibs compress="${jar.compress}" jarfile="${dist.jar}" manifest="${manifest.file}" runtimeclasspath="${run.classpath.without.build.classes.dir}">
\r
438 <fileset dir="${build.classes.dir}"/>
\r
440 <attribute name="Main-Class" value="${main.class}"/>
\r
441 <attribute name="Class-Path" value="${jar.classpath}"/>
\r
444 <echo>To run this application from the command line without Ant, try:</echo>
\r
445 <property location="${dist.jar}" name="dist.jar.resolved"/>
\r
446 <echo>java -jar "${dist.jar.resolved}"</echo>
\r
448 <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">
\r
449 <property location="${build.classes.dir}" name="build.classes.dir.resolved"/>
\r
450 <pathconvert property="run.classpath.without.build.classes.dir">
\r
451 <path path="${run.classpath}"/>
\r
452 <map from="${build.classes.dir.resolved}" to=""/>
\r
454 <pathconvert pathsep=" " property="jar.classpath">
\r
455 <path path="${run.classpath.without.build.classes.dir}"/>
\r
458 <globmapper from="*" to="lib/*"/>
\r
461 <taskdef classname="org.netbeans.modules.java.j2seproject.copylibstask.CopyLibs" classpath="${libs.CopyLibs.classpath}" name="copylibs"/>
\r
462 <copylibs compress="${jar.compress}" jarfile="${dist.jar}" runtimeclasspath="${run.classpath.without.build.classes.dir}">
\r
463 <fileset dir="${build.classes.dir}"/>
\r
466 <target name="-post-jar">
\r
467 <!-- Empty placeholder for easier customization. -->
\r
468 <!-- You can override this target in the ../build.xml file. -->
\r
470 <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,jnlp" description="Build JAR." name="jar"/>
\r
476 <target depends="init,compile" description="Run a main class." name="run">
\r
477 <j2seproject1:java>
\r
479 <arg line="${application.args}"/>
\r
481 </j2seproject1:java>
\r
483 <target name="-do-not-recompile">
\r
484 <property name="javac.includes.binary" value=""/>
\r
486 <target depends="init,-do-not-recompile,compile-single" name="run-single">
\r
487 <fail unless="run.class">Must select one file in the IDE or set run.class</fail>
\r
488 <j2seproject1:java classname="${run.class}"/>
\r
490 <target depends="init,-do-not-recompile,compile-test-single" name="run-test-with-main">
\r
491 <fail unless="run.class">Must select one file in the IDE or set run.class</fail>
\r
492 <j2seproject1:java classname="${run.class}" classpath="${run.test.classpath}"/>
\r
499 <target depends="init" if="netbeans.home" name="-debug-start-debugger">
\r
500 <j2seproject1:nbjpdastart name="${debug.class}"/>
\r
502 <target depends="init" if="netbeans.home" name="-debug-start-debugger-main-test">
\r
503 <j2seproject1:nbjpdastart classpath="${debug.test.classpath}" name="${debug.class}"/>
\r
505 <target depends="init,compile" name="-debug-start-debuggee">
\r
506 <j2seproject3:debug>
\r
508 <arg line="${application.args}"/>
\r
510 </j2seproject3:debug>
\r
512 <target depends="init,compile,-debug-start-debugger,-debug-start-debuggee" description="Debug project in IDE." if="netbeans.home" name="debug"/>
\r
513 <target depends="init" if="netbeans.home" name="-debug-start-debugger-stepinto">
\r
514 <j2seproject1:nbjpdastart stopclassname="${main.class}"/>
\r
516 <target depends="init,compile,-debug-start-debugger-stepinto,-debug-start-debuggee" if="netbeans.home" name="debug-stepinto"/>
\r
517 <target depends="init,compile-single" if="netbeans.home" name="-debug-start-debuggee-single">
\r
518 <fail unless="debug.class">Must select one file in the IDE or set debug.class</fail>
\r
519 <j2seproject3:debug classname="${debug.class}"/>
\r
521 <target depends="init,-do-not-recompile,compile-single,-debug-start-debugger,-debug-start-debuggee-single" if="netbeans.home" name="debug-single"/>
\r
522 <target depends="init,compile-test-single" if="netbeans.home" name="-debug-start-debuggee-main-test">
\r
523 <fail unless="debug.class">Must select one file in the IDE or set debug.class</fail>
\r
524 <j2seproject3:debug classname="${debug.class}" classpath="${debug.test.classpath}"/>
\r
526 <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"/>
\r
527 <target depends="init" name="-pre-debug-fix">
\r
528 <fail unless="fix.includes">Must set fix.includes</fail>
\r
529 <property name="javac.includes" value="${fix.includes}.java"/>
\r
531 <target depends="init,-pre-debug-fix,compile-single" if="netbeans.home" name="-do-debug-fix">
\r
532 <j2seproject1:nbjpdareload/>
\r
534 <target depends="init,-pre-debug-fix,-do-debug-fix" if="netbeans.home" name="debug-fix"/>
\r
540 <target depends="init" name="-javadoc-build">
\r
541 <mkdir dir="${dist.javadoc.dir}"/>
\r
542 <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
544 <path path="${javac.classpath}"/>
\r
546 <fileset dir="${src.dir}" excludes="${excludes}" includes="${includes}">
\r
547 <filename name="**/*.java"/>
\r
549 <fileset dir="${build.generated.sources.dir}" erroronmissingdir="false">
\r
550 <include name="**/*.java"/>
\r
554 <target depends="init,-javadoc-build" if="netbeans.home" name="-javadoc-browse" unless="no.javadoc.preview">
\r
555 <nbbrowse file="${dist.javadoc.dir}/index.html"/>
\r
557 <target depends="init,-javadoc-build,-javadoc-browse" description="Build Javadoc." name="javadoc"/>
\r
559 =========================
\r
560 JUNIT COMPILATION SECTION
\r
561 =========================
\r
563 <target depends="init,compile" if="have.tests" name="-pre-pre-compile-test">
\r
564 <mkdir dir="${build.test.classes.dir}"/>
\r
566 <target name="-pre-compile-test">
\r
567 <!-- Empty placeholder for easier customization. -->
\r
568 <!-- You can override this target in the ../build.xml file. -->
\r
570 <target if="do.depend.true" name="-compile-test-depend">
\r
571 <j2seproject3:depend classpath="${javac.test.classpath}" destdir="${build.test.classes.dir}" srcdir="${test.src.dir}"/>
\r
573 <target depends="init,compile,-pre-pre-compile-test,-pre-compile-test,-compile-test-depend" if="have.tests" name="-do-compile-test">
\r
574 <j2seproject3:javac classpath="${javac.test.classpath}" debug="true" destdir="${build.test.classes.dir}" srcdir="${test.src.dir}"/>
\r
575 <copy todir="${build.test.classes.dir}">
\r
576 <fileset dir="${test.src.dir}" excludes="${build.classes.excludes},${excludes}" includes="${includes}"/>
\r
579 <target name="-post-compile-test">
\r
580 <!-- Empty placeholder for easier customization. -->
\r
581 <!-- You can override this target in the ../build.xml file. -->
\r
583 <target depends="init,compile,-pre-pre-compile-test,-pre-compile-test,-do-compile-test,-post-compile-test" name="compile-test"/>
\r
584 <target name="-pre-compile-test-single">
\r
585 <!-- Empty placeholder for easier customization. -->
\r
586 <!-- You can override this target in the ../build.xml file. -->
\r
588 <target depends="init,compile,-pre-pre-compile-test,-pre-compile-test-single" if="have.tests" name="-do-compile-test-single">
\r
589 <fail unless="javac.includes">Must select some files in the IDE or set javac.includes</fail>
\r
590 <j2seproject3:force-recompile destdir="${build.test.classes.dir}"/>
\r
591 <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
592 <copy todir="${build.test.classes.dir}">
\r
593 <fileset dir="${test.src.dir}" excludes="${build.classes.excludes},${excludes}" includes="${includes}"/>
\r
596 <target name="-post-compile-test-single">
\r
597 <!-- Empty placeholder for easier customization. -->
\r
598 <!-- You can override this target in the ../build.xml file. -->
\r
600 <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
602 =======================
\r
603 JUNIT EXECUTION SECTION
\r
604 =======================
\r
606 <target depends="init" if="have.tests" name="-pre-test-run">
\r
607 <mkdir dir="${build.test.results.dir}"/>
\r
609 <target depends="init,compile-test,-pre-test-run" if="have.tests" name="-do-test-run">
\r
610 <j2seproject3:junit testincludes="**/*Test.java"/>
\r
612 <target depends="init,compile-test,-pre-test-run,-do-test-run" if="have.tests" name="-post-test-run">
\r
613 <fail if="tests.failed" unless="ignore.failing.tests">Some tests failed; see details above.</fail>
\r
615 <target depends="init" if="have.tests" name="test-report"/>
\r
616 <target depends="init" if="netbeans.home+have.tests" name="-test-browse"/>
\r
617 <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
618 <target depends="init" if="have.tests" name="-pre-test-run-single">
\r
619 <mkdir dir="${build.test.results.dir}"/>
\r
621 <target depends="init,compile-test-single,-pre-test-run-single" if="have.tests" name="-do-test-run-single">
\r
622 <fail unless="test.includes">Must select some files in the IDE or set test.includes</fail>
\r
623 <j2seproject3:junit excludes="" includes="${test.includes}"/>
\r
625 <target depends="init,compile-test-single,-pre-test-run-single,-do-test-run-single" if="have.tests" name="-post-test-run-single">
\r
626 <fail if="tests.failed" unless="ignore.failing.tests">Some tests failed; see details above.</fail>
\r
628 <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
630 =======================
\r
631 JUNIT DEBUGGING SECTION
\r
632 =======================
\r
634 <target depends="init,compile-test" if="have.tests" name="-debug-start-debuggee-test">
\r
635 <fail unless="test.class">Must select one file in the IDE or set test.class</fail>
\r
636 <property location="${build.test.results.dir}/TEST-${test.class}.xml" name="test.report.file"/>
\r
637 <delete file="${test.report.file}"/>
\r
638 <mkdir dir="${build.test.results.dir}"/>
\r
639 <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
642 <propertyref prefix="test-sys-prop."/>
\r
643 <mapper from="test-sys-prop.*" to="*" type="glob"/>
\r
645 <arg value="${test.class}"/>
\r
646 <arg value="showoutput=true"/>
\r
647 <arg value="formatter=org.apache.tools.ant.taskdefs.optional.junit.BriefJUnitResultFormatter"/>
\r
648 <arg value="formatter=org.apache.tools.ant.taskdefs.optional.junit.XMLJUnitResultFormatter,${test.report.file}"/>
\r
650 </j2seproject3:debug>
\r
652 <target depends="init,compile-test" if="netbeans.home+have.tests" name="-debug-start-debugger-test">
\r
653 <j2seproject1:nbjpdastart classpath="${debug.test.classpath}" name="${test.class}"/>
\r
655 <target depends="init,-do-not-recompile,compile-test-single,-debug-start-debugger-test,-debug-start-debuggee-test" name="debug-test"/>
\r
656 <target depends="init,-pre-debug-fix,compile-test-single" if="netbeans.home" name="-do-debug-fix-test">
\r
657 <j2seproject1:nbjpdareload dir="${build.test.classes.dir}"/>
\r
659 <target depends="init,-pre-debug-fix,-do-debug-fix-test" if="netbeans.home" name="debug-fix-test"/>
\r
661 =========================
\r
662 APPLET EXECUTION SECTION
\r
663 =========================
\r
665 <target depends="init,compile-single" name="run-applet">
\r
666 <fail unless="applet.url">Must select one file in the IDE or set applet.url</fail>
\r
667 <j2seproject1:java classname="sun.applet.AppletViewer">
\r
669 <arg value="${applet.url}"/>
\r
671 </j2seproject1:java>
\r
674 =========================
\r
675 APPLET DEBUGGING SECTION
\r
676 =========================
\r
678 <target depends="init,compile-single" if="netbeans.home" name="-debug-start-debuggee-applet">
\r
679 <fail unless="applet.url">Must select one file in the IDE or set applet.url</fail>
\r
680 <j2seproject3:debug classname="sun.applet.AppletViewer">
\r
682 <arg value="${applet.url}"/>
\r
684 </j2seproject3:debug>
\r
686 <target depends="init,compile-single,-debug-start-debugger,-debug-start-debuggee-applet" if="netbeans.home" name="debug-applet"/>
\r
692 <target depends="init" name="deps-clean" unless="no.deps"/>
\r
693 <target depends="init" name="-do-clean">
\r
694 <delete dir="${build.dir}"/>
\r
695 <delete dir="${dist.dir}"/>
\r
697 <target name="-post-clean">
\r
698 <!-- Empty placeholder for easier customization. -->
\r
699 <!-- You can override this target in the ../build.xml file. -->
\r
701 <target depends="init,deps-clean,-do-clean,-post-clean" description="Clean build products." name="clean"/>
\r