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="Final5-impl">
\r
23 <fail message="Please build using Ant 1.8.0 or higher.">
\r
26 <antversion atleast="1.8.0"/>
\r
30 <target depends="test,jar,javadoc" description="Build and test whole project." name="default"/>
\r
32 ======================
\r
33 INITIALIZATION SECTION
\r
34 ======================
\r
36 <target name="-pre-init">
\r
37 <!-- Empty placeholder for easier customization. -->
\r
38 <!-- You can override this target in the ../build.xml file. -->
\r
40 <target depends="-pre-init" name="-init-private">
\r
41 <property file="nbproject/private/config.properties"/>
\r
42 <property file="nbproject/private/configs/${config}.properties"/>
\r
43 <property file="nbproject/private/private.properties"/>
\r
45 <target depends="-pre-init,-init-private" name="-init-user">
\r
46 <property file="${user.properties.file}"/>
\r
47 <!-- The two properties below are usually overridden -->
\r
48 <!-- by the active platform. Just a fallback. -->
\r
49 <property name="default.javac.source" value="1.4"/>
\r
50 <property name="default.javac.target" value="1.4"/>
\r
52 <target depends="-pre-init,-init-private,-init-user" name="-init-project">
\r
53 <property file="nbproject/configs/${config}.properties"/>
\r
54 <property file="nbproject/project.properties"/>
\r
56 <target depends="-pre-init,-init-private,-init-user,-init-project,-init-macrodef-property" name="-do-init">
\r
57 <available file="${manifest.file}" property="manifest.available"/>
\r
58 <condition property="splashscreen.available">
\r
61 <equals arg1="${application.splash}" arg2="" trim="true"/>
\r
63 <available file="${application.splash}"/>
\r
66 <condition property="main.class.available">
\r
68 <isset property="main.class"/>
\r
70 <equals arg1="${main.class}" arg2="" trim="true"/>
\r
74 <condition property="manifest.available+main.class">
\r
76 <isset property="manifest.available"/>
\r
77 <isset property="main.class.available"/>
\r
80 <condition property="do.archive">
\r
82 <istrue value="${jar.archive.disabled}"/>
\r
85 <condition property="do.mkdist">
\r
87 <isset property="do.archive"/>
\r
88 <isset property="libs.CopyLibs.classpath"/>
\r
90 <istrue value="${mkdist.disabled}"/>
\r
94 <condition property="manifest.available+main.class+mkdist.available">
\r
96 <istrue value="${manifest.available+main.class}"/>
\r
97 <isset property="do.mkdist"/>
\r
100 <condition property="do.archive+manifest.available">
\r
102 <isset property="manifest.available"/>
\r
103 <istrue value="${do.archive}"/>
\r
106 <condition property="do.archive+main.class.available">
\r
108 <isset property="main.class.available"/>
\r
109 <istrue value="${do.archive}"/>
\r
112 <condition property="do.archive+splashscreen.available">
\r
114 <isset property="splashscreen.available"/>
\r
115 <istrue value="${do.archive}"/>
\r
118 <condition property="do.archive+manifest.available+main.class">
\r
120 <istrue value="${manifest.available+main.class}"/>
\r
121 <istrue value="${do.archive}"/>
\r
124 <condition property="manifest.available-mkdist.available">
\r
126 <istrue value="${manifest.available}"/>
\r
127 <isset property="do.mkdist"/>
\r
130 <condition property="manifest.available+main.class-mkdist.available">
\r
132 <istrue value="${manifest.available+main.class}"/>
\r
133 <isset property="do.mkdist"/>
\r
136 <condition property="have.tests">
\r
138 <available file="${test.src.dir}"/>
\r
141 <condition property="have.sources">
\r
143 <available file="${src.dir}"/>
\r
146 <condition property="netbeans.home+have.tests">
\r
148 <isset property="netbeans.home"/>
\r
149 <isset property="have.tests"/>
\r
152 <condition property="no.javadoc.preview">
\r
154 <isset property="javadoc.preview"/>
\r
155 <isfalse value="${javadoc.preview}"/>
\r
158 <property name="run.jvmargs" value=""/>
\r
159 <property name="run.jvmargs.ide" value=""/>
\r
160 <property name="javac.compilerargs" value=""/>
\r
161 <property name="work.dir" value="${basedir}"/>
\r
162 <condition property="no.deps">
\r
164 <istrue value="${no.dependencies}"/>
\r
167 <property name="javac.debug" value="true"/>
\r
168 <property name="javadoc.preview" value="true"/>
\r
169 <property name="application.args" value=""/>
\r
170 <property name="source.encoding" value="${file.encoding}"/>
\r
171 <property name="runtime.encoding" value="${source.encoding}"/>
\r
172 <condition property="javadoc.encoding.used" value="${javadoc.encoding}">
\r
174 <isset property="javadoc.encoding"/>
\r
176 <equals arg1="${javadoc.encoding}" arg2=""/>
\r
180 <property name="javadoc.encoding.used" value="${source.encoding}"/>
\r
181 <property name="includes" value="**"/>
\r
182 <property name="excludes" value=""/>
\r
183 <property name="do.depend" value="false"/>
\r
184 <condition property="do.depend.true">
\r
185 <istrue value="${do.depend}"/>
\r
187 <path id="endorsed.classpath.path" path="${endorsed.classpath}"/>
\r
188 <condition else="" property="endorsed.classpath.cmd.line.arg" value="-Xbootclasspath/p:'${toString:endorsed.classpath.path}'">
\r
189 <length length="0" string="${endorsed.classpath}" when="greater"/>
\r
191 <condition else="false" property="jdkBug6558476">
\r
193 <matches pattern="1\.[56]" string="${java.specification.version}"/>
\r
195 <os family="unix"/>
\r
199 <property name="javac.fork" value="${jdkBug6558476}"/>
\r
200 <property name="jar.index" value="false"/>
\r
201 <property name="jar.index.metainf" value="${jar.index}"/>
\r
202 <property name="copylibs.rebase" value="true"/>
\r
203 <available file="${meta.inf.dir}/persistence.xml" property="has.persistence.xml"/>
\r
204 <condition property="junit.available">
\r
206 <available classname="org.junit.Test" classpath="${run.test.classpath}"/>
\r
207 <available classname="junit.framework.Test" classpath="${run.test.classpath}"/>
\r
210 <condition property="testng.available">
\r
211 <available classname="org.testng.annotations.Test" classpath="${run.test.classpath}"/>
\r
213 <condition property="junit+testng.available">
\r
215 <istrue value="${junit.available}"/>
\r
216 <istrue value="${testng.available}"/>
\r
219 <condition else="testng" property="testng.mode" value="mixed">
\r
220 <istrue value="${junit+testng.available}"/>
\r
222 <condition else="" property="testng.debug.mode" value="-mixed">
\r
223 <istrue value="${junit+testng.available}"/>
\r
226 <target name="-post-init">
\r
227 <!-- Empty placeholder for easier customization. -->
\r
228 <!-- You can override this target in the ../build.xml file. -->
\r
230 <target depends="-pre-init,-init-private,-init-user,-init-project,-do-init" name="-init-check">
\r
231 <fail unless="src.dir">Must set src.dir</fail>
\r
232 <fail unless="test.src.dir">Must set test.src.dir</fail>
\r
233 <fail unless="build.dir">Must set build.dir</fail>
\r
234 <fail unless="dist.dir">Must set dist.dir</fail>
\r
235 <fail unless="build.classes.dir">Must set build.classes.dir</fail>
\r
236 <fail unless="dist.javadoc.dir">Must set dist.javadoc.dir</fail>
\r
237 <fail unless="build.test.classes.dir">Must set build.test.classes.dir</fail>
\r
238 <fail unless="build.test.results.dir">Must set build.test.results.dir</fail>
\r
239 <fail unless="build.classes.excludes">Must set build.classes.excludes</fail>
\r
240 <fail unless="dist.jar">Must set dist.jar</fail>
\r
242 <target name="-init-macrodef-property">
\r
243 <macrodef name="property" uri="http://www.netbeans.org/ns/j2se-project/1">
\r
244 <attribute name="name"/>
\r
245 <attribute name="value"/>
\r
247 <property name="@{name}" value="${@{value}}"/>
\r
251 <target depends="-init-ap-cmdline-properties" if="ap.supported.internal" name="-init-macrodef-javac-with-processors">
\r
252 <macrodef name="javac" uri="http://www.netbeans.org/ns/j2se-project/3">
\r
253 <attribute default="${src.dir}" name="srcdir"/>
\r
254 <attribute default="${build.classes.dir}" name="destdir"/>
\r
255 <attribute default="${javac.classpath}" name="classpath"/>
\r
256 <attribute default="${javac.processorpath}" name="processorpath"/>
\r
257 <attribute default="${build.generated.sources.dir}/ap-source-output" name="apgeneratedsrcdir"/>
\r
258 <attribute default="${includes}" name="includes"/>
\r
259 <attribute default="${excludes}" name="excludes"/>
\r
260 <attribute default="${javac.debug}" name="debug"/>
\r
261 <attribute default="${empty.dir}" name="sourcepath"/>
\r
262 <attribute default="${empty.dir}" name="gensrcdir"/>
\r
263 <element name="customize" optional="true"/>
\r
265 <property location="${build.dir}/empty" name="empty.dir"/>
\r
266 <mkdir dir="${empty.dir}"/>
\r
267 <mkdir dir="@{apgeneratedsrcdir}"/>
\r
268 <javac debug="@{debug}" deprecation="${javac.deprecation}" destdir="@{destdir}" encoding="${source.encoding}" excludes="@{excludes}" fork="${javac.fork}" includeantruntime="false" includes="@{includes}" source="${javac.source}" sourcepath="@{sourcepath}" srcdir="@{srcdir}" target="${javac.target}" tempdir="${java.io.tmpdir}">
\r
270 <dirset dir="@{gensrcdir}" erroronmissingdir="false">
\r
271 <include name="*"/>
\r
275 <path path="@{classpath}"/>
\r
277 <compilerarg line="${endorsed.classpath.cmd.line.arg}"/>
\r
278 <compilerarg line="${javac.compilerargs}"/>
\r
279 <compilerarg value="-processorpath"/>
\r
280 <compilerarg path="@{processorpath}:${empty.dir}"/>
\r
281 <compilerarg line="${ap.processors.internal}"/>
\r
282 <compilerarg line="${annotation.processing.processor.options}"/>
\r
283 <compilerarg value="-s"/>
\r
284 <compilerarg path="@{apgeneratedsrcdir}"/>
\r
285 <compilerarg line="${ap.proc.none.internal}"/>
\r
291 <target depends="-init-ap-cmdline-properties" name="-init-macrodef-javac-without-processors" unless="ap.supported.internal">
\r
292 <macrodef name="javac" uri="http://www.netbeans.org/ns/j2se-project/3">
\r
293 <attribute default="${src.dir}" name="srcdir"/>
\r
294 <attribute default="${build.classes.dir}" name="destdir"/>
\r
295 <attribute default="${javac.classpath}" name="classpath"/>
\r
296 <attribute default="${javac.processorpath}" name="processorpath"/>
\r
297 <attribute default="${build.generated.sources.dir}/ap-source-output" name="apgeneratedsrcdir"/>
\r
298 <attribute default="${includes}" name="includes"/>
\r
299 <attribute default="${excludes}" name="excludes"/>
\r
300 <attribute default="${javac.debug}" name="debug"/>
\r
301 <attribute default="${empty.dir}" name="sourcepath"/>
\r
302 <attribute default="${empty.dir}" name="gensrcdir"/>
\r
303 <element name="customize" optional="true"/>
\r
305 <property location="${build.dir}/empty" name="empty.dir"/>
\r
306 <mkdir dir="${empty.dir}"/>
\r
307 <javac debug="@{debug}" deprecation="${javac.deprecation}" destdir="@{destdir}" encoding="${source.encoding}" excludes="@{excludes}" fork="${javac.fork}" includeantruntime="false" includes="@{includes}" source="${javac.source}" sourcepath="@{sourcepath}" srcdir="@{srcdir}" target="${javac.target}" tempdir="${java.io.tmpdir}">
\r
309 <dirset dir="@{gensrcdir}" erroronmissingdir="false">
\r
310 <include name="*"/>
\r
314 <path path="@{classpath}"/>
\r
316 <compilerarg line="${endorsed.classpath.cmd.line.arg}"/>
\r
317 <compilerarg line="${javac.compilerargs}"/>
\r
323 <target depends="-init-macrodef-javac-with-processors,-init-macrodef-javac-without-processors" name="-init-macrodef-javac">
\r
324 <macrodef name="depend" uri="http://www.netbeans.org/ns/j2se-project/3">
\r
325 <attribute default="${src.dir}" name="srcdir"/>
\r
326 <attribute default="${build.classes.dir}" name="destdir"/>
\r
327 <attribute default="${javac.classpath}" name="classpath"/>
\r
329 <depend cache="${build.dir}/depcache" destdir="@{destdir}" excludes="${excludes}" includes="${includes}" srcdir="@{srcdir}">
\r
331 <path path="@{classpath}"/>
\r
336 <macrodef name="force-recompile" uri="http://www.netbeans.org/ns/j2se-project/3">
\r
337 <attribute default="${build.classes.dir}" name="destdir"/>
\r
339 <fail unless="javac.includes">Must set javac.includes</fail>
\r
340 <pathconvert pathsep="${line.separator}" property="javac.includes.binary">
\r
342 <filelist dir="@{destdir}" files="${javac.includes}"/>
\r
344 <globmapper from="*.java" to="*.class"/>
\r
346 <tempfile deleteonexit="true" property="javac.includesfile.binary"/>
\r
347 <echo file="${javac.includesfile.binary}" message="${javac.includes.binary}"/>
\r
349 <files includesfile="${javac.includesfile.binary}"/>
\r
352 <fileset file="${javac.includesfile.binary}"/>
\r
357 <target if="${junit.available}" name="-init-macrodef-junit-init">
\r
358 <condition else="false" property="nb.junit.batch" value="true">
\r
360 <istrue value="${junit.available}"/>
\r
362 <isset property="test.method"/>
\r
366 <condition else="false" property="nb.junit.single" value="true">
\r
368 <istrue value="${junit.available}"/>
\r
369 <isset property="test.method"/>
\r
373 <target name="-init-test-properties">
\r
374 <property name="test.binaryincludes" value="<nothing>"/>
\r
375 <property name="test.binarytestincludes" value=""/>
\r
376 <property name="test.binaryexcludes" value=""/>
\r
378 <target if="${nb.junit.single}" name="-init-macrodef-junit-single" unless="${nb.junit.batch}">
\r
379 <macrodef name="junit" uri="http://www.netbeans.org/ns/j2se-project/3">
\r
380 <attribute default="${includes}" name="includes"/>
\r
381 <attribute default="${excludes}" name="excludes"/>
\r
382 <attribute default="**" name="testincludes"/>
\r
383 <attribute default="" name="testmethods"/>
\r
384 <element name="customize" optional="true"/>
\r
386 <property name="junit.forkmode" value="perTest"/>
\r
387 <junit dir="${work.dir}" errorproperty="tests.failed" failureproperty="tests.failed" fork="true" forkmode="${junit.forkmode}" showoutput="true" tempdir="${build.dir}">
\r
388 <test methods="@{testmethods}" name="@{testincludes}" todir="${build.test.results.dir}"/>
\r
390 <propertyref prefix="test-sys-prop."/>
\r
391 <mapper from="test-sys-prop.*" to="*" type="glob"/>
\r
393 <formatter type="brief" usefile="false"/>
\r
394 <formatter type="xml"/>
\r
395 <jvmarg value="-ea"/>
\r
401 <target depends="-init-test-properties" if="${nb.junit.batch}" name="-init-macrodef-junit-batch" unless="${nb.junit.single}">
\r
402 <macrodef name="junit" uri="http://www.netbeans.org/ns/j2se-project/3">
\r
403 <attribute default="${includes}" name="includes"/>
\r
404 <attribute default="${excludes}" name="excludes"/>
\r
405 <attribute default="**" name="testincludes"/>
\r
406 <attribute default="" name="testmethods"/>
\r
407 <element name="customize" optional="true"/>
\r
409 <property name="junit.forkmode" value="perTest"/>
\r
410 <junit dir="${work.dir}" errorproperty="tests.failed" failureproperty="tests.failed" fork="true" forkmode="${junit.forkmode}" showoutput="true" tempdir="${build.dir}">
\r
411 <batchtest todir="${build.test.results.dir}">
\r
412 <fileset dir="${test.src.dir}" excludes="@{excludes},${excludes}" includes="@{includes}">
\r
413 <filename name="@{testincludes}"/>
\r
415 <fileset dir="${build.test.classes.dir}" excludes="@{excludes},${excludes},${test.binaryexcludes}" includes="${test.binaryincludes}">
\r
416 <filename name="${test.binarytestincludes}"/>
\r
420 <propertyref prefix="test-sys-prop."/>
\r
421 <mapper from="test-sys-prop.*" to="*" type="glob"/>
\r
423 <formatter type="brief" usefile="false"/>
\r
424 <formatter type="xml"/>
\r
425 <jvmarg value="-ea"/>
\r
431 <target depends="-init-macrodef-junit-init,-init-macrodef-junit-single, -init-macrodef-junit-batch" if="${junit.available}" name="-init-macrodef-junit"/>
\r
432 <target if="${testng.available}" name="-init-macrodef-testng">
\r
433 <macrodef name="testng" uri="http://www.netbeans.org/ns/j2se-project/3">
\r
434 <attribute default="${includes}" name="includes"/>
\r
435 <attribute default="${excludes}" name="excludes"/>
\r
436 <attribute default="**" name="testincludes"/>
\r
437 <attribute default="" name="testmethods"/>
\r
438 <element name="customize" optional="true"/>
\r
440 <condition else="" property="testng.methods.arg" value="@{testincludes}.@{testmethods}">
\r
441 <isset property="test.method"/>
\r
443 <union id="test.set">
\r
444 <fileset dir="${test.src.dir}" excludes="@{excludes},**/*.xml,${excludes}" includes="@{includes}">
\r
445 <filename name="@{testincludes}"/>
\r
448 <taskdef classname="org.testng.TestNGAntTask" classpath="${run.test.classpath}" name="testng"/>
\r
449 <testng classfilesetref="test.set" failureProperty="tests.failed" methods="${testng.methods.arg}" mode="${testng.mode}" outputdir="${build.test.results.dir}" suitename="Final5" testname="TestNG tests" workingDir="${work.dir}">
\r
450 <xmlfileset dir="${build.test.classes.dir}" includes="@{testincludes}"/>
\r
452 <propertyref prefix="test-sys-prop."/>
\r
453 <mapper from="test-sys-prop.*" to="*" type="glob"/>
\r
460 <target name="-init-macrodef-test-impl">
\r
461 <macrodef name="test-impl" uri="http://www.netbeans.org/ns/j2se-project/3">
\r
462 <attribute default="${includes}" name="includes"/>
\r
463 <attribute default="${excludes}" name="excludes"/>
\r
464 <attribute default="**" name="testincludes"/>
\r
465 <attribute default="" name="testmethods"/>
\r
466 <element implicit="true" name="customize" optional="true"/>
\r
468 <echo>No tests executed.</echo>
\r
472 <target depends="-init-macrodef-junit" if="${junit.available}" name="-init-macrodef-junit-impl">
\r
473 <macrodef name="test-impl" uri="http://www.netbeans.org/ns/j2se-project/3">
\r
474 <attribute default="${includes}" name="includes"/>
\r
475 <attribute default="${excludes}" name="excludes"/>
\r
476 <attribute default="**" name="testincludes"/>
\r
477 <attribute default="" name="testmethods"/>
\r
478 <element implicit="true" name="customize" optional="true"/>
\r
480 <j2seproject3:junit excludes="@{excludes}" includes="@{includes}" testincludes="@{testincludes}" testmethods="@{testmethods}">
\r
482 </j2seproject3:junit>
\r
486 <target depends="-init-macrodef-testng" if="${testng.available}" name="-init-macrodef-testng-impl">
\r
487 <macrodef name="test-impl" uri="http://www.netbeans.org/ns/j2se-project/3">
\r
488 <attribute default="${includes}" name="includes"/>
\r
489 <attribute default="${excludes}" name="excludes"/>
\r
490 <attribute default="**" name="testincludes"/>
\r
491 <attribute default="" name="testmethods"/>
\r
492 <element implicit="true" name="customize" optional="true"/>
\r
494 <j2seproject3:testng excludes="@{excludes}" includes="@{includes}" testincludes="@{testincludes}" testmethods="@{testmethods}">
\r
496 </j2seproject3:testng>
\r
500 <target depends="-init-macrodef-test-impl,-init-macrodef-junit-impl,-init-macrodef-testng-impl" name="-init-macrodef-test">
\r
501 <macrodef name="test" uri="http://www.netbeans.org/ns/j2se-project/3">
\r
502 <attribute default="${includes}" name="includes"/>
\r
503 <attribute default="${excludes}" name="excludes"/>
\r
504 <attribute default="**" name="testincludes"/>
\r
505 <attribute default="" name="testmethods"/>
\r
507 <j2seproject3:test-impl excludes="@{excludes}" includes="@{includes}" testincludes="@{testincludes}" testmethods="@{testmethods}">
\r
510 <path path="${run.test.classpath}"/>
\r
512 <jvmarg line="${endorsed.classpath.cmd.line.arg}"/>
\r
513 <jvmarg line="${run.jvmargs}"/>
\r
514 <jvmarg line="${run.jvmargs.ide}"/>
\r
516 </j2seproject3:test-impl>
\r
520 <target if="${junit.available}" name="-init-macrodef-junit-debug" unless="${nb.junit.batch}">
\r
521 <macrodef name="junit-debug" uri="http://www.netbeans.org/ns/j2se-project/3">
\r
522 <attribute default="${includes}" name="includes"/>
\r
523 <attribute default="${excludes}" name="excludes"/>
\r
524 <attribute default="**" name="testincludes"/>
\r
525 <attribute default="" name="testmethods"/>
\r
526 <element name="customize" optional="true"/>
\r
528 <property name="junit.forkmode" value="perTest"/>
\r
529 <junit dir="${work.dir}" errorproperty="tests.failed" failureproperty="tests.failed" fork="true" forkmode="${junit.forkmode}" showoutput="true" tempdir="${build.dir}">
\r
530 <test methods="@{testmethods}" name="@{testincludes}" todir="${build.test.results.dir}"/>
\r
532 <propertyref prefix="test-sys-prop."/>
\r
533 <mapper from="test-sys-prop.*" to="*" type="glob"/>
\r
535 <formatter type="brief" usefile="false"/>
\r
536 <formatter type="xml"/>
\r
537 <jvmarg value="-ea"/>
\r
538 <jvmarg line="${debug-args-line}"/>
\r
539 <jvmarg value="-Xrunjdwp:transport=${debug-transport},address=${jpda.address}"/>
\r
545 <target depends="-init-test-properties" if="${nb.junit.batch}" name="-init-macrodef-junit-debug-batch">
\r
546 <macrodef name="junit-debug" uri="http://www.netbeans.org/ns/j2se-project/3">
\r
547 <attribute default="${includes}" name="includes"/>
\r
548 <attribute default="${excludes}" name="excludes"/>
\r
549 <attribute default="**" name="testincludes"/>
\r
550 <attribute default="" name="testmethods"/>
\r
551 <element name="customize" optional="true"/>
\r
553 <property name="junit.forkmode" value="perTest"/>
\r
554 <junit dir="${work.dir}" errorproperty="tests.failed" failureproperty="tests.failed" fork="true" forkmode="${junit.forkmode}" showoutput="true" tempdir="${build.dir}">
\r
555 <batchtest todir="${build.test.results.dir}">
\r
556 <fileset dir="${test.src.dir}" excludes="@{excludes},${excludes}" includes="@{includes}">
\r
557 <filename name="@{testincludes}"/>
\r
559 <fileset dir="${build.test.classes.dir}" excludes="@{excludes},${excludes},${test.binaryexcludes}" includes="${test.binaryincludes}">
\r
560 <filename name="${test.binarytestincludes}"/>
\r
564 <propertyref prefix="test-sys-prop."/>
\r
565 <mapper from="test-sys-prop.*" to="*" type="glob"/>
\r
567 <formatter type="brief" usefile="false"/>
\r
568 <formatter type="xml"/>
\r
569 <jvmarg value="-ea"/>
\r
570 <jvmarg line="${debug-args-line}"/>
\r
571 <jvmarg value="-Xrunjdwp:transport=${debug-transport},address=${jpda.address}"/>
\r
577 <target depends="-init-macrodef-junit-debug,-init-macrodef-junit-debug-batch" if="${junit.available}" name="-init-macrodef-junit-debug-impl">
\r
578 <macrodef name="test-debug-impl" uri="http://www.netbeans.org/ns/j2se-project/3">
\r
579 <attribute default="${includes}" name="includes"/>
\r
580 <attribute default="${excludes}" name="excludes"/>
\r
581 <attribute default="**" name="testincludes"/>
\r
582 <attribute default="" name="testmethods"/>
\r
583 <element implicit="true" name="customize" optional="true"/>
\r
585 <j2seproject3:junit-debug excludes="@{excludes}" includes="@{includes}" testincludes="@{testincludes}" testmethods="@{testmethods}">
\r
587 </j2seproject3:junit-debug>
\r
591 <target if="${testng.available}" name="-init-macrodef-testng-debug">
\r
592 <macrodef name="testng-debug" uri="http://www.netbeans.org/ns/j2se-project/3">
\r
593 <attribute default="${main.class}" name="testClass"/>
\r
594 <attribute default="" name="testMethod"/>
\r
595 <element name="customize2" optional="true"/>
\r
597 <condition else="-testclass @{testClass}" property="test.class.or.method" value="-methods @{testClass}.@{testMethod}">
\r
598 <isset property="test.method"/>
\r
600 <condition else="-suitename Final5 -testname @{testClass} ${test.class.or.method}" property="testng.cmd.args" value="@{testClass}">
\r
601 <matches pattern=".*\.xml" string="@{testClass}"/>
\r
603 <delete dir="${build.test.results.dir}" quiet="true"/>
\r
604 <mkdir dir="${build.test.results.dir}"/>
\r
605 <j2seproject3:debug classname="org.testng.TestNG" classpath="${debug.test.classpath}">
\r
608 <jvmarg value="-ea"/>
\r
609 <arg line="${testng.debug.mode}"/>
\r
610 <arg line="-d ${build.test.results.dir}"/>
\r
611 <arg line="-listener org.testng.reporters.VerboseReporter"/>
\r
612 <arg line="${testng.cmd.args}"/>
\r
614 </j2seproject3:debug>
\r
618 <target depends="-init-macrodef-testng-debug" if="${testng.available}" name="-init-macrodef-testng-debug-impl">
\r
619 <macrodef name="testng-debug-impl" uri="http://www.netbeans.org/ns/j2se-project/3">
\r
620 <attribute default="${main.class}" name="testClass"/>
\r
621 <attribute default="" name="testMethod"/>
\r
622 <element implicit="true" name="customize2" optional="true"/>
\r
624 <j2seproject3:testng-debug testClass="@{testClass}" testMethod="@{testMethod}">
\r
626 </j2seproject3:testng-debug>
\r
630 <target depends="-init-macrodef-junit-debug-impl" if="${junit.available}" name="-init-macrodef-test-debug-junit">
\r
631 <macrodef name="test-debug" uri="http://www.netbeans.org/ns/j2se-project/3">
\r
632 <attribute default="${includes}" name="includes"/>
\r
633 <attribute default="${excludes}" name="excludes"/>
\r
634 <attribute default="**" name="testincludes"/>
\r
635 <attribute default="" name="testmethods"/>
\r
636 <attribute default="${main.class}" name="testClass"/>
\r
637 <attribute default="" name="testMethod"/>
\r
639 <j2seproject3:test-debug-impl excludes="@{excludes}" includes="@{includes}" testincludes="@{testincludes}" testmethods="@{testmethods}">
\r
642 <path path="${run.test.classpath}"/>
\r
644 <jvmarg line="${endorsed.classpath.cmd.line.arg}"/>
\r
645 <jvmarg line="${run.jvmargs}"/>
\r
646 <jvmarg line="${run.jvmargs.ide}"/>
\r
648 </j2seproject3:test-debug-impl>
\r
652 <target depends="-init-macrodef-testng-debug-impl" if="${testng.available}" name="-init-macrodef-test-debug-testng">
\r
653 <macrodef name="test-debug" uri="http://www.netbeans.org/ns/j2se-project/3">
\r
654 <attribute default="${includes}" name="includes"/>
\r
655 <attribute default="${excludes}" name="excludes"/>
\r
656 <attribute default="**" name="testincludes"/>
\r
657 <attribute default="" name="testmethods"/>
\r
658 <attribute default="${main.class}" name="testClass"/>
\r
659 <attribute default="" name="testMethod"/>
\r
661 <j2seproject3:testng-debug-impl testClass="@{testClass}" testMethod="@{testMethod}">
\r
664 <propertyref prefix="test-sys-prop."/>
\r
665 <mapper from="test-sys-prop.*" to="*" type="glob"/>
\r
668 </j2seproject3:testng-debug-impl>
\r
672 <target depends="-init-macrodef-test-debug-junit,-init-macrodef-test-debug-testng" name="-init-macrodef-test-debug"/>
\r
674 pre NB7.2 profiling section; consider it deprecated
\r
676 <target depends="-profile-pre-init, init, -profile-post-init, -profile-init-macrodef-profile, -profile-init-check" if="profiler.info.jvmargs.agent" name="profile-init"/>
\r
677 <target if="profiler.info.jvmargs.agent" name="-profile-pre-init">
\r
678 <!-- Empty placeholder for easier customization. -->
\r
679 <!-- You can override this target in the ../build.xml file. -->
\r
681 <target if="profiler.info.jvmargs.agent" name="-profile-post-init">
\r
682 <!-- Empty placeholder for easier customization. -->
\r
683 <!-- You can override this target in the ../build.xml file. -->
\r
685 <target if="profiler.info.jvmargs.agent" name="-profile-init-macrodef-profile">
\r
686 <macrodef name="resolve">
\r
687 <attribute name="name"/>
\r
688 <attribute name="value"/>
\r
690 <property name="@{name}" value="${env.@{value}}"/>
\r
693 <macrodef name="profile">
\r
694 <attribute default="${main.class}" name="classname"/>
\r
695 <element name="customize" optional="true"/>
\r
697 <property environment="env"/>
\r
698 <resolve name="profiler.current.path" value="${profiler.info.pathvar}"/>
\r
699 <java classname="@{classname}" dir="${profiler.info.dir}" fork="true" jvm="${profiler.info.jvm}">
\r
700 <jvmarg line="${endorsed.classpath.cmd.line.arg}"/>
\r
701 <jvmarg value="${profiler.info.jvmargs.agent}"/>
\r
702 <jvmarg line="${profiler.info.jvmargs}"/>
\r
703 <env key="${profiler.info.pathvar}" path="${profiler.info.agentpath}:${profiler.current.path}"/>
\r
704 <arg line="${application.args}"/>
\r
706 <path path="${run.classpath}"/>
\r
709 <propertyref prefix="run-sys-prop."/>
\r
710 <mapper from="run-sys-prop.*" to="*" type="glob"/>
\r
717 <target depends="-profile-pre-init, init, -profile-post-init, -profile-init-macrodef-profile" if="profiler.info.jvmargs.agent" name="-profile-init-check">
\r
718 <fail unless="profiler.info.jvm">Must set JVM to use for profiling in profiler.info.jvm</fail>
\r
719 <fail unless="profiler.info.jvmargs.agent">Must set profiler agent JVM arguments in profiler.info.jvmargs.agent</fail>
\r
722 end of pre NB7.2 profiling section
\r
724 <target depends="-init-debug-args" name="-init-macrodef-nbjpda">
\r
725 <macrodef name="nbjpdastart" uri="http://www.netbeans.org/ns/j2se-project/1">
\r
726 <attribute default="${main.class}" name="name"/>
\r
727 <attribute default="${debug.classpath}" name="classpath"/>
\r
728 <attribute default="" name="stopclassname"/>
\r
730 <nbjpdastart addressproperty="jpda.address" name="@{name}" stopclassname="@{stopclassname}" transport="${debug-transport}">
\r
732 <path path="@{classpath}"/>
\r
737 <macrodef name="nbjpdareload" uri="http://www.netbeans.org/ns/j2se-project/1">
\r
738 <attribute default="${build.classes.dir}" name="dir"/>
\r
741 <fileset dir="@{dir}" includes="${fix.classes}">
\r
742 <include name="${fix.includes}*.class"/>
\r
748 <target name="-init-debug-args">
\r
749 <property name="version-output" value="java version "${ant.java.version}"/>
\r
750 <condition property="have-jdk-older-than-1.4">
\r
752 <contains string="${version-output}" substring="java version "1.0"/>
\r
753 <contains string="${version-output}" substring="java version "1.1"/>
\r
754 <contains string="${version-output}" substring="java version "1.2"/>
\r
755 <contains string="${version-output}" substring="java version "1.3"/>
\r
758 <condition else="-Xdebug" property="debug-args-line" value="-Xdebug -Xnoagent -Djava.compiler=none">
\r
759 <istrue value="${have-jdk-older-than-1.4}"/>
\r
761 <condition else="dt_socket" property="debug-transport-by-os" value="dt_shmem">
\r
762 <os family="windows"/>
\r
764 <condition else="${debug-transport-by-os}" property="debug-transport" value="${debug.transport}">
\r
765 <isset property="debug.transport"/>
\r
768 <target depends="-init-debug-args" name="-init-macrodef-debug">
\r
769 <macrodef name="debug" uri="http://www.netbeans.org/ns/j2se-project/3">
\r
770 <attribute default="${main.class}" name="classname"/>
\r
771 <attribute default="${debug.classpath}" name="classpath"/>
\r
772 <element name="customize" optional="true"/>
\r
774 <java classname="@{classname}" dir="${work.dir}" fork="true">
\r
775 <jvmarg line="${endorsed.classpath.cmd.line.arg}"/>
\r
776 <jvmarg line="${debug-args-line}"/>
\r
777 <jvmarg value="-Xrunjdwp:transport=${debug-transport},address=${jpda.address}"/>
\r
778 <jvmarg value="-Dfile.encoding=${runtime.encoding}"/>
\r
779 <redirector errorencoding="${runtime.encoding}" inputencoding="${runtime.encoding}" outputencoding="${runtime.encoding}"/>
\r
780 <jvmarg line="${run.jvmargs}"/>
\r
781 <jvmarg line="${run.jvmargs.ide}"/>
\r
783 <path path="@{classpath}"/>
\r
786 <propertyref prefix="run-sys-prop."/>
\r
787 <mapper from="run-sys-prop.*" to="*" type="glob"/>
\r
794 <target name="-init-macrodef-java">
\r
795 <macrodef name="java" uri="http://www.netbeans.org/ns/j2se-project/1">
\r
796 <attribute default="${main.class}" name="classname"/>
\r
797 <attribute default="${run.classpath}" name="classpath"/>
\r
798 <attribute default="jvm" name="jvm"/>
\r
799 <element name="customize" optional="true"/>
\r
801 <java classname="@{classname}" dir="${work.dir}" fork="true">
\r
802 <jvmarg line="${endorsed.classpath.cmd.line.arg}"/>
\r
803 <jvmarg value="-Dfile.encoding=${runtime.encoding}"/>
\r
804 <redirector errorencoding="${runtime.encoding}" inputencoding="${runtime.encoding}" outputencoding="${runtime.encoding}"/>
\r
805 <jvmarg line="${run.jvmargs}"/>
\r
806 <jvmarg line="${run.jvmargs.ide}"/>
\r
808 <path path="@{classpath}"/>
\r
811 <propertyref prefix="run-sys-prop."/>
\r
812 <mapper from="run-sys-prop.*" to="*" type="glob"/>
\r
819 <target name="-init-macrodef-copylibs">
\r
820 <macrodef name="copylibs" uri="http://www.netbeans.org/ns/j2se-project/3">
\r
821 <attribute default="${manifest.file}" name="manifest"/>
\r
822 <element name="customize" optional="true"/>
\r
824 <property location="${build.classes.dir}" name="build.classes.dir.resolved"/>
\r
825 <pathconvert property="run.classpath.without.build.classes.dir">
\r
826 <path path="${run.classpath}"/>
\r
827 <map from="${build.classes.dir.resolved}" to=""/>
\r
829 <pathconvert pathsep=" " property="jar.classpath">
\r
830 <path path="${run.classpath.without.build.classes.dir}"/>
\r
834 <replacestring from=" " to="%20"/>
\r
836 <globmapper from="*" to="lib/*"/>
\r
839 <taskdef classname="org.netbeans.modules.java.j2seproject.copylibstask.CopyLibs" classpath="${libs.CopyLibs.classpath}" name="copylibs"/>
\r
840 <copylibs compress="${jar.compress}" index="${jar.index}" indexMetaInf="${jar.index.metainf}" jarfile="${dist.jar}" manifest="@{manifest}" rebase="${copylibs.rebase}" runtimeclasspath="${run.classpath.without.build.classes.dir}">
\r
841 <fileset dir="${build.classes.dir}"/>
\r
843 <attribute name="Class-Path" value="${jar.classpath}"/>
\r
850 <target name="-init-presetdef-jar">
\r
851 <presetdef name="jar" uri="http://www.netbeans.org/ns/j2se-project/1">
\r
852 <jar compress="${jar.compress}" index="${jar.index}" jarfile="${dist.jar}">
\r
853 <j2seproject1:fileset dir="${build.classes.dir}"/>
\r
857 <target name="-init-ap-cmdline-properties">
\r
858 <property name="annotation.processing.enabled" value="true"/>
\r
859 <property name="annotation.processing.processors.list" value=""/>
\r
860 <property name="annotation.processing.processor.options" value=""/>
\r
861 <property name="annotation.processing.run.all.processors" value="true"/>
\r
862 <property name="javac.processorpath" value="${javac.classpath}"/>
\r
863 <property name="javac.test.processorpath" value="${javac.test.classpath}"/>
\r
864 <condition property="ap.supported.internal" value="true">
\r
866 <matches pattern="1\.[0-5](\..*)?" string="${javac.source}"/>
\r
870 <target depends="-init-ap-cmdline-properties" if="ap.supported.internal" name="-init-ap-cmdline-supported">
\r
871 <condition else="" property="ap.processors.internal" value="-processor ${annotation.processing.processors.list}">
\r
872 <isfalse value="${annotation.processing.run.all.processors}"/>
\r
874 <condition else="" property="ap.proc.none.internal" value="-proc:none">
\r
875 <isfalse value="${annotation.processing.enabled}"/>
\r
878 <target depends="-init-ap-cmdline-properties,-init-ap-cmdline-supported" name="-init-ap-cmdline">
\r
879 <property name="ap.cmd.line.internal" value=""/>
\r
881 <target depends="-pre-init,-init-private,-init-user,-init-project,-do-init,-post-init,-init-check,-init-macrodef-property,-init-macrodef-javac,-init-macrodef-test,-init-macrodef-test-debug,-init-macrodef-nbjpda,-init-macrodef-debug,-init-macrodef-java,-init-presetdef-jar,-init-ap-cmdline" name="init"/>
\r
883 ===================
\r
884 COMPILATION SECTION
\r
885 ===================
\r
887 <target name="-deps-jar-init" unless="built-jar.properties">
\r
888 <property location="${build.dir}/built-jar.properties" name="built-jar.properties"/>
\r
889 <delete file="${built-jar.properties}" quiet="true"/>
\r
891 <target if="already.built.jar.${basedir}" name="-warn-already-built-jar">
\r
892 <echo level="warn" message="Cycle detected: Final5 was already built"/>
\r
894 <target depends="init,-deps-jar-init" name="deps-jar" unless="no.deps">
\r
895 <mkdir dir="${build.dir}"/>
\r
896 <touch file="${built-jar.properties}" verbose="false"/>
\r
897 <property file="${built-jar.properties}" prefix="already.built.jar."/>
\r
898 <antcall target="-warn-already-built-jar"/>
\r
899 <propertyfile file="${built-jar.properties}">
\r
900 <entry key="${basedir}" value=""/>
\r
903 <target depends="init,-check-automatic-build,-clean-after-automatic-build" name="-verify-automatic-build"/>
\r
904 <target depends="init" name="-check-automatic-build">
\r
905 <available file="${build.classes.dir}/.netbeans_automatic_build" property="netbeans.automatic.build"/>
\r
907 <target depends="init" if="netbeans.automatic.build" name="-clean-after-automatic-build">
\r
908 <antcall target="clean"/>
\r
910 <target depends="init,deps-jar" name="-pre-pre-compile">
\r
911 <mkdir dir="${build.classes.dir}"/>
\r
913 <target name="-pre-compile">
\r
914 <!-- Empty placeholder for easier customization. -->
\r
915 <!-- You can override this target in the ../build.xml file. -->
\r
917 <target if="do.depend.true" name="-compile-depend">
\r
918 <pathconvert property="build.generated.subdirs">
\r
919 <dirset dir="${build.generated.sources.dir}" erroronmissingdir="false">
\r
920 <include name="*"/>
\r
923 <j2seproject3:depend srcdir="${src.dir}:${build.generated.subdirs}"/>
\r
925 <target depends="init,deps-jar,-pre-pre-compile,-pre-compile, -copy-persistence-xml,-compile-depend" if="have.sources" name="-do-compile">
\r
926 <j2seproject3:javac gensrcdir="${build.generated.sources.dir}"/>
\r
927 <copy todir="${build.classes.dir}">
\r
928 <fileset dir="${src.dir}" excludes="${build.classes.excludes},${excludes}" includes="${includes}"/>
\r
931 <target if="has.persistence.xml" name="-copy-persistence-xml">
\r
932 <mkdir dir="${build.classes.dir}/META-INF"/>
\r
933 <copy todir="${build.classes.dir}/META-INF">
\r
934 <fileset dir="${meta.inf.dir}" includes="persistence.xml orm.xml"/>
\r
937 <target name="-post-compile">
\r
938 <!-- Empty placeholder for easier customization. -->
\r
939 <!-- You can override this target in the ../build.xml file. -->
\r
941 <target depends="init,deps-jar,-verify-automatic-build,-pre-pre-compile,-pre-compile,-do-compile,-post-compile" description="Compile project." name="compile"/>
\r
942 <target name="-pre-compile-single">
\r
943 <!-- Empty placeholder for easier customization. -->
\r
944 <!-- You can override this target in the ../build.xml file. -->
\r
946 <target depends="init,deps-jar,-pre-pre-compile" name="-do-compile-single">
\r
947 <fail unless="javac.includes">Must select some files in the IDE or set javac.includes</fail>
\r
948 <j2seproject3:force-recompile/>
\r
949 <j2seproject3:javac excludes="" gensrcdir="${build.generated.sources.dir}" includes="${javac.includes}" sourcepath="${src.dir}"/>
\r
951 <target name="-post-compile-single">
\r
952 <!-- Empty placeholder for easier customization. -->
\r
953 <!-- You can override this target in the ../build.xml file. -->
\r
955 <target depends="init,deps-jar,-verify-automatic-build,-pre-pre-compile,-pre-compile-single,-do-compile-single,-post-compile-single" name="compile-single"/>
\r
957 ====================
\r
958 JAR BUILDING SECTION
\r
959 ====================
\r
961 <target depends="init" name="-pre-pre-jar">
\r
962 <dirname file="${dist.jar}" property="dist.jar.dir"/>
\r
963 <mkdir dir="${dist.jar.dir}"/>
\r
965 <target name="-pre-jar">
\r
966 <!-- Empty placeholder for easier customization. -->
\r
967 <!-- You can override this target in the ../build.xml file. -->
\r
969 <target depends="init,compile,-pre-pre-jar,-pre-jar" if="do.archive" name="-do-jar-without-manifest" unless="manifest.available-mkdist.available">
\r
970 <j2seproject1:jar/>
\r
972 <target depends="init,compile,-pre-pre-jar,-pre-jar" if="do.archive+manifest.available" name="-do-jar-with-manifest" unless="manifest.available+main.class-mkdist.available">
\r
973 <j2seproject1:jar manifest="${manifest.file}"/>
\r
975 <target depends="init,compile,-pre-pre-jar,-pre-jar" if="do.archive+manifest.available+main.class" name="-do-jar-with-mainclass" unless="manifest.available+main.class+mkdist.available">
\r
976 <j2seproject1:jar manifest="${manifest.file}">
\r
977 <j2seproject1:manifest>
\r
978 <j2seproject1:attribute name="Main-Class" value="${main.class}"/>
\r
979 </j2seproject1:manifest>
\r
980 </j2seproject1:jar>
\r
981 <echo level="info">To run this application from the command line without Ant, try:</echo>
\r
982 <property location="${build.classes.dir}" name="build.classes.dir.resolved"/>
\r
983 <property location="${dist.jar}" name="dist.jar.resolved"/>
\r
984 <pathconvert property="run.classpath.with.dist.jar">
\r
985 <path path="${run.classpath}"/>
\r
986 <map from="${build.classes.dir.resolved}" to="${dist.jar.resolved}"/>
\r
988 <echo level="info">java -cp "${run.classpath.with.dist.jar}" ${main.class}</echo>
\r
990 <target depends="init" if="do.archive" name="-do-jar-with-libraries-create-manifest" unless="manifest.available">
\r
991 <tempfile deleteonexit="true" destdir="${build.dir}" property="tmp.manifest.file"/>
\r
992 <touch file="${tmp.manifest.file}" verbose="false"/>
\r
994 <target depends="init" if="do.archive+manifest.available" name="-do-jar-with-libraries-copy-manifest">
\r
995 <tempfile deleteonexit="true" destdir="${build.dir}" property="tmp.manifest.file"/>
\r
996 <copy file="${manifest.file}" tofile="${tmp.manifest.file}"/>
\r
998 <target depends="init,-do-jar-with-libraries-create-manifest,-do-jar-with-libraries-copy-manifest" if="do.archive+main.class.available" name="-do-jar-with-libraries-set-main">
\r
999 <manifest file="${tmp.manifest.file}" mode="update">
\r
1000 <attribute name="Main-Class" value="${main.class}"/>
\r
1003 <target depends="init,-do-jar-with-libraries-create-manifest,-do-jar-with-libraries-copy-manifest" if="do.archive+splashscreen.available" name="-do-jar-with-libraries-set-splashscreen">
\r
1004 <basename file="${application.splash}" property="splashscreen.basename"/>
\r
1005 <mkdir dir="${build.classes.dir}/META-INF"/>
\r
1006 <copy failonerror="false" file="${application.splash}" todir="${build.classes.dir}/META-INF"/>
\r
1007 <manifest file="${tmp.manifest.file}" mode="update">
\r
1008 <attribute name="SplashScreen-Image" value="META-INF/${splashscreen.basename}"/>
\r
1011 <target depends="init,-init-macrodef-copylibs,compile,-pre-pre-jar,-pre-jar,-do-jar-with-libraries-create-manifest,-do-jar-with-libraries-copy-manifest,-do-jar-with-libraries-set-main,-do-jar-with-libraries-set-splashscreen" if="do.mkdist" name="-do-jar-with-libraries-pack">
\r
1012 <j2seproject3:copylibs manifest="${tmp.manifest.file}"/>
\r
1013 <echo level="info">To run this application from the command line without Ant, try:</echo>
\r
1014 <property location="${dist.jar}" name="dist.jar.resolved"/>
\r
1015 <echo level="info">java -jar "${dist.jar.resolved}"</echo>
\r
1017 <target depends="-do-jar-with-libraries-pack" if="do.archive" name="-do-jar-with-libraries-delete-manifest">
\r
1019 <fileset file="${tmp.manifest.file}"/>
\r
1022 <target depends="init,compile,-pre-pre-jar,-pre-jar,-do-jar-with-libraries-create-manifest,-do-jar-with-libraries-copy-manifest,-do-jar-with-libraries-set-main,-do-jar-with-libraries-set-splashscreen,-do-jar-with-libraries-pack,-do-jar-with-libraries-delete-manifest" name="-do-jar-with-libraries"/>
\r
1023 <target name="-post-jar">
\r
1024 <!-- Empty placeholder for easier customization. -->
\r
1025 <!-- You can override this target in the ../build.xml file. -->
\r
1027 <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
1033 <target depends="init,compile" description="Run a main class." name="run">
\r
1034 <j2seproject1:java>
\r
1036 <arg line="${application.args}"/>
\r
1038 </j2seproject1:java>
\r
1040 <target name="-do-not-recompile">
\r
1041 <property name="javac.includes.binary" value=""/>
\r
1043 <target depends="init,compile-single" name="run-single">
\r
1044 <fail unless="run.class">Must select one file in the IDE or set run.class</fail>
\r
1045 <j2seproject1:java classname="${run.class}"/>
\r
1047 <target depends="init,compile-test-single" name="run-test-with-main">
\r
1048 <fail unless="run.class">Must select one file in the IDE or set run.class</fail>
\r
1049 <j2seproject1:java classname="${run.class}" classpath="${run.test.classpath}"/>
\r
1056 <target depends="init" if="netbeans.home" name="-debug-start-debugger">
\r
1057 <j2seproject1:nbjpdastart name="${debug.class}"/>
\r
1059 <target depends="init" if="netbeans.home" name="-debug-start-debugger-main-test">
\r
1060 <j2seproject1:nbjpdastart classpath="${debug.test.classpath}" name="${debug.class}"/>
\r
1062 <target depends="init,compile" name="-debug-start-debuggee">
\r
1063 <j2seproject3:debug>
\r
1065 <arg line="${application.args}"/>
\r
1067 </j2seproject3:debug>
\r
1069 <target depends="init,compile,-debug-start-debugger,-debug-start-debuggee" description="Debug project in IDE." if="netbeans.home" name="debug"/>
\r
1070 <target depends="init" if="netbeans.home" name="-debug-start-debugger-stepinto">
\r
1071 <j2seproject1:nbjpdastart stopclassname="${main.class}"/>
\r
1073 <target depends="init,compile,-debug-start-debugger-stepinto,-debug-start-debuggee" if="netbeans.home" name="debug-stepinto"/>
\r
1074 <target depends="init,compile-single" if="netbeans.home" name="-debug-start-debuggee-single">
\r
1075 <fail unless="debug.class">Must select one file in the IDE or set debug.class</fail>
\r
1076 <j2seproject3:debug classname="${debug.class}"/>
\r
1078 <target depends="init,compile-single,-debug-start-debugger,-debug-start-debuggee-single" if="netbeans.home" name="debug-single"/>
\r
1079 <target depends="init,compile-test-single" if="netbeans.home" name="-debug-start-debuggee-main-test">
\r
1080 <fail unless="debug.class">Must select one file in the IDE or set debug.class</fail>
\r
1081 <j2seproject3:debug classname="${debug.class}" classpath="${debug.test.classpath}"/>
\r
1083 <target depends="init,compile-test-single,-debug-start-debugger-main-test,-debug-start-debuggee-main-test" if="netbeans.home" name="debug-test-with-main"/>
\r
1084 <target depends="init" name="-pre-debug-fix">
\r
1085 <fail unless="fix.includes">Must set fix.includes</fail>
\r
1086 <property name="javac.includes" value="${fix.includes}.java"/>
\r
1088 <target depends="init,-pre-debug-fix,compile-single" if="netbeans.home" name="-do-debug-fix">
\r
1089 <j2seproject1:nbjpdareload/>
\r
1091 <target depends="init,-pre-debug-fix,-do-debug-fix" if="netbeans.home" name="debug-fix"/>
\r
1098 pre NB7.2 profiler integration
\r
1100 <target depends="profile-init,compile" description="Profile a project in the IDE." if="profiler.info.jvmargs.agent" name="-profile-pre72">
\r
1101 <fail unless="netbeans.home">This target only works when run from inside the NetBeans IDE.</fail>
\r
1104 <path path="${run.classpath}"/>
\r
1106 </nbprofiledirect>
\r
1109 <target depends="profile-init,compile-single" description="Profile a selected class in the IDE." if="profiler.info.jvmargs.agent" name="-profile-single-pre72">
\r
1110 <fail unless="profile.class">Must select one file in the IDE or set profile.class</fail>
\r
1111 <fail unless="netbeans.home">This target only works when run from inside the NetBeans IDE.</fail>
\r
1114 <path path="${run.classpath}"/>
\r
1116 </nbprofiledirect>
\r
1117 <profile classname="${profile.class}"/>
\r
1119 <target depends="profile-init,compile-single" if="profiler.info.jvmargs.agent" name="-profile-applet-pre72">
\r
1120 <fail unless="netbeans.home">This target only works when run from inside the NetBeans IDE.</fail>
\r
1123 <path path="${run.classpath}"/>
\r
1125 </nbprofiledirect>
\r
1126 <profile classname="sun.applet.AppletViewer">
\r
1128 <arg value="${applet.url}"/>
\r
1132 <target depends="profile-init,compile-test-single" if="profiler.info.jvmargs.agent" name="-profile-test-single-pre72">
\r
1133 <fail unless="netbeans.home">This target only works when run from inside the NetBeans IDE.</fail>
\r
1136 <path path="${run.test.classpath}"/>
\r
1138 </nbprofiledirect>
\r
1139 <junit dir="${profiler.info.dir}" errorproperty="tests.failed" failureproperty="tests.failed" fork="true" jvm="${profiler.info.jvm}" showoutput="true">
\r
1140 <env key="${profiler.info.pathvar}" path="${profiler.info.agentpath}:${profiler.current.path}"/>
\r
1141 <jvmarg value="${profiler.info.jvmargs.agent}"/>
\r
1142 <jvmarg line="${profiler.info.jvmargs}"/>
\r
1143 <test name="${profile.class}"/>
\r
1145 <path path="${run.test.classpath}"/>
\r
1148 <propertyref prefix="test-sys-prop."/>
\r
1149 <mapper from="test-sys-prop.*" to="*" type="glob"/>
\r
1151 <formatter type="brief" usefile="false"/>
\r
1152 <formatter type="xml"/>
\r
1156 end of pre NB72 profiling section
\r
1158 <target if="netbeans.home" name="-profile-check">
\r
1159 <condition property="profiler.configured">
\r
1161 <contains casesensitive="true" string="${run.jvmargs.ide}" substring="-agentpath:"/>
\r
1162 <contains casesensitive="true" string="${run.jvmargs.ide}" substring="-javaagent:"/>
\r
1166 <target depends="-profile-check,-profile-pre72" description="Profile a project in the IDE." if="profiler.configured" name="profile" unless="profiler.info.jvmargs.agent">
\r
1168 <antcall target="run"/>
\r
1170 <target depends="-profile-check,-profile-single-pre72" description="Profile a selected class in the IDE." if="profiler.configured" name="profile-single" unless="profiler.info.jvmargs.agent">
\r
1171 <fail unless="run.class">Must select one file in the IDE or set run.class</fail>
\r
1173 <antcall target="run-single"/>
\r
1175 <target depends="-profile-test-single-pre72" description="Profile a selected test in the IDE." name="profile-test-single"/>
\r
1176 <target depends="-profile-check" description="Profile a selected test in the IDE." if="profiler.configured" name="profile-test" unless="profiler.info.jvmargs">
\r
1177 <fail unless="test.includes">Must select some files in the IDE or set test.includes</fail>
\r
1179 <antcall target="test-single"/>
\r
1181 <target depends="-profile-check" description="Profile a selected class in the IDE." if="profiler.configured" name="profile-test-with-main">
\r
1182 <fail unless="run.class">Must select one file in the IDE or set run.class</fail>
\r
1184 <antcal target="run-test-with-main"/>
\r
1186 <target depends="-profile-check,-profile-applet-pre72" if="profiler.configured" name="profile-applet" unless="profiler.info.jvmargs.agent">
\r
1187 <fail unless="applet.url">Must select one file in the IDE or set applet.url</fail>
\r
1189 <antcall target="run-applet"/>
\r
1196 <target depends="init" if="have.sources" name="-javadoc-build">
\r
1197 <mkdir dir="${dist.javadoc.dir}"/>
\r
1198 <condition else="" property="javadoc.endorsed.classpath.cmd.line.arg" value="-J${endorsed.classpath.cmd.line.arg}">
\r
1200 <isset property="endorsed.classpath.cmd.line.arg"/>
\r
1202 <equals arg1="${endorsed.classpath.cmd.line.arg}" arg2=""/>
\r
1206 <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
1208 <path path="${javac.classpath}"/>
\r
1210 <fileset dir="${src.dir}" excludes="*.java,${excludes}" includes="${includes}">
\r
1211 <filename name="**/*.java"/>
\r
1213 <fileset dir="${build.generated.sources.dir}" erroronmissingdir="false">
\r
1214 <include name="**/*.java"/>
\r
1215 <exclude name="*.java"/>
\r
1217 <arg line="${javadoc.endorsed.classpath.cmd.line.arg}"/>
\r
1219 <copy todir="${dist.javadoc.dir}">
\r
1220 <fileset dir="${src.dir}" excludes="${excludes}" includes="${includes}">
\r
1221 <filename name="**/doc-files/**"/>
\r
1223 <fileset dir="${build.generated.sources.dir}" erroronmissingdir="false">
\r
1224 <include name="**/doc-files/**"/>
\r
1228 <target depends="init,-javadoc-build" if="netbeans.home" name="-javadoc-browse" unless="no.javadoc.preview">
\r
1229 <nbbrowse file="${dist.javadoc.dir}/index.html"/>
\r
1231 <target depends="init,-javadoc-build,-javadoc-browse" description="Build Javadoc." name="javadoc"/>
\r
1233 =========================
\r
1234 TEST COMPILATION SECTION
\r
1235 =========================
\r
1237 <target depends="init,compile" if="have.tests" name="-pre-pre-compile-test">
\r
1238 <mkdir dir="${build.test.classes.dir}"/>
\r
1240 <target name="-pre-compile-test">
\r
1241 <!-- Empty placeholder for easier customization. -->
\r
1242 <!-- You can override this target in the ../build.xml file. -->
\r
1244 <target if="do.depend.true" name="-compile-test-depend">
\r
1245 <j2seproject3:depend classpath="${javac.test.classpath}" destdir="${build.test.classes.dir}" srcdir="${test.src.dir}"/>
\r
1247 <target depends="init,deps-jar,compile,-pre-pre-compile-test,-pre-compile-test,-compile-test-depend" if="have.tests" name="-do-compile-test">
\r
1248 <j2seproject3:javac apgeneratedsrcdir="${build.test.classes.dir}" classpath="${javac.test.classpath}" debug="true" destdir="${build.test.classes.dir}" processorpath="${javac.test.processorpath}" srcdir="${test.src.dir}"/>
\r
1249 <copy todir="${build.test.classes.dir}">
\r
1250 <fileset dir="${test.src.dir}" excludes="${build.classes.excludes},${excludes}" includes="${includes}"/>
\r
1253 <target name="-post-compile-test">
\r
1254 <!-- Empty placeholder for easier customization. -->
\r
1255 <!-- You can override this target in the ../build.xml file. -->
\r
1257 <target depends="init,compile,-pre-pre-compile-test,-pre-compile-test,-do-compile-test,-post-compile-test" name="compile-test"/>
\r
1258 <target name="-pre-compile-test-single">
\r
1259 <!-- Empty placeholder for easier customization. -->
\r
1260 <!-- You can override this target in the ../build.xml file. -->
\r
1262 <target depends="init,deps-jar,compile,-pre-pre-compile-test,-pre-compile-test-single" if="have.tests" name="-do-compile-test-single">
\r
1263 <fail unless="javac.includes">Must select some files in the IDE or set javac.includes</fail>
\r
1264 <j2seproject3:force-recompile destdir="${build.test.classes.dir}"/>
\r
1265 <j2seproject3:javac apgeneratedsrcdir="${build.test.classes.dir}" classpath="${javac.test.classpath}" debug="true" destdir="${build.test.classes.dir}" excludes="" includes="${javac.includes}" processorpath="${javac.test.processorpath}" sourcepath="${test.src.dir}" srcdir="${test.src.dir}"/>
\r
1266 <copy todir="${build.test.classes.dir}">
\r
1267 <fileset dir="${test.src.dir}" excludes="${build.classes.excludes},${excludes}" includes="${includes}"/>
\r
1270 <target name="-post-compile-test-single">
\r
1271 <!-- Empty placeholder for easier customization. -->
\r
1272 <!-- You can override this target in the ../build.xml file. -->
\r
1274 <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
1276 =======================
\r
1277 TEST EXECUTION SECTION
\r
1278 =======================
\r
1280 <target depends="init" if="have.tests" name="-pre-test-run">
\r
1281 <mkdir dir="${build.test.results.dir}"/>
\r
1283 <target depends="init,compile-test,-pre-test-run" if="have.tests" name="-do-test-run">
\r
1284 <j2seproject3:test testincludes="**/*Test.java"/>
\r
1286 <target depends="init,compile-test,-pre-test-run,-do-test-run" if="have.tests" name="-post-test-run">
\r
1287 <fail if="tests.failed" unless="ignore.failing.tests">Some tests failed; see details above.</fail>
\r
1289 <target depends="init" if="have.tests" name="test-report"/>
\r
1290 <target depends="init" if="netbeans.home+have.tests" name="-test-browse"/>
\r
1291 <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
1292 <target depends="init" if="have.tests" name="-pre-test-run-single">
\r
1293 <mkdir dir="${build.test.results.dir}"/>
\r
1295 <target depends="init,compile-test-single,-pre-test-run-single" if="have.tests" name="-do-test-run-single">
\r
1296 <fail unless="test.includes">Must select some files in the IDE or set test.includes</fail>
\r
1297 <j2seproject3:test excludes="" includes="${test.includes}" testincludes="${test.includes}"/>
\r
1299 <target depends="init,compile-test-single,-pre-test-run-single,-do-test-run-single" if="have.tests" name="-post-test-run-single">
\r
1300 <fail if="tests.failed" unless="ignore.failing.tests">Some tests failed; see details above.</fail>
\r
1302 <target depends="init,compile-test-single,-pre-test-run-single,-do-test-run-single,-post-test-run-single" description="Run single unit test." name="test-single"/>
\r
1303 <target depends="init,compile-test-single,-pre-test-run-single" if="have.tests" name="-do-test-run-single-method">
\r
1304 <fail unless="test.class">Must select some files in the IDE or set test.class</fail>
\r
1305 <fail unless="test.method">Must select some method in the IDE or set test.method</fail>
\r
1306 <j2seproject3:test excludes="" includes="${javac.includes}" testincludes="${test.class}" testmethods="${test.method}"/>
\r
1308 <target depends="init,compile-test-single,-pre-test-run-single,-do-test-run-single-method" if="have.tests" name="-post-test-run-single-method">
\r
1309 <fail if="tests.failed" unless="ignore.failing.tests">Some tests failed; see details above.</fail>
\r
1311 <target depends="init,compile-test-single,-pre-test-run-single,-do-test-run-single-method,-post-test-run-single-method" description="Run single unit test." name="test-single-method"/>
\r
1313 =======================
\r
1314 TEST DEBUGGING SECTION
\r
1315 =======================
\r
1317 <target depends="init,compile-test-single,-pre-test-run-single" if="have.tests" name="-debug-start-debuggee-test">
\r
1318 <fail unless="test.class">Must select one file in the IDE or set test.class</fail>
\r
1319 <j2seproject3:test-debug excludes="" includes="${javac.includes}" testClass="${test.class}" testincludes="${javac.includes}"/>
\r
1321 <target depends="init,compile-test-single,-pre-test-run-single" if="have.tests" name="-debug-start-debuggee-test-method">
\r
1322 <fail unless="test.class">Must select one file in the IDE or set test.class</fail>
\r
1323 <fail unless="test.method">Must select some method in the IDE or set test.method</fail>
\r
1324 <j2seproject3:test-debug excludes="" includes="${javac.includes}" testClass="${test.class}" testMethod="${test.method}" testincludes="${test.class}" testmethods="${test.method}"/>
\r
1326 <target depends="init,compile-test" if="netbeans.home+have.tests" name="-debug-start-debugger-test">
\r
1327 <j2seproject1:nbjpdastart classpath="${debug.test.classpath}" name="${test.class}"/>
\r
1329 <target depends="init,compile-test-single,-debug-start-debugger-test,-debug-start-debuggee-test" name="debug-test"/>
\r
1330 <target depends="init,compile-test-single,-debug-start-debugger-test,-debug-start-debuggee-test-method" name="debug-test-method"/>
\r
1331 <target depends="init,-pre-debug-fix,compile-test-single" if="netbeans.home" name="-do-debug-fix-test">
\r
1332 <j2seproject1:nbjpdareload dir="${build.test.classes.dir}"/>
\r
1334 <target depends="init,-pre-debug-fix,-do-debug-fix-test" if="netbeans.home" name="debug-fix-test"/>
\r
1336 =========================
\r
1337 APPLET EXECUTION SECTION
\r
1338 =========================
\r
1340 <target depends="init,compile-single" name="run-applet">
\r
1341 <fail unless="applet.url">Must select one file in the IDE or set applet.url</fail>
\r
1342 <j2seproject1:java classname="sun.applet.AppletViewer">
\r
1344 <arg value="${applet.url}"/>
\r
1346 </j2seproject1:java>
\r
1349 =========================
\r
1350 APPLET DEBUGGING SECTION
\r
1351 =========================
\r
1353 <target depends="init,compile-single" if="netbeans.home" name="-debug-start-debuggee-applet">
\r
1354 <fail unless="applet.url">Must select one file in the IDE or set applet.url</fail>
\r
1355 <j2seproject3:debug classname="sun.applet.AppletViewer">
\r
1357 <arg value="${applet.url}"/>
\r
1359 </j2seproject3:debug>
\r
1361 <target depends="init,compile-single,-debug-start-debugger,-debug-start-debuggee-applet" if="netbeans.home" name="debug-applet"/>
\r
1367 <target name="-deps-clean-init" unless="built-clean.properties">
\r
1368 <property location="${build.dir}/built-clean.properties" name="built-clean.properties"/>
\r
1369 <delete file="${built-clean.properties}" quiet="true"/>
\r
1371 <target if="already.built.clean.${basedir}" name="-warn-already-built-clean">
\r
1372 <echo level="warn" message="Cycle detected: Final5 was already built"/>
\r
1374 <target depends="init,-deps-clean-init" name="deps-clean" unless="no.deps">
\r
1375 <mkdir dir="${build.dir}"/>
\r
1376 <touch file="${built-clean.properties}" verbose="false"/>
\r
1377 <property file="${built-clean.properties}" prefix="already.built.clean."/>
\r
1378 <antcall target="-warn-already-built-clean"/>
\r
1379 <propertyfile file="${built-clean.properties}">
\r
1380 <entry key="${basedir}" value=""/>
\r
1383 <target depends="init" name="-do-clean">
\r
1384 <delete dir="${build.dir}"/>
\r
1385 <delete dir="${dist.dir}" followsymlinks="false" includeemptydirs="true"/>
\r
1387 <target name="-post-clean">
\r
1388 <!-- Empty placeholder for easier customization. -->
\r
1389 <!-- You can override this target in the ../build.xml file. -->
\r
1391 <target depends="init,deps-clean,-do-clean,-post-clean" description="Clean build products." name="clean"/>
\r
1392 <target name="-check-call-dep">
\r
1393 <property file="${call.built.properties}" prefix="already.built."/>
\r
1394 <condition property="should.call.dep">
\r
1397 <isset property="already.built.${call.subproject}"/>
\r
1399 <available file="${call.script}"/>
\r
1403 <target depends="-check-call-dep" if="should.call.dep" name="-maybe-call-dep">
\r
1404 <ant antfile="${call.script}" inheritall="false" target="${call.target}">
\r
1406 <propertyref prefix="transfer."/>
\r
1407 <mapper from="transfer.*" to="*" type="glob"/>
\r