1 <?xml version="1.0" encoding="UTF-8"?>
3 *** GENERATED FROM project.xml - DO NOT EDIT ***
4 *** EDIT ../build.xml INSTEAD ***
6 For the purpose of easier reading the script
7 is divided into following sections:
22 <project xmlns:j2seproject1="http://www.netbeans.org/ns/j2se-project/1" xmlns:j2seproject3="http://www.netbeans.org/ns/j2se-project/3" xmlns:jaxrpc="http://www.netbeans.org/ns/j2se-project/jax-rpc" basedir=".." default="default" name="AdjustTime-impl">
23 <import file="jnlp-impl.xml"/>
24 <fail message="Please build using Ant 1.8.0 or higher.">
27 <antversion atleast="1.8.0"/>
31 <target depends="test,jar,javadoc" description="Build and test whole project." name="default"/>
33 ======================
34 INITIALIZATION SECTION
35 ======================
37 <target name="-pre-init">
38 <!-- Empty placeholder for easier customization. -->
39 <!-- You can override this target in the ../build.xml file. -->
41 <target depends="-pre-init" name="-init-private">
42 <property file="nbproject/private/config.properties"/>
43 <property file="nbproject/private/configs/${config}.properties"/>
44 <property file="nbproject/private/private.properties"/>
46 <target depends="-pre-init,-init-private" name="-init-user">
47 <property file="${user.properties.file}"/>
48 <!-- The two properties below are usually overridden -->
49 <!-- by the active platform. Just a fallback. -->
50 <property name="default.javac.source" value="1.4"/>
51 <property name="default.javac.target" value="1.4"/>
53 <target depends="-pre-init,-init-private,-init-user" name="-init-project">
54 <property file="nbproject/configs/${config}.properties"/>
55 <property file="nbproject/project.properties"/>
57 <target depends="-pre-init,-init-private,-init-user,-init-project,-init-macrodef-property" name="-do-init">
58 <property name="platform.java" value="${java.home}/bin/java"/>
59 <available file="${manifest.file}" property="manifest.available"/>
60 <condition property="splashscreen.available">
63 <equals arg1="${application.splash}" arg2="" trim="true"/>
65 <available file="${application.splash}"/>
68 <condition property="main.class.available">
70 <isset property="main.class"/>
72 <equals arg1="${main.class}" arg2="" trim="true"/>
76 <condition property="profile.available">
78 <isset property="javac.profile"/>
79 <length length="0" string="${javac.profile}" when="greater"/>
80 <matches pattern="1\.[89](\..*)?" string="${javac.source}"/>
83 <condition property="do.archive">
86 <istrue value="${jar.archive.disabled}"/>
88 <istrue value="${not.archive.disabled}"/>
91 <condition property="do.mkdist">
93 <isset property="do.archive"/>
94 <isset property="libs.CopyLibs.classpath"/>
96 <istrue value="${mkdist.disabled}"/>
100 <condition property="do.archive+manifest.available">
102 <isset property="manifest.available"/>
103 <istrue value="${do.archive}"/>
106 <condition property="do.archive+main.class.available">
108 <isset property="main.class.available"/>
109 <istrue value="${do.archive}"/>
112 <condition property="do.archive+splashscreen.available">
114 <isset property="splashscreen.available"/>
115 <istrue value="${do.archive}"/>
118 <condition property="do.archive+profile.available">
120 <isset property="profile.available"/>
121 <istrue value="${do.archive}"/>
124 <condition property="have.tests">
126 <available file="${test.src.dir}"/>
129 <condition property="have.sources">
131 <available file="${src.src.dir}"/>
134 <condition property="netbeans.home+have.tests">
136 <isset property="netbeans.home"/>
137 <isset property="have.tests"/>
140 <condition property="no.javadoc.preview">
142 <isset property="javadoc.preview"/>
143 <isfalse value="${javadoc.preview}"/>
146 <property name="run.jvmargs" value=""/>
147 <property name="run.jvmargs.ide" value=""/>
148 <property name="javac.compilerargs" value=""/>
149 <property name="work.dir" value="${basedir}"/>
150 <condition property="no.deps">
152 <istrue value="${no.dependencies}"/>
155 <property name="javac.debug" value="true"/>
156 <property name="javadoc.preview" value="true"/>
157 <property name="application.args" value=""/>
158 <property name="source.encoding" value="${file.encoding}"/>
159 <property name="runtime.encoding" value="${source.encoding}"/>
160 <condition property="javadoc.encoding.used" value="${javadoc.encoding}">
162 <isset property="javadoc.encoding"/>
164 <equals arg1="${javadoc.encoding}" arg2=""/>
168 <property name="javadoc.encoding.used" value="${source.encoding}"/>
169 <property name="includes" value="**"/>
170 <property name="excludes" value=""/>
171 <property name="do.depend" value="false"/>
172 <condition property="do.depend.true">
173 <istrue value="${do.depend}"/>
175 <path id="endorsed.classpath.path" path="${endorsed.classpath}"/>
176 <condition else="" property="endorsed.classpath.cmd.line.arg" value="-Xbootclasspath/p:'${toString:endorsed.classpath.path}'">
178 <isset property="endorsed.classpath"/>
180 <equals arg1="${endorsed.classpath}" arg2="" trim="true"/>
184 <condition else="" property="javac.profile.cmd.line.arg" value="-profile ${javac.profile}">
185 <isset property="profile.available"/>
187 <condition else="false" property="jdkBug6558476">
189 <matches pattern="1\.[56]" string="${java.specification.version}"/>
195 <property name="javac.fork" value="${jdkBug6558476}"/>
196 <property name="jar.index" value="false"/>
197 <property name="jar.index.metainf" value="${jar.index}"/>
198 <property name="copylibs.rebase" value="true"/>
199 <available file="${meta.inf.dir}/persistence.xml" property="has.persistence.xml"/>
200 <condition property="junit.available">
202 <available classname="org.junit.Test" classpath="${run.test.classpath}"/>
203 <available classname="junit.framework.Test" classpath="${run.test.classpath}"/>
206 <condition property="testng.available">
207 <available classname="org.testng.annotations.Test" classpath="${run.test.classpath}"/>
209 <condition property="junit+testng.available">
211 <istrue value="${junit.available}"/>
212 <istrue value="${testng.available}"/>
215 <condition else="testng" property="testng.mode" value="mixed">
216 <istrue value="${junit+testng.available}"/>
218 <condition else="" property="testng.debug.mode" value="-mixed">
219 <istrue value="${junit+testng.available}"/>
222 <target name="-post-init">
223 <!-- Empty placeholder for easier customization. -->
224 <!-- You can override this target in the ../build.xml file. -->
226 <target depends="-pre-init,-init-private,-init-user,-init-project,-do-init" name="-init-check">
227 <fail unless="src.src.dir">Must set src.src.dir</fail>
228 <fail unless="test.src.dir">Must set test.src.dir</fail>
229 <fail unless="build.dir">Must set build.dir</fail>
230 <fail unless="dist.dir">Must set dist.dir</fail>
231 <fail unless="build.classes.dir">Must set build.classes.dir</fail>
232 <fail unless="dist.javadoc.dir">Must set dist.javadoc.dir</fail>
233 <fail unless="build.test.classes.dir">Must set build.test.classes.dir</fail>
234 <fail unless="build.test.results.dir">Must set build.test.results.dir</fail>
235 <fail unless="build.classes.excludes">Must set build.classes.excludes</fail>
236 <fail unless="dist.jar">Must set dist.jar</fail>
238 <target name="-init-macrodef-property">
239 <macrodef name="property" uri="http://www.netbeans.org/ns/j2se-project/1">
240 <attribute name="name"/>
241 <attribute name="value"/>
243 <property name="@{name}" value="${@{value}}"/>
247 <target depends="-init-ap-cmdline-properties" if="ap.supported.internal" name="-init-macrodef-javac-with-processors">
248 <macrodef name="javac" uri="http://www.netbeans.org/ns/j2se-project/3">
249 <attribute default="${src.src.dir}" name="srcdir"/>
250 <attribute default="${build.classes.dir}" name="destdir"/>
251 <attribute default="${javac.classpath}" name="classpath"/>
252 <attribute default="${javac.processorpath}" name="processorpath"/>
253 <attribute default="${build.generated.sources.dir}/ap-source-output" name="apgeneratedsrcdir"/>
254 <attribute default="${includes}" name="includes"/>
255 <attribute default="${excludes}" name="excludes"/>
256 <attribute default="${javac.debug}" name="debug"/>
257 <attribute default="${empty.dir}" name="sourcepath"/>
258 <attribute default="${empty.dir}" name="gensrcdir"/>
259 <element name="customize" optional="true"/>
261 <property location="${build.dir}/empty" name="empty.dir"/>
262 <mkdir dir="${empty.dir}"/>
263 <mkdir dir="@{apgeneratedsrcdir}"/>
264 <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}">
266 <dirset dir="@{gensrcdir}" erroronmissingdir="false">
271 <path path="@{classpath}"/>
273 <compilerarg line="${endorsed.classpath.cmd.line.arg}"/>
274 <compilerarg line="${javac.profile.cmd.line.arg}"/>
275 <compilerarg line="${javac.compilerargs}"/>
276 <compilerarg value="-processorpath"/>
277 <compilerarg path="@{processorpath}:${empty.dir}"/>
278 <compilerarg line="${ap.processors.internal}"/>
279 <compilerarg line="${annotation.processing.processor.options}"/>
280 <compilerarg value="-s"/>
281 <compilerarg path="@{apgeneratedsrcdir}"/>
282 <compilerarg line="${ap.proc.none.internal}"/>
288 <target depends="-init-ap-cmdline-properties" name="-init-macrodef-javac-without-processors" unless="ap.supported.internal">
289 <macrodef name="javac" uri="http://www.netbeans.org/ns/j2se-project/3">
290 <attribute default="${src.src.dir}" name="srcdir"/>
291 <attribute default="${build.classes.dir}" name="destdir"/>
292 <attribute default="${javac.classpath}" name="classpath"/>
293 <attribute default="${javac.processorpath}" name="processorpath"/>
294 <attribute default="${build.generated.sources.dir}/ap-source-output" name="apgeneratedsrcdir"/>
295 <attribute default="${includes}" name="includes"/>
296 <attribute default="${excludes}" name="excludes"/>
297 <attribute default="${javac.debug}" name="debug"/>
298 <attribute default="${empty.dir}" name="sourcepath"/>
299 <attribute default="${empty.dir}" name="gensrcdir"/>
300 <element name="customize" optional="true"/>
302 <property location="${build.dir}/empty" name="empty.dir"/>
303 <mkdir dir="${empty.dir}"/>
304 <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}">
306 <dirset dir="@{gensrcdir}" erroronmissingdir="false">
311 <path path="@{classpath}"/>
313 <compilerarg line="${endorsed.classpath.cmd.line.arg}"/>
314 <compilerarg line="${javac.profile.cmd.line.arg}"/>
315 <compilerarg line="${javac.compilerargs}"/>
321 <target depends="-init-macrodef-javac-with-processors,-init-macrodef-javac-without-processors" name="-init-macrodef-javac">
322 <macrodef name="depend" uri="http://www.netbeans.org/ns/j2se-project/3">
323 <attribute default="${src.src.dir}" name="srcdir"/>
324 <attribute default="${build.classes.dir}" name="destdir"/>
325 <attribute default="${javac.classpath}" name="classpath"/>
327 <depend cache="${build.dir}/depcache" destdir="@{destdir}" excludes="${excludes}" includes="${includes}" srcdir="@{srcdir}">
329 <path path="@{classpath}"/>
334 <macrodef name="force-recompile" uri="http://www.netbeans.org/ns/j2se-project/3">
335 <attribute default="${build.classes.dir}" name="destdir"/>
337 <fail unless="javac.includes">Must set javac.includes</fail>
338 <pathconvert pathsep="${line.separator}" property="javac.includes.binary">
340 <filelist dir="@{destdir}" files="${javac.includes}"/>
342 <globmapper from="*.java" to="*.class"/>
344 <tempfile deleteonexit="true" property="javac.includesfile.binary"/>
345 <echo file="${javac.includesfile.binary}" message="${javac.includes.binary}"/>
347 <files includesfile="${javac.includesfile.binary}"/>
350 <fileset file="${javac.includesfile.binary}"/>
355 <target if="${junit.available}" name="-init-macrodef-junit-init">
356 <condition else="false" property="nb.junit.batch" value="true">
358 <istrue value="${junit.available}"/>
360 <isset property="test.method"/>
364 <condition else="false" property="nb.junit.single" value="true">
366 <istrue value="${junit.available}"/>
367 <isset property="test.method"/>
371 <target name="-init-test-properties">
372 <property name="test.binaryincludes" value="<nothing>"/>
373 <property name="test.binarytestincludes" value=""/>
374 <property name="test.binaryexcludes" value=""/>
376 <target if="${nb.junit.single}" name="-init-macrodef-junit-single" unless="${nb.junit.batch}">
377 <macrodef name="junit" uri="http://www.netbeans.org/ns/j2se-project/3">
378 <attribute default="${includes}" name="includes"/>
379 <attribute default="${excludes}" name="excludes"/>
380 <attribute default="**" name="testincludes"/>
381 <attribute default="" name="testmethods"/>
382 <element name="customize" optional="true"/>
384 <property name="junit.forkmode" value="perTest"/>
385 <junit dir="${work.dir}" errorproperty="tests.failed" failureproperty="tests.failed" fork="true" forkmode="${junit.forkmode}" showoutput="true" tempdir="${build.dir}">
386 <test methods="@{testmethods}" name="@{testincludes}" todir="${build.test.results.dir}"/>
388 <propertyref prefix="test-sys-prop."/>
389 <mapper from="test-sys-prop.*" to="*" type="glob"/>
391 <formatter type="brief" usefile="false"/>
392 <formatter type="xml"/>
393 <jvmarg value="-ea"/>
399 <target depends="-init-test-properties" if="${nb.junit.batch}" name="-init-macrodef-junit-batch" unless="${nb.junit.single}">
400 <macrodef name="junit" uri="http://www.netbeans.org/ns/j2se-project/3">
401 <attribute default="${includes}" name="includes"/>
402 <attribute default="${excludes}" name="excludes"/>
403 <attribute default="**" name="testincludes"/>
404 <attribute default="" name="testmethods"/>
405 <element name="customize" optional="true"/>
407 <property name="junit.forkmode" value="perTest"/>
408 <junit dir="${work.dir}" errorproperty="tests.failed" failureproperty="tests.failed" fork="true" forkmode="${junit.forkmode}" showoutput="true" tempdir="${build.dir}">
409 <batchtest todir="${build.test.results.dir}">
410 <fileset dir="${test.src.dir}" excludes="@{excludes},${excludes}" includes="@{includes}">
411 <filename name="@{testincludes}"/>
413 <fileset dir="${build.test.classes.dir}" excludes="@{excludes},${excludes},${test.binaryexcludes}" includes="${test.binaryincludes}">
414 <filename name="${test.binarytestincludes}"/>
418 <propertyref prefix="test-sys-prop."/>
419 <mapper from="test-sys-prop.*" to="*" type="glob"/>
421 <formatter type="brief" usefile="false"/>
422 <formatter type="xml"/>
423 <jvmarg value="-ea"/>
429 <target depends="-init-macrodef-junit-init,-init-macrodef-junit-single, -init-macrodef-junit-batch" if="${junit.available}" name="-init-macrodef-junit"/>
430 <target if="${testng.available}" name="-init-macrodef-testng">
431 <macrodef name="testng" uri="http://www.netbeans.org/ns/j2se-project/3">
432 <attribute default="${includes}" name="includes"/>
433 <attribute default="${excludes}" name="excludes"/>
434 <attribute default="**" name="testincludes"/>
435 <attribute default="" name="testmethods"/>
436 <element name="customize" optional="true"/>
438 <condition else="" property="testng.methods.arg" value="@{testincludes}.@{testmethods}">
439 <isset property="test.method"/>
441 <union id="test.set">
442 <fileset dir="${test.src.dir}" excludes="@{excludes},**/*.xml,${excludes}" includes="@{includes}">
443 <filename name="@{testincludes}"/>
446 <taskdef classname="org.testng.TestNGAntTask" classpath="${run.test.classpath}" name="testng"/>
447 <testng classfilesetref="test.set" failureProperty="tests.failed" listeners="org.testng.reporters.VerboseReporter" methods="${testng.methods.arg}" mode="${testng.mode}" outputdir="${build.test.results.dir}" suitename="AdjustTime" testname="TestNG tests" workingDir="${work.dir}">
448 <xmlfileset dir="${build.test.classes.dir}" includes="@{testincludes}"/>
450 <propertyref prefix="test-sys-prop."/>
451 <mapper from="test-sys-prop.*" to="*" type="glob"/>
458 <target name="-init-macrodef-test-impl">
459 <macrodef name="test-impl" uri="http://www.netbeans.org/ns/j2se-project/3">
460 <attribute default="${includes}" name="includes"/>
461 <attribute default="${excludes}" name="excludes"/>
462 <attribute default="**" name="testincludes"/>
463 <attribute default="" name="testmethods"/>
464 <element implicit="true" name="customize" optional="true"/>
466 <echo>No tests executed.</echo>
470 <target depends="-init-macrodef-junit" if="${junit.available}" name="-init-macrodef-junit-impl">
471 <macrodef name="test-impl" uri="http://www.netbeans.org/ns/j2se-project/3">
472 <attribute default="${includes}" name="includes"/>
473 <attribute default="${excludes}" name="excludes"/>
474 <attribute default="**" name="testincludes"/>
475 <attribute default="" name="testmethods"/>
476 <element implicit="true" name="customize" optional="true"/>
478 <j2seproject3:junit excludes="@{excludes}" includes="@{includes}" testincludes="@{testincludes}" testmethods="@{testmethods}">
480 </j2seproject3:junit>
484 <target depends="-init-macrodef-testng" if="${testng.available}" name="-init-macrodef-testng-impl">
485 <macrodef name="test-impl" uri="http://www.netbeans.org/ns/j2se-project/3">
486 <attribute default="${includes}" name="includes"/>
487 <attribute default="${excludes}" name="excludes"/>
488 <attribute default="**" name="testincludes"/>
489 <attribute default="" name="testmethods"/>
490 <element implicit="true" name="customize" optional="true"/>
492 <j2seproject3:testng excludes="@{excludes}" includes="@{includes}" testincludes="@{testincludes}" testmethods="@{testmethods}">
494 </j2seproject3:testng>
498 <target depends="-init-macrodef-test-impl,-init-macrodef-junit-impl,-init-macrodef-testng-impl" name="-init-macrodef-test">
499 <macrodef name="test" uri="http://www.netbeans.org/ns/j2se-project/3">
500 <attribute default="${includes}" name="includes"/>
501 <attribute default="${excludes}" name="excludes"/>
502 <attribute default="**" name="testincludes"/>
503 <attribute default="" name="testmethods"/>
505 <j2seproject3:test-impl excludes="@{excludes}" includes="@{includes}" testincludes="@{testincludes}" testmethods="@{testmethods}">
508 <path path="${run.test.classpath}"/>
510 <jvmarg line="${endorsed.classpath.cmd.line.arg}"/>
511 <jvmarg line="${run.jvmargs}"/>
512 <jvmarg line="${run.jvmargs.ide}"/>
514 </j2seproject3:test-impl>
518 <target if="${junit.available}" name="-init-macrodef-junit-debug" unless="${nb.junit.batch}">
519 <macrodef name="junit-debug" uri="http://www.netbeans.org/ns/j2se-project/3">
520 <attribute default="${includes}" name="includes"/>
521 <attribute default="${excludes}" name="excludes"/>
522 <attribute default="**" name="testincludes"/>
523 <attribute default="" name="testmethods"/>
524 <element name="customize" optional="true"/>
526 <property name="junit.forkmode" value="perTest"/>
527 <junit dir="${work.dir}" errorproperty="tests.failed" failureproperty="tests.failed" fork="true" forkmode="${junit.forkmode}" showoutput="true" tempdir="${build.dir}">
528 <test methods="@{testmethods}" name="@{testincludes}" todir="${build.test.results.dir}"/>
530 <propertyref prefix="test-sys-prop."/>
531 <mapper from="test-sys-prop.*" to="*" type="glob"/>
533 <formatter type="brief" usefile="false"/>
534 <formatter type="xml"/>
535 <jvmarg value="-ea"/>
536 <jvmarg line="${debug-args-line}"/>
537 <jvmarg value="-Xrunjdwp:transport=${debug-transport},address=${jpda.address}"/>
543 <target depends="-init-test-properties" if="${nb.junit.batch}" name="-init-macrodef-junit-debug-batch">
544 <macrodef name="junit-debug" uri="http://www.netbeans.org/ns/j2se-project/3">
545 <attribute default="${includes}" name="includes"/>
546 <attribute default="${excludes}" name="excludes"/>
547 <attribute default="**" name="testincludes"/>
548 <attribute default="" name="testmethods"/>
549 <element name="customize" optional="true"/>
551 <property name="junit.forkmode" value="perTest"/>
552 <junit dir="${work.dir}" errorproperty="tests.failed" failureproperty="tests.failed" fork="true" forkmode="${junit.forkmode}" showoutput="true" tempdir="${build.dir}">
553 <batchtest todir="${build.test.results.dir}">
554 <fileset dir="${test.src.dir}" excludes="@{excludes},${excludes}" includes="@{includes}">
555 <filename name="@{testincludes}"/>
557 <fileset dir="${build.test.classes.dir}" excludes="@{excludes},${excludes},${test.binaryexcludes}" includes="${test.binaryincludes}">
558 <filename name="${test.binarytestincludes}"/>
562 <propertyref prefix="test-sys-prop."/>
563 <mapper from="test-sys-prop.*" to="*" type="glob"/>
565 <formatter type="brief" usefile="false"/>
566 <formatter type="xml"/>
567 <jvmarg value="-ea"/>
568 <jvmarg line="${debug-args-line}"/>
569 <jvmarg value="-Xrunjdwp:transport=${debug-transport},address=${jpda.address}"/>
575 <target depends="-init-macrodef-junit-debug,-init-macrodef-junit-debug-batch" if="${junit.available}" name="-init-macrodef-junit-debug-impl">
576 <macrodef name="test-debug-impl" uri="http://www.netbeans.org/ns/j2se-project/3">
577 <attribute default="${includes}" name="includes"/>
578 <attribute default="${excludes}" name="excludes"/>
579 <attribute default="**" name="testincludes"/>
580 <attribute default="" name="testmethods"/>
581 <element implicit="true" name="customize" optional="true"/>
583 <j2seproject3:junit-debug excludes="@{excludes}" includes="@{includes}" testincludes="@{testincludes}" testmethods="@{testmethods}">
585 </j2seproject3:junit-debug>
589 <target if="${testng.available}" name="-init-macrodef-testng-debug">
590 <macrodef name="testng-debug" uri="http://www.netbeans.org/ns/j2se-project/3">
591 <attribute default="${main.class}" name="testClass"/>
592 <attribute default="" name="testMethod"/>
593 <element name="customize2" optional="true"/>
595 <condition else="-testclass @{testClass}" property="test.class.or.method" value="-methods @{testClass}.@{testMethod}">
596 <isset property="test.method"/>
598 <condition else="-suitename AdjustTime -testname @{testClass} ${test.class.or.method}" property="testng.cmd.args" value="@{testClass}">
599 <matches pattern=".*\.xml" string="@{testClass}"/>
601 <delete dir="${build.test.results.dir}" quiet="true"/>
602 <mkdir dir="${build.test.results.dir}"/>
603 <j2seproject3:debug classname="org.testng.TestNG" classpath="${debug.test.classpath}">
606 <jvmarg value="-ea"/>
607 <arg line="${testng.debug.mode}"/>
608 <arg line="-d ${build.test.results.dir}"/>
609 <arg line="-listener org.testng.reporters.VerboseReporter"/>
610 <arg line="${testng.cmd.args}"/>
612 </j2seproject3:debug>
616 <target depends="-init-macrodef-testng-debug" if="${testng.available}" name="-init-macrodef-testng-debug-impl">
617 <macrodef name="testng-debug-impl" uri="http://www.netbeans.org/ns/j2se-project/3">
618 <attribute default="${main.class}" name="testClass"/>
619 <attribute default="" name="testMethod"/>
620 <element implicit="true" name="customize2" optional="true"/>
622 <j2seproject3:testng-debug testClass="@{testClass}" testMethod="@{testMethod}">
624 </j2seproject3:testng-debug>
628 <target depends="-init-macrodef-junit-debug-impl" if="${junit.available}" name="-init-macrodef-test-debug-junit">
629 <macrodef name="test-debug" uri="http://www.netbeans.org/ns/j2se-project/3">
630 <attribute default="${includes}" name="includes"/>
631 <attribute default="${excludes}" name="excludes"/>
632 <attribute default="**" name="testincludes"/>
633 <attribute default="" name="testmethods"/>
634 <attribute default="${main.class}" name="testClass"/>
635 <attribute default="" name="testMethod"/>
637 <j2seproject3:test-debug-impl excludes="@{excludes}" includes="@{includes}" testincludes="@{testincludes}" testmethods="@{testmethods}">
640 <path path="${run.test.classpath}"/>
642 <jvmarg line="${endorsed.classpath.cmd.line.arg}"/>
643 <jvmarg line="${run.jvmargs}"/>
644 <jvmarg line="${run.jvmargs.ide}"/>
646 </j2seproject3:test-debug-impl>
650 <target depends="-init-macrodef-testng-debug-impl" if="${testng.available}" name="-init-macrodef-test-debug-testng">
651 <macrodef name="test-debug" uri="http://www.netbeans.org/ns/j2se-project/3">
652 <attribute default="${includes}" name="includes"/>
653 <attribute default="${excludes}" name="excludes"/>
654 <attribute default="**" name="testincludes"/>
655 <attribute default="" name="testmethods"/>
656 <attribute default="${main.class}" name="testClass"/>
657 <attribute default="" name="testMethod"/>
659 <j2seproject3:testng-debug-impl testClass="@{testClass}" testMethod="@{testMethod}">
662 <propertyref prefix="test-sys-prop."/>
663 <mapper from="test-sys-prop.*" to="*" type="glob"/>
666 </j2seproject3:testng-debug-impl>
670 <target depends="-init-macrodef-test-debug-junit,-init-macrodef-test-debug-testng" name="-init-macrodef-test-debug"/>
672 pre NB7.2 profiling section; consider it deprecated
674 <target depends="-profile-pre-init, init, -profile-post-init, -profile-init-macrodef-profile, -profile-init-check" if="profiler.info.jvmargs.agent" name="profile-init"/>
675 <target if="profiler.info.jvmargs.agent" name="-profile-pre-init">
676 <!-- Empty placeholder for easier customization. -->
677 <!-- You can override this target in the ../build.xml file. -->
679 <target if="profiler.info.jvmargs.agent" name="-profile-post-init">
680 <!-- Empty placeholder for easier customization. -->
681 <!-- You can override this target in the ../build.xml file. -->
683 <target if="profiler.info.jvmargs.agent" name="-profile-init-macrodef-profile">
684 <macrodef name="resolve">
685 <attribute name="name"/>
686 <attribute name="value"/>
688 <property name="@{name}" value="${env.@{value}}"/>
691 <macrodef name="profile">
692 <attribute default="${main.class}" name="classname"/>
693 <element name="customize" optional="true"/>
695 <property environment="env"/>
696 <resolve name="profiler.current.path" value="${profiler.info.pathvar}"/>
697 <java classname="@{classname}" dir="${profiler.info.dir}" fork="true" jvm="${profiler.info.jvm}">
698 <jvmarg line="${endorsed.classpath.cmd.line.arg}"/>
699 <jvmarg value="${profiler.info.jvmargs.agent}"/>
700 <jvmarg line="${profiler.info.jvmargs}"/>
701 <env key="${profiler.info.pathvar}" path="${profiler.info.agentpath}:${profiler.current.path}"/>
702 <arg line="${application.args}"/>
704 <path path="${run.classpath}"/>
707 <propertyref prefix="run-sys-prop."/>
708 <mapper from="run-sys-prop.*" to="*" type="glob"/>
715 <target depends="-profile-pre-init, init, -profile-post-init, -profile-init-macrodef-profile" if="profiler.info.jvmargs.agent" name="-profile-init-check">
716 <fail unless="profiler.info.jvm">Must set JVM to use for profiling in profiler.info.jvm</fail>
717 <fail unless="profiler.info.jvmargs.agent">Must set profiler agent JVM arguments in profiler.info.jvmargs.agent</fail>
720 end of pre NB7.2 profiling section
722 <target depends="-init-debug-args" name="-init-macrodef-nbjpda">
723 <macrodef name="nbjpdastart" uri="http://www.netbeans.org/ns/j2se-project/1">
724 <attribute default="${main.class}" name="name"/>
725 <attribute default="${debug.classpath}" name="classpath"/>
726 <attribute default="" name="stopclassname"/>
728 <nbjpdastart addressproperty="jpda.address" name="@{name}" stopclassname="@{stopclassname}" transport="${debug-transport}">
730 <path path="@{classpath}"/>
735 <macrodef name="nbjpdareload" uri="http://www.netbeans.org/ns/j2se-project/1">
736 <attribute default="${build.classes.dir}" name="dir"/>
739 <fileset dir="@{dir}" includes="${fix.classes}">
740 <include name="${fix.includes}*.class"/>
746 <target name="-init-debug-args">
747 <property name="version-output" value="java version "${ant.java.version}"/>
748 <condition property="have-jdk-older-than-1.4">
750 <contains string="${version-output}" substring="java version "1.0"/>
751 <contains string="${version-output}" substring="java version "1.1"/>
752 <contains string="${version-output}" substring="java version "1.2"/>
753 <contains string="${version-output}" substring="java version "1.3"/>
756 <condition else="-Xdebug" property="debug-args-line" value="-Xdebug -Xnoagent -Djava.compiler=none">
757 <istrue value="${have-jdk-older-than-1.4}"/>
759 <condition else="dt_socket" property="debug-transport-by-os" value="dt_shmem">
760 <os family="windows"/>
762 <condition else="${debug-transport-by-os}" property="debug-transport" value="${debug.transport}">
763 <isset property="debug.transport"/>
766 <target depends="-init-debug-args" name="-init-macrodef-debug">
767 <macrodef name="debug" uri="http://www.netbeans.org/ns/j2se-project/3">
768 <attribute default="${main.class}" name="classname"/>
769 <attribute default="${debug.classpath}" name="classpath"/>
770 <element name="customize" optional="true"/>
772 <java classname="@{classname}" dir="${work.dir}" fork="true">
773 <jvmarg line="${endorsed.classpath.cmd.line.arg}"/>
774 <jvmarg line="${debug-args-line}"/>
775 <jvmarg value="-Xrunjdwp:transport=${debug-transport},address=${jpda.address}"/>
776 <jvmarg value="-Dfile.encoding=${runtime.encoding}"/>
777 <redirector errorencoding="${runtime.encoding}" inputencoding="${runtime.encoding}" outputencoding="${runtime.encoding}"/>
778 <jvmarg line="${run.jvmargs}"/>
779 <jvmarg line="${run.jvmargs.ide}"/>
781 <path path="@{classpath}"/>
784 <propertyref prefix="run-sys-prop."/>
785 <mapper from="run-sys-prop.*" to="*" type="glob"/>
792 <target name="-init-macrodef-java">
793 <macrodef name="java" uri="http://www.netbeans.org/ns/j2se-project/1">
794 <attribute default="${main.class}" name="classname"/>
795 <attribute default="${run.classpath}" name="classpath"/>
796 <attribute default="jvm" name="jvm"/>
797 <element name="customize" optional="true"/>
799 <java classname="@{classname}" dir="${work.dir}" fork="true">
800 <jvmarg line="${endorsed.classpath.cmd.line.arg}"/>
801 <jvmarg value="-Dfile.encoding=${runtime.encoding}"/>
802 <redirector errorencoding="${runtime.encoding}" inputencoding="${runtime.encoding}" outputencoding="${runtime.encoding}"/>
803 <jvmarg line="${run.jvmargs}"/>
804 <jvmarg line="${run.jvmargs.ide}"/>
806 <path path="@{classpath}"/>
809 <propertyref prefix="run-sys-prop."/>
810 <mapper from="run-sys-prop.*" to="*" type="glob"/>
817 <target name="-init-macrodef-copylibs">
818 <macrodef name="copylibs" uri="http://www.netbeans.org/ns/j2se-project/3">
819 <attribute default="${manifest.file}" name="manifest"/>
820 <element name="customize" optional="true"/>
822 <property location="${build.classes.dir}" name="build.classes.dir.resolved"/>
823 <pathconvert property="run.classpath.without.build.classes.dir">
824 <path path="${run.classpath}"/>
825 <map from="${build.classes.dir.resolved}" to=""/>
827 <pathconvert pathsep=" " property="jar.classpath">
828 <path path="${run.classpath.without.build.classes.dir}"/>
832 <replacestring from=" " to="%20"/>
834 <globmapper from="*" to="lib/*"/>
837 <taskdef classname="org.netbeans.modules.java.j2seproject.copylibstask.CopyLibs" classpath="${libs.CopyLibs.classpath}" name="copylibs"/>
838 <copylibs compress="${jar.compress}" excludeFromCopy="${copylibs.excludes}" index="${jar.index}" indexMetaInf="${jar.index.metainf}" jarfile="${dist.jar}" manifest="@{manifest}" rebase="${copylibs.rebase}" runtimeclasspath="${run.classpath.without.build.classes.dir}">
839 <fileset dir="${build.classes.dir}" excludes="${dist.archive.excludes}"/>
841 <attribute name="Class-Path" value="${jar.classpath}"/>
848 <target name="-init-presetdef-jar">
849 <presetdef name="jar" uri="http://www.netbeans.org/ns/j2se-project/1">
850 <jar compress="${jar.compress}" index="${jar.index}" jarfile="${dist.jar}">
851 <j2seproject1:fileset dir="${build.classes.dir}" excludes="${dist.archive.excludes}"/>
855 <target name="-init-ap-cmdline-properties">
856 <property name="annotation.processing.enabled" value="true"/>
857 <property name="annotation.processing.processors.list" value=""/>
858 <property name="annotation.processing.processor.options" value=""/>
859 <property name="annotation.processing.run.all.processors" value="true"/>
860 <property name="javac.processorpath" value="${javac.classpath}"/>
861 <property name="javac.test.processorpath" value="${javac.test.classpath}"/>
862 <condition property="ap.supported.internal" value="true">
864 <matches pattern="1\.[0-5](\..*)?" string="${javac.source}"/>
868 <target depends="-init-ap-cmdline-properties" if="ap.supported.internal" name="-init-ap-cmdline-supported">
869 <condition else="" property="ap.processors.internal" value="-processor ${annotation.processing.processors.list}">
870 <isfalse value="${annotation.processing.run.all.processors}"/>
872 <condition else="" property="ap.proc.none.internal" value="-proc:none">
873 <isfalse value="${annotation.processing.enabled}"/>
876 <target depends="-init-ap-cmdline-properties,-init-ap-cmdline-supported" name="-init-ap-cmdline">
877 <property name="ap.cmd.line.internal" value=""/>
879 <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"/>
885 <target name="-deps-jar-init" unless="built-jar.properties">
886 <property location="${build.dir}/built-jar.properties" name="built-jar.properties"/>
887 <delete file="${built-jar.properties}" quiet="true"/>
889 <target if="already.built.jar.${basedir}" name="-warn-already-built-jar">
890 <echo level="warn" message="Cycle detected: AdjustTime was already built"/>
892 <target depends="init,-deps-jar-init" name="deps-jar" unless="no.deps">
893 <mkdir dir="${build.dir}"/>
894 <touch file="${built-jar.properties}" verbose="false"/>
895 <property file="${built-jar.properties}" prefix="already.built.jar."/>
896 <antcall target="-warn-already-built-jar"/>
897 <propertyfile file="${built-jar.properties}">
898 <entry key="${basedir}" value=""/>
901 <target depends="init,-check-automatic-build,-clean-after-automatic-build" name="-verify-automatic-build"/>
902 <target depends="init" name="-check-automatic-build">
903 <available file="${build.classes.dir}/.netbeans_automatic_build" property="netbeans.automatic.build"/>
905 <target depends="init" if="netbeans.automatic.build" name="-clean-after-automatic-build">
906 <antcall target="clean"/>
908 <target depends="init,deps-jar" name="-pre-pre-compile">
909 <mkdir dir="${build.classes.dir}"/>
911 <target name="-pre-compile">
912 <!-- Empty placeholder for easier customization. -->
913 <!-- You can override this target in the ../build.xml file. -->
915 <target if="do.depend.true" name="-compile-depend">
916 <pathconvert property="build.generated.subdirs">
917 <dirset dir="${build.generated.sources.dir}" erroronmissingdir="false">
921 <j2seproject3:depend srcdir="${src.src.dir}:${build.generated.subdirs}"/>
923 <target depends="init,deps-jar,-pre-pre-compile,-pre-compile, -copy-persistence-xml,-compile-depend" if="have.sources" name="-do-compile">
924 <j2seproject3:javac gensrcdir="${build.generated.sources.dir}"/>
925 <copy todir="${build.classes.dir}">
926 <fileset dir="${src.src.dir}" excludes="${build.classes.excludes},${excludes}" includes="${includes}"/>
929 <target if="has.persistence.xml" name="-copy-persistence-xml">
930 <mkdir dir="${build.classes.dir}/META-INF"/>
931 <copy todir="${build.classes.dir}/META-INF">
932 <fileset dir="${meta.inf.dir}" includes="persistence.xml orm.xml"/>
935 <target name="-post-compile">
936 <!-- Empty placeholder for easier customization. -->
937 <!-- You can override this target in the ../build.xml file. -->
939 <target depends="init,deps-jar,-verify-automatic-build,-pre-pre-compile,-pre-compile,-do-compile,-post-compile" description="Compile project." name="compile"/>
940 <target name="-pre-compile-single">
941 <!-- Empty placeholder for easier customization. -->
942 <!-- You can override this target in the ../build.xml file. -->
944 <target depends="init,deps-jar,-pre-pre-compile" name="-do-compile-single">
945 <fail unless="javac.includes">Must select some files in the IDE or set javac.includes</fail>
946 <j2seproject3:force-recompile/>
947 <j2seproject3:javac excludes="" gensrcdir="${build.generated.sources.dir}" includes="${javac.includes}" sourcepath="${src.src.dir}"/>
949 <target name="-post-compile-single">
950 <!-- Empty placeholder for easier customization. -->
951 <!-- You can override this target in the ../build.xml file. -->
953 <target depends="init,deps-jar,-verify-automatic-build,-pre-pre-compile,-pre-compile-single,-do-compile-single,-post-compile-single" name="compile-single"/>
959 <target depends="init" name="-pre-pre-jar">
960 <dirname file="${dist.jar}" property="dist.jar.dir"/>
961 <mkdir dir="${dist.jar.dir}"/>
963 <target name="-pre-jar">
964 <!-- Empty placeholder for easier customization. -->
965 <!-- You can override this target in the ../build.xml file. -->
967 <target depends="init" if="do.archive" name="-do-jar-create-manifest" unless="manifest.available">
968 <tempfile deleteonexit="true" destdir="${build.dir}" property="tmp.manifest.file"/>
969 <touch file="${tmp.manifest.file}" verbose="false"/>
971 <target depends="init" if="do.archive+manifest.available" name="-do-jar-copy-manifest">
972 <tempfile deleteonexit="true" destdir="${build.dir}" property="tmp.manifest.file"/>
973 <copy file="${manifest.file}" tofile="${tmp.manifest.file}"/>
975 <target depends="init,-do-jar-create-manifest,-do-jar-copy-manifest" if="do.archive+main.class.available" name="-do-jar-set-mainclass">
976 <manifest file="${tmp.manifest.file}" mode="update">
977 <attribute name="Main-Class" value="${main.class}"/>
980 <target depends="init,-do-jar-create-manifest,-do-jar-copy-manifest" if="do.archive+profile.available" name="-do-jar-set-profile">
981 <manifest file="${tmp.manifest.file}" mode="update">
982 <attribute name="Profile" value="${javac.profile}"/>
985 <target depends="init,-do-jar-create-manifest,-do-jar-copy-manifest" if="do.archive+splashscreen.available" name="-do-jar-set-splashscreen">
986 <basename file="${application.splash}" property="splashscreen.basename"/>
987 <mkdir dir="${build.classes.dir}/META-INF"/>
988 <copy failonerror="false" file="${application.splash}" todir="${build.classes.dir}/META-INF"/>
989 <manifest file="${tmp.manifest.file}" mode="update">
990 <attribute name="SplashScreen-Image" value="META-INF/${splashscreen.basename}"/>
993 <target depends="init,-init-macrodef-copylibs,compile,-pre-pre-jar,-pre-jar,-do-jar-create-manifest,-do-jar-copy-manifest,-do-jar-set-mainclass,-do-jar-set-profile,-do-jar-set-splashscreen" if="do.mkdist" name="-do-jar-copylibs">
994 <j2seproject3:copylibs manifest="${tmp.manifest.file}"/>
995 <echo level="info">To run this application from the command line without Ant, try:</echo>
996 <property location="${dist.jar}" name="dist.jar.resolved"/>
997 <echo level="info">java -jar "${dist.jar.resolved}"</echo>
999 <target depends="init,compile,-pre-pre-jar,-pre-jar,-do-jar-create-manifest,-do-jar-copy-manifest,-do-jar-set-mainclass,-do-jar-set-profile,-do-jar-set-splashscreen" if="do.archive" name="-do-jar-jar" unless="do.mkdist">
1000 <j2seproject1:jar manifest="${tmp.manifest.file}"/>
1001 <property location="${build.classes.dir}" name="build.classes.dir.resolved"/>
1002 <property location="${dist.jar}" name="dist.jar.resolved"/>
1003 <pathconvert property="run.classpath.with.dist.jar">
1004 <path path="${run.classpath}"/>
1005 <map from="${build.classes.dir.resolved}" to="${dist.jar.resolved}"/>
1007 <condition else="" property="jar.usage.message" value="To run this application from the command line without Ant, try:${line.separator}${platform.java} -cp ${run.classpath.with.dist.jar} ${main.class}">
1008 <isset property="main.class.available"/>
1010 <condition else="debug" property="jar.usage.level" value="info">
1011 <isset property="main.class.available"/>
1013 <echo level="${jar.usage.level}" message="${jar.usage.message}"/>
1015 <target depends="-do-jar-copylibs" if="do.archive" name="-do-jar-delete-manifest">
1017 <fileset file="${tmp.manifest.file}"/>
1020 <target depends="init,compile,-pre-pre-jar,-pre-jar,-do-jar-create-manifest,-do-jar-copy-manifest,-do-jar-set-mainclass,-do-jar-set-profile,-do-jar-set-splashscreen,-do-jar-jar,-do-jar-delete-manifest" name="-do-jar-without-libraries"/>
1021 <target depends="init,compile,-pre-pre-jar,-pre-jar,-do-jar-create-manifest,-do-jar-copy-manifest,-do-jar-set-mainclass,-do-jar-set-profile,-do-jar-set-splashscreen,-do-jar-copylibs,-do-jar-delete-manifest" name="-do-jar-with-libraries"/>
1022 <target depends="jnlp" name="-post-jar">
1023 <!-- Empty placeholder for easier customization. -->
1024 <!-- You can override this target in the ../build.xml file. -->
1026 <target depends="init,compile,-pre-jar,-do-jar-without-libraries,-do-jar-with-libraries,-post-jar" name="-do-jar"/>
1027 <target depends="init,compile,-pre-jar,-do-jar,-post-jar,jnlp" description="Build JAR." name="jar"/>
1033 <target depends="init,compile" description="Run a main class." name="run">
1036 <arg line="${application.args}"/>
1038 </j2seproject1:java>
1040 <target name="-do-not-recompile">
1041 <property name="javac.includes.binary" value=""/>
1043 <target depends="init,compile-single" name="run-single">
1044 <fail unless="run.class">Must select one file in the IDE or set run.class</fail>
1045 <j2seproject1:java classname="${run.class}"/>
1047 <target depends="init,compile-test-single" name="run-test-with-main">
1048 <fail unless="run.class">Must select one file in the IDE or set run.class</fail>
1049 <j2seproject1:java classname="${run.class}" classpath="${run.test.classpath}"/>
1056 <target depends="init" if="netbeans.home" name="-debug-start-debugger">
1057 <j2seproject1:nbjpdastart name="${debug.class}"/>
1059 <target depends="init" if="netbeans.home" name="-debug-start-debugger-main-test">
1060 <j2seproject1:nbjpdastart classpath="${debug.test.classpath}" name="${debug.class}"/>
1062 <target depends="init,compile" name="-debug-start-debuggee">
1063 <j2seproject3:debug>
1065 <arg line="${application.args}"/>
1067 </j2seproject3:debug>
1069 <target depends="init,compile,-debug-start-debugger,-debug-start-debuggee" description="Debug project in IDE." if="netbeans.home" name="debug"/>
1070 <target depends="init" if="netbeans.home" name="-debug-start-debugger-stepinto">
1071 <j2seproject1:nbjpdastart stopclassname="${main.class}"/>
1073 <target depends="init,compile,-debug-start-debugger-stepinto,-debug-start-debuggee" if="netbeans.home" name="debug-stepinto"/>
1074 <target depends="init,compile-single" if="netbeans.home" name="-debug-start-debuggee-single">
1075 <fail unless="debug.class">Must select one file in the IDE or set debug.class</fail>
1076 <j2seproject3:debug classname="${debug.class}"/>
1078 <target depends="init,compile-single,-debug-start-debugger,-debug-start-debuggee-single" if="netbeans.home" name="debug-single"/>
1079 <target depends="init,compile-test-single" if="netbeans.home" name="-debug-start-debuggee-main-test">
1080 <fail unless="debug.class">Must select one file in the IDE or set debug.class</fail>
1081 <j2seproject3:debug classname="${debug.class}" classpath="${debug.test.classpath}"/>
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"/>
1084 <target depends="init" name="-pre-debug-fix">
1085 <fail unless="fix.includes">Must set fix.includes</fail>
1086 <property name="javac.includes" value="${fix.includes}.java"/>
1088 <target depends="init,-pre-debug-fix,compile-single" if="netbeans.home" name="-do-debug-fix">
1089 <j2seproject1:nbjpdareload/>
1091 <target depends="init,-pre-debug-fix,-do-debug-fix" if="netbeans.home" name="debug-fix"/>
1098 pre NB7.2 profiler integration
1100 <target depends="profile-init,compile" description="Profile a project in the IDE." if="profiler.info.jvmargs.agent" name="-profile-pre72">
1101 <fail unless="netbeans.home">This target only works when run from inside the NetBeans IDE.</fail>
1104 <path path="${run.classpath}"/>
1109 <target depends="profile-init,compile-single" description="Profile a selected class in the IDE." if="profiler.info.jvmargs.agent" name="-profile-single-pre72">
1110 <fail unless="profile.class">Must select one file in the IDE or set profile.class</fail>
1111 <fail unless="netbeans.home">This target only works when run from inside the NetBeans IDE.</fail>
1114 <path path="${run.classpath}"/>
1117 <profile classname="${profile.class}"/>
1119 <target depends="profile-init,compile-single" if="profiler.info.jvmargs.agent" name="-profile-applet-pre72">
1120 <fail unless="netbeans.home">This target only works when run from inside the NetBeans IDE.</fail>
1123 <path path="${run.classpath}"/>
1126 <profile classname="sun.applet.AppletViewer">
1128 <arg value="${applet.url}"/>
1132 <target depends="profile-init,compile-test-single" if="profiler.info.jvmargs.agent" name="-profile-test-single-pre72">
1133 <fail unless="netbeans.home">This target only works when run from inside the NetBeans IDE.</fail>
1136 <path path="${run.test.classpath}"/>
1139 <junit dir="${profiler.info.dir}" errorproperty="tests.failed" failureproperty="tests.failed" fork="true" jvm="${profiler.info.jvm}" showoutput="true">
1140 <env key="${profiler.info.pathvar}" path="${profiler.info.agentpath}:${profiler.current.path}"/>
1141 <jvmarg value="${profiler.info.jvmargs.agent}"/>
1142 <jvmarg line="${profiler.info.jvmargs}"/>
1143 <test name="${profile.class}"/>
1145 <path path="${run.test.classpath}"/>
1148 <propertyref prefix="test-sys-prop."/>
1149 <mapper from="test-sys-prop.*" to="*" type="glob"/>
1151 <formatter type="brief" usefile="false"/>
1152 <formatter type="xml"/>
1156 end of pre NB72 profiling section
1158 <target if="netbeans.home" name="-profile-check">
1159 <condition property="profiler.configured">
1161 <contains casesensitive="true" string="${run.jvmargs.ide}" substring="-agentpath:"/>
1162 <contains casesensitive="true" string="${run.jvmargs.ide}" substring="-javaagent:"/>
1166 <target depends="-profile-check,-profile-pre72" description="Profile a project in the IDE." if="profiler.configured" name="profile" unless="profiler.info.jvmargs.agent">
1168 <antcall target="run"/>
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">
1171 <fail unless="run.class">Must select one file in the IDE or set run.class</fail>
1173 <antcall target="run-single"/>
1175 <target depends="-profile-test-single-pre72" description="Profile a selected test in the IDE." name="profile-test-single"/>
1176 <target depends="-profile-check" description="Profile a selected test in the IDE." if="profiler.configured" name="profile-test" unless="profiler.info.jvmargs">
1177 <fail unless="test.includes">Must select some files in the IDE or set test.includes</fail>
1179 <antcall target="test-single"/>
1181 <target depends="-profile-check" description="Profile a selected class in the IDE." if="profiler.configured" name="profile-test-with-main">
1182 <fail unless="run.class">Must select one file in the IDE or set run.class</fail>
1184 <antcal target="run-test-with-main"/>
1186 <target depends="-profile-check,-profile-applet-pre72" if="profiler.configured" name="profile-applet" unless="profiler.info.jvmargs.agent">
1187 <fail unless="applet.url">Must select one file in the IDE or set applet.url</fail>
1189 <antcall target="run-applet"/>
1196 <target depends="init" if="have.sources" name="-javadoc-build">
1197 <mkdir dir="${dist.javadoc.dir}"/>
1198 <condition else="" property="javadoc.endorsed.classpath.cmd.line.arg" value="-J${endorsed.classpath.cmd.line.arg}">
1200 <isset property="endorsed.classpath.cmd.line.arg"/>
1202 <equals arg1="${endorsed.classpath.cmd.line.arg}" arg2=""/>
1206 <condition else="" property="bug5101868workaround" value="*.java">
1207 <matches pattern="1\.[56](\..*)?" string="${java.version}"/>
1209 <javadoc additionalparam="-J-Dfile.encoding=${file.encoding} ${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}">
1211 <path path="${javac.classpath}"/>
1213 <fileset dir="${src.src.dir}" excludes="${bug5101868workaround},${excludes}" includes="${includes}">
1214 <filename name="**/*.java"/>
1216 <fileset dir="${build.generated.sources.dir}" erroronmissingdir="false">
1217 <include name="**/*.java"/>
1218 <exclude name="*.java"/>
1220 <arg line="${javadoc.endorsed.classpath.cmd.line.arg}"/>
1222 <copy todir="${dist.javadoc.dir}">
1223 <fileset dir="${src.src.dir}" excludes="${excludes}" includes="${includes}">
1224 <filename name="**/doc-files/**"/>
1226 <fileset dir="${build.generated.sources.dir}" erroronmissingdir="false">
1227 <include name="**/doc-files/**"/>
1231 <target depends="init,-javadoc-build" if="netbeans.home" name="-javadoc-browse" unless="no.javadoc.preview">
1232 <nbbrowse file="${dist.javadoc.dir}/index.html"/>
1234 <target depends="init,-javadoc-build,-javadoc-browse" description="Build Javadoc." name="javadoc"/>
1236 =========================
1237 TEST COMPILATION SECTION
1238 =========================
1240 <target depends="init,compile" if="have.tests" name="-pre-pre-compile-test">
1241 <mkdir dir="${build.test.classes.dir}"/>
1243 <target name="-pre-compile-test">
1244 <!-- Empty placeholder for easier customization. -->
1245 <!-- You can override this target in the ../build.xml file. -->
1247 <target if="do.depend.true" name="-compile-test-depend">
1248 <j2seproject3:depend classpath="${javac.test.classpath}" destdir="${build.test.classes.dir}" srcdir="${test.src.dir}"/>
1250 <target depends="init,deps-jar,compile,-pre-pre-compile-test,-pre-compile-test,-compile-test-depend" if="have.tests" name="-do-compile-test">
1251 <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}"/>
1252 <copy todir="${build.test.classes.dir}">
1253 <fileset dir="${test.src.dir}" excludes="${build.classes.excludes},${excludes}" includes="${includes}"/>
1256 <target name="-post-compile-test">
1257 <!-- Empty placeholder for easier customization. -->
1258 <!-- You can override this target in the ../build.xml file. -->
1260 <target depends="init,compile,-pre-pre-compile-test,-pre-compile-test,-do-compile-test,-post-compile-test" name="compile-test"/>
1261 <target name="-pre-compile-test-single">
1262 <!-- Empty placeholder for easier customization. -->
1263 <!-- You can override this target in the ../build.xml file. -->
1265 <target depends="init,deps-jar,compile,-pre-pre-compile-test,-pre-compile-test-single" if="have.tests" name="-do-compile-test-single">
1266 <fail unless="javac.includes">Must select some files in the IDE or set javac.includes</fail>
1267 <j2seproject3:force-recompile destdir="${build.test.classes.dir}"/>
1268 <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}"/>
1269 <copy todir="${build.test.classes.dir}">
1270 <fileset dir="${test.src.dir}" excludes="${build.classes.excludes},${excludes}" includes="${includes}"/>
1273 <target name="-post-compile-test-single">
1274 <!-- Empty placeholder for easier customization. -->
1275 <!-- You can override this target in the ../build.xml file. -->
1277 <target depends="init,compile,-pre-pre-compile-test,-pre-compile-test-single,-do-compile-test-single,-post-compile-test-single" name="compile-test-single"/>
1279 =======================
1280 TEST EXECUTION SECTION
1281 =======================
1283 <target depends="init" if="have.tests" name="-pre-test-run">
1284 <mkdir dir="${build.test.results.dir}"/>
1286 <target depends="init,compile-test,-pre-test-run" if="have.tests" name="-do-test-run">
1287 <j2seproject3:test includes="${includes}" testincludes="**/*Test.java"/>
1289 <target depends="init,compile-test,-pre-test-run,-do-test-run" if="have.tests" name="-post-test-run">
1290 <fail if="tests.failed" unless="ignore.failing.tests">Some tests failed; see details above.</fail>
1292 <target depends="init" if="have.tests" name="test-report"/>
1293 <target depends="init" if="netbeans.home+have.tests" name="-test-browse"/>
1294 <target depends="init,compile-test,-pre-test-run,-do-test-run,test-report,-post-test-run,-test-browse" description="Run unit tests." name="test"/>
1295 <target depends="init" if="have.tests" name="-pre-test-run-single">
1296 <mkdir dir="${build.test.results.dir}"/>
1298 <target depends="init,compile-test-single,-pre-test-run-single" if="have.tests" name="-do-test-run-single">
1299 <fail unless="test.includes">Must select some files in the IDE or set test.includes</fail>
1300 <j2seproject3:test excludes="" includes="${test.includes}" testincludes="${test.includes}"/>
1302 <target depends="init,compile-test-single,-pre-test-run-single,-do-test-run-single" if="have.tests" name="-post-test-run-single">
1303 <fail if="tests.failed" unless="ignore.failing.tests">Some tests failed; see details above.</fail>
1305 <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"/>
1306 <target depends="init,compile-test-single,-pre-test-run-single" if="have.tests" name="-do-test-run-single-method">
1307 <fail unless="test.class">Must select some files in the IDE or set test.class</fail>
1308 <fail unless="test.method">Must select some method in the IDE or set test.method</fail>
1309 <j2seproject3:test excludes="" includes="${javac.includes}" testincludes="${test.class}" testmethods="${test.method}"/>
1311 <target depends="init,compile-test-single,-pre-test-run-single,-do-test-run-single-method" if="have.tests" name="-post-test-run-single-method">
1312 <fail if="tests.failed" unless="ignore.failing.tests">Some tests failed; see details above.</fail>
1314 <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"/>
1316 =======================
1317 TEST DEBUGGING SECTION
1318 =======================
1320 <target depends="init,compile-test-single,-pre-test-run-single" if="have.tests" name="-debug-start-debuggee-test">
1321 <fail unless="test.class">Must select one file in the IDE or set test.class</fail>
1322 <j2seproject3:test-debug excludes="" includes="${javac.includes}" testClass="${test.class}" testincludes="${javac.includes}"/>
1324 <target depends="init,compile-test-single,-pre-test-run-single" if="have.tests" name="-debug-start-debuggee-test-method">
1325 <fail unless="test.class">Must select one file in the IDE or set test.class</fail>
1326 <fail unless="test.method">Must select some method in the IDE or set test.method</fail>
1327 <j2seproject3:test-debug excludes="" includes="${javac.includes}" testClass="${test.class}" testMethod="${test.method}" testincludes="${test.class}" testmethods="${test.method}"/>
1329 <target depends="init,compile-test" if="netbeans.home+have.tests" name="-debug-start-debugger-test">
1330 <j2seproject1:nbjpdastart classpath="${debug.test.classpath}" name="${test.class}"/>
1332 <target depends="init,compile-test-single,-debug-start-debugger-test,-debug-start-debuggee-test" name="debug-test"/>
1333 <target depends="init,compile-test-single,-debug-start-debugger-test,-debug-start-debuggee-test-method" name="debug-test-method"/>
1334 <target depends="init,-pre-debug-fix,compile-test-single" if="netbeans.home" name="-do-debug-fix-test">
1335 <j2seproject1:nbjpdareload dir="${build.test.classes.dir}"/>
1337 <target depends="init,-pre-debug-fix,-do-debug-fix-test" if="netbeans.home" name="debug-fix-test"/>
1339 =========================
1340 APPLET EXECUTION SECTION
1341 =========================
1343 <target depends="init,compile-single" name="run-applet">
1344 <fail unless="applet.url">Must select one file in the IDE or set applet.url</fail>
1345 <j2seproject1:java classname="sun.applet.AppletViewer">
1347 <arg value="${applet.url}"/>
1349 </j2seproject1:java>
1352 =========================
1353 APPLET DEBUGGING SECTION
1354 =========================
1356 <target depends="init,compile-single" if="netbeans.home" name="-debug-start-debuggee-applet">
1357 <fail unless="applet.url">Must select one file in the IDE or set applet.url</fail>
1358 <j2seproject3:debug classname="sun.applet.AppletViewer">
1360 <arg value="${applet.url}"/>
1362 </j2seproject3:debug>
1364 <target depends="init,compile-single,-debug-start-debugger,-debug-start-debuggee-applet" if="netbeans.home" name="debug-applet"/>
1370 <target name="-deps-clean-init" unless="built-clean.properties">
1371 <property location="${build.dir}/built-clean.properties" name="built-clean.properties"/>
1372 <delete file="${built-clean.properties}" quiet="true"/>
1374 <target if="already.built.clean.${basedir}" name="-warn-already-built-clean">
1375 <echo level="warn" message="Cycle detected: AdjustTime was already built"/>
1377 <target depends="init,-deps-clean-init" name="deps-clean" unless="no.deps">
1378 <mkdir dir="${build.dir}"/>
1379 <touch file="${built-clean.properties}" verbose="false"/>
1380 <property file="${built-clean.properties}" prefix="already.built.clean."/>
1381 <antcall target="-warn-already-built-clean"/>
1382 <propertyfile file="${built-clean.properties}">
1383 <entry key="${basedir}" value=""/>
1386 <target depends="init" name="-do-clean">
1387 <delete dir="${build.dir}"/>
1388 <delete dir="${dist.dir}" followsymlinks="false" includeemptydirs="true"/>
1390 <target name="-post-clean">
1391 <!-- Empty placeholder for easier customization. -->
1392 <!-- You can override this target in the ../build.xml file. -->
1394 <target depends="init,deps-clean,-do-clean,-post-clean" description="Clean build products." name="clean"/>
1395 <target name="-check-call-dep">
1396 <property file="${call.built.properties}" prefix="already.built."/>
1397 <condition property="should.call.dep">
1400 <isset property="already.built.${call.subproject}"/>
1402 <available file="${call.script}"/>
1406 <target depends="-check-call-dep" if="should.call.dep" name="-maybe-call-dep">
1407 <ant antfile="${call.script}" inheritall="false" target="${call.target}">
1409 <propertyref prefix="transfer."/>
1410 <mapper from="transfer.*" to="*" type="glob"/>