cli: support --input-url and multiple names per option (might be used for short variants like -i, -a etc.)
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="alt2xml-in-properties-impl">
23 <fail message="Please build using Ant 1.8.0 or higher.">
26 <antversion atleast="1.8.0"/>
30 <target depends="test,jar,javadoc" description="Build and test whole project." name="default"/>
32 ======================
33 INITIALIZATION SECTION
34 ======================
36 <target name="-pre-init">
37 <!-- Empty placeholder for easier customization. -->
38 <!-- You can override this target in the ../build.xml file. -->
40 <target depends="-pre-init" name="-init-private">
41 <property file="nbproject/private/config.properties"/>
42 <property file="nbproject/private/configs/${config}.properties"/>
43 <property file="nbproject/private/private.properties"/>
45 <target depends="-pre-init,-init-private" name="-init-user">
46 <property file="${user.properties.file}"/>
47 <!-- The two properties below are usually overridden -->
48 <!-- by the active platform. Just a fallback. -->
49 <property name="default.javac.source" value="1.4"/>
50 <property name="default.javac.target" value="1.4"/>
52 <target depends="-pre-init,-init-private,-init-user" name="-init-project">
53 <property file="nbproject/configs/${config}.properties"/>
54 <property file="nbproject/project.properties"/>
56 <target depends="-pre-init,-init-private,-init-user,-init-project,-init-macrodef-property" name="-do-init">
57 <property name="platform.java" value="${java.home}/bin/java"/>
58 <available file="${manifest.file}" property="manifest.available"/>
59 <condition property="splashscreen.available">
62 <equals arg1="${application.splash}" arg2="" trim="true"/>
64 <available file="${application.splash}"/>
67 <condition property="main.class.available">
69 <isset property="main.class"/>
71 <equals arg1="${main.class}" arg2="" trim="true"/>
75 <condition property="profile.available">
77 <isset property="javac.profile"/>
78 <length length="0" string="${javac.profile}" when="greater"/>
79 <matches pattern="1\.[89](\..*)?" string="${javac.source}"/>
82 <condition property="do.archive">
85 <istrue value="${jar.archive.disabled}"/>
87 <istrue value="${not.archive.disabled}"/>
90 <condition property="do.mkdist">
92 <isset property="do.archive"/>
93 <isset property="libs.CopyLibs.classpath"/>
95 <istrue value="${mkdist.disabled}"/>
99 <condition property="do.archive+manifest.available">
101 <isset property="manifest.available"/>
102 <istrue value="${do.archive}"/>
105 <condition property="do.archive+main.class.available">
107 <isset property="main.class.available"/>
108 <istrue value="${do.archive}"/>
111 <condition property="do.archive+splashscreen.available">
113 <isset property="splashscreen.available"/>
114 <istrue value="${do.archive}"/>
117 <condition property="do.archive+profile.available">
119 <isset property="profile.available"/>
120 <istrue value="${do.archive}"/>
123 <condition property="have.tests">
125 <available file="${test.src.dir}"/>
128 <condition property="have.sources">
130 <available file="${src.dir}"/>
131 <available file="${src.config.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.dir">Must set src.dir</fail>
228 <fail unless="src.config.dir">Must set src.config.dir</fail>
229 <fail unless="test.src.dir">Must set test.src.dir</fail>
230 <fail unless="build.dir">Must set build.dir</fail>
231 <fail unless="dist.dir">Must set dist.dir</fail>
232 <fail unless="build.classes.dir">Must set build.classes.dir</fail>
233 <fail unless="dist.javadoc.dir">Must set dist.javadoc.dir</fail>
234 <fail unless="build.test.classes.dir">Must set build.test.classes.dir</fail>
235 <fail unless="build.test.results.dir">Must set build.test.results.dir</fail>
236 <fail unless="build.classes.excludes">Must set build.classes.excludes</fail>
237 <fail unless="dist.jar">Must set dist.jar</fail>
239 <target name="-init-macrodef-property">
240 <macrodef name="property" uri="http://www.netbeans.org/ns/j2se-project/1">
241 <attribute name="name"/>
242 <attribute name="value"/>
244 <property name="@{name}" value="${@{value}}"/>
248 <target depends="-init-ap-cmdline-properties" if="ap.supported.internal" name="-init-macrodef-javac-with-processors">
249 <macrodef name="javac" uri="http://www.netbeans.org/ns/j2se-project/3">
250 <attribute default="${src.dir}:${src.config.dir}" name="srcdir"/>
251 <attribute default="${build.classes.dir}" name="destdir"/>
252 <attribute default="${javac.classpath}" name="classpath"/>
253 <attribute default="${javac.processorpath}" name="processorpath"/>
254 <attribute default="${build.generated.sources.dir}/ap-source-output" name="apgeneratedsrcdir"/>
255 <attribute default="${includes}" name="includes"/>
256 <attribute default="${excludes}" name="excludes"/>
257 <attribute default="${javac.debug}" name="debug"/>
258 <attribute default="${empty.dir}" name="sourcepath"/>
259 <attribute default="${empty.dir}" name="gensrcdir"/>
260 <element name="customize" optional="true"/>
262 <property location="${build.dir}/empty" name="empty.dir"/>
263 <mkdir dir="${empty.dir}"/>
264 <mkdir dir="@{apgeneratedsrcdir}"/>
265 <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}">
267 <dirset dir="@{gensrcdir}" erroronmissingdir="false">
272 <path path="@{classpath}"/>
274 <compilerarg line="${endorsed.classpath.cmd.line.arg}"/>
275 <compilerarg line="${javac.profile.cmd.line.arg}"/>
276 <compilerarg line="${javac.compilerargs}"/>
277 <compilerarg value="-processorpath"/>
278 <compilerarg path="@{processorpath}:${empty.dir}"/>
279 <compilerarg line="${ap.processors.internal}"/>
280 <compilerarg line="${annotation.processing.processor.options}"/>
281 <compilerarg value="-s"/>
282 <compilerarg path="@{apgeneratedsrcdir}"/>
283 <compilerarg line="${ap.proc.none.internal}"/>
289 <target depends="-init-ap-cmdline-properties" name="-init-macrodef-javac-without-processors" unless="ap.supported.internal">
290 <macrodef name="javac" uri="http://www.netbeans.org/ns/j2se-project/3">
291 <attribute default="${src.dir}:${src.config.dir}" name="srcdir"/>
292 <attribute default="${build.classes.dir}" name="destdir"/>
293 <attribute default="${javac.classpath}" name="classpath"/>
294 <attribute default="${javac.processorpath}" name="processorpath"/>
295 <attribute default="${build.generated.sources.dir}/ap-source-output" name="apgeneratedsrcdir"/>
296 <attribute default="${includes}" name="includes"/>
297 <attribute default="${excludes}" name="excludes"/>
298 <attribute default="${javac.debug}" name="debug"/>
299 <attribute default="${empty.dir}" name="sourcepath"/>
300 <attribute default="${empty.dir}" name="gensrcdir"/>
301 <element name="customize" optional="true"/>
303 <property location="${build.dir}/empty" name="empty.dir"/>
304 <mkdir dir="${empty.dir}"/>
305 <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}">
307 <dirset dir="@{gensrcdir}" erroronmissingdir="false">
312 <path path="@{classpath}"/>
314 <compilerarg line="${endorsed.classpath.cmd.line.arg}"/>
315 <compilerarg line="${javac.profile.cmd.line.arg}"/>
316 <compilerarg line="${javac.compilerargs}"/>
322 <target depends="-init-macrodef-javac-with-processors,-init-macrodef-javac-without-processors" name="-init-macrodef-javac">
323 <macrodef name="depend" uri="http://www.netbeans.org/ns/j2se-project/3">
324 <attribute default="${src.dir}:${src.config.dir}" name="srcdir"/>
325 <attribute default="${build.classes.dir}" name="destdir"/>
326 <attribute default="${javac.classpath}" name="classpath"/>
328 <depend cache="${build.dir}/depcache" destdir="@{destdir}" excludes="${excludes}" includes="${includes}" srcdir="@{srcdir}">
330 <path path="@{classpath}"/>
335 <macrodef name="force-recompile" uri="http://www.netbeans.org/ns/j2se-project/3">
336 <attribute default="${build.classes.dir}" name="destdir"/>
338 <fail unless="javac.includes">Must set javac.includes</fail>
339 <pathconvert pathsep="${line.separator}" property="javac.includes.binary">
341 <filelist dir="@{destdir}" files="${javac.includes}"/>
343 <globmapper from="*.java" to="*.class"/>
345 <tempfile deleteonexit="true" property="javac.includesfile.binary"/>
346 <echo file="${javac.includesfile.binary}" message="${javac.includes.binary}"/>
348 <files includesfile="${javac.includesfile.binary}"/>
351 <fileset file="${javac.includesfile.binary}"/>
356 <target if="${junit.available}" name="-init-macrodef-junit-init">
357 <condition else="false" property="nb.junit.batch" value="true">
359 <istrue value="${junit.available}"/>
361 <isset property="test.method"/>
365 <condition else="false" property="nb.junit.single" value="true">
367 <istrue value="${junit.available}"/>
368 <isset property="test.method"/>
372 <target name="-init-test-properties">
373 <property name="test.binaryincludes" value="<nothing>"/>
374 <property name="test.binarytestincludes" value=""/>
375 <property name="test.binaryexcludes" value=""/>
377 <target if="${nb.junit.single}" name="-init-macrodef-junit-single" unless="${nb.junit.batch}">
378 <macrodef name="junit" uri="http://www.netbeans.org/ns/j2se-project/3">
379 <attribute default="${includes}" name="includes"/>
380 <attribute default="${excludes}" name="excludes"/>
381 <attribute default="**" name="testincludes"/>
382 <attribute default="" name="testmethods"/>
383 <element name="customize" optional="true"/>
385 <property name="junit.forkmode" value="perTest"/>
386 <junit dir="${work.dir}" errorproperty="tests.failed" failureproperty="tests.failed" fork="true" forkmode="${junit.forkmode}" showoutput="true" tempdir="${build.dir}">
387 <test methods="@{testmethods}" name="@{testincludes}" todir="${build.test.results.dir}"/>
389 <propertyref prefix="test-sys-prop."/>
390 <mapper from="test-sys-prop.*" to="*" type="glob"/>
392 <formatter type="brief" usefile="false"/>
393 <formatter type="xml"/>
394 <jvmarg value="-ea"/>
400 <target depends="-init-test-properties" if="${nb.junit.batch}" name="-init-macrodef-junit-batch" unless="${nb.junit.single}">
401 <macrodef name="junit" uri="http://www.netbeans.org/ns/j2se-project/3">
402 <attribute default="${includes}" name="includes"/>
403 <attribute default="${excludes}" name="excludes"/>
404 <attribute default="**" name="testincludes"/>
405 <attribute default="" name="testmethods"/>
406 <element name="customize" optional="true"/>
408 <property name="junit.forkmode" value="perTest"/>
409 <junit dir="${work.dir}" errorproperty="tests.failed" failureproperty="tests.failed" fork="true" forkmode="${junit.forkmode}" showoutput="true" tempdir="${build.dir}">
410 <batchtest todir="${build.test.results.dir}">
411 <fileset dir="${test.src.dir}" excludes="@{excludes},${excludes}" includes="@{includes}">
412 <filename name="@{testincludes}"/>
414 <fileset dir="${build.test.classes.dir}" excludes="@{excludes},${excludes},${test.binaryexcludes}" includes="${test.binaryincludes}">
415 <filename name="${test.binarytestincludes}"/>
419 <propertyref prefix="test-sys-prop."/>
420 <mapper from="test-sys-prop.*" to="*" type="glob"/>
422 <formatter type="brief" usefile="false"/>
423 <formatter type="xml"/>
424 <jvmarg value="-ea"/>
430 <target depends="-init-macrodef-junit-init,-init-macrodef-junit-single, -init-macrodef-junit-batch" if="${junit.available}" name="-init-macrodef-junit"/>
431 <target if="${testng.available}" name="-init-macrodef-testng">
432 <macrodef name="testng" uri="http://www.netbeans.org/ns/j2se-project/3">
433 <attribute default="${includes}" name="includes"/>
434 <attribute default="${excludes}" name="excludes"/>
435 <attribute default="**" name="testincludes"/>
436 <attribute default="" name="testmethods"/>
437 <element name="customize" optional="true"/>
439 <condition else="" property="testng.methods.arg" value="@{testincludes}.@{testmethods}">
440 <isset property="test.method"/>
442 <union id="test.set">
443 <fileset dir="${test.src.dir}" excludes="@{excludes},**/*.xml,${excludes}" includes="@{includes}">
444 <filename name="@{testincludes}"/>
447 <taskdef classname="org.testng.TestNGAntTask" classpath="${run.test.classpath}" name="testng"/>
448 <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="alt2xml-in-properties" testname="TestNG tests" workingDir="${work.dir}">
449 <xmlfileset dir="${build.test.classes.dir}" includes="@{testincludes}"/>
451 <propertyref prefix="test-sys-prop."/>
452 <mapper from="test-sys-prop.*" to="*" type="glob"/>
459 <target name="-init-macrodef-test-impl">
460 <macrodef name="test-impl" uri="http://www.netbeans.org/ns/j2se-project/3">
461 <attribute default="${includes}" name="includes"/>
462 <attribute default="${excludes}" name="excludes"/>
463 <attribute default="**" name="testincludes"/>
464 <attribute default="" name="testmethods"/>
465 <element implicit="true" name="customize" optional="true"/>
467 <echo>No tests executed.</echo>
471 <target depends="-init-macrodef-junit" if="${junit.available}" name="-init-macrodef-junit-impl">
472 <macrodef name="test-impl" uri="http://www.netbeans.org/ns/j2se-project/3">
473 <attribute default="${includes}" name="includes"/>
474 <attribute default="${excludes}" name="excludes"/>
475 <attribute default="**" name="testincludes"/>
476 <attribute default="" name="testmethods"/>
477 <element implicit="true" name="customize" optional="true"/>
479 <j2seproject3:junit excludes="@{excludes}" includes="@{includes}" testincludes="@{testincludes}" testmethods="@{testmethods}">
481 </j2seproject3:junit>
485 <target depends="-init-macrodef-testng" if="${testng.available}" name="-init-macrodef-testng-impl">
486 <macrodef name="test-impl" uri="http://www.netbeans.org/ns/j2se-project/3">
487 <attribute default="${includes}" name="includes"/>
488 <attribute default="${excludes}" name="excludes"/>
489 <attribute default="**" name="testincludes"/>
490 <attribute default="" name="testmethods"/>
491 <element implicit="true" name="customize" optional="true"/>
493 <j2seproject3:testng excludes="@{excludes}" includes="@{includes}" testincludes="@{testincludes}" testmethods="@{testmethods}">
495 </j2seproject3:testng>
499 <target depends="-init-macrodef-test-impl,-init-macrodef-junit-impl,-init-macrodef-testng-impl" name="-init-macrodef-test">
500 <macrodef name="test" uri="http://www.netbeans.org/ns/j2se-project/3">
501 <attribute default="${includes}" name="includes"/>
502 <attribute default="${excludes}" name="excludes"/>
503 <attribute default="**" name="testincludes"/>
504 <attribute default="" name="testmethods"/>
506 <j2seproject3:test-impl excludes="@{excludes}" includes="@{includes}" testincludes="@{testincludes}" testmethods="@{testmethods}">
509 <path path="${run.test.classpath}"/>
511 <jvmarg line="${endorsed.classpath.cmd.line.arg}"/>
512 <jvmarg line="${run.jvmargs}"/>
513 <jvmarg line="${run.jvmargs.ide}"/>
515 </j2seproject3:test-impl>
519 <target if="${junit.available}" name="-init-macrodef-junit-debug" unless="${nb.junit.batch}">
520 <macrodef name="junit-debug" uri="http://www.netbeans.org/ns/j2se-project/3">
521 <attribute default="${includes}" name="includes"/>
522 <attribute default="${excludes}" name="excludes"/>
523 <attribute default="**" name="testincludes"/>
524 <attribute default="" name="testmethods"/>
525 <element name="customize" optional="true"/>
527 <property name="junit.forkmode" value="perTest"/>
528 <junit dir="${work.dir}" errorproperty="tests.failed" failureproperty="tests.failed" fork="true" forkmode="${junit.forkmode}" showoutput="true" tempdir="${build.dir}">
529 <test methods="@{testmethods}" name="@{testincludes}" todir="${build.test.results.dir}"/>
531 <propertyref prefix="test-sys-prop."/>
532 <mapper from="test-sys-prop.*" to="*" type="glob"/>
534 <formatter type="brief" usefile="false"/>
535 <formatter type="xml"/>
536 <jvmarg value="-ea"/>
537 <jvmarg line="${debug-args-line}"/>
538 <jvmarg value="-Xrunjdwp:transport=${debug-transport},address=${jpda.address}"/>
544 <target depends="-init-test-properties" if="${nb.junit.batch}" name="-init-macrodef-junit-debug-batch">
545 <macrodef name="junit-debug" uri="http://www.netbeans.org/ns/j2se-project/3">
546 <attribute default="${includes}" name="includes"/>
547 <attribute default="${excludes}" name="excludes"/>
548 <attribute default="**" name="testincludes"/>
549 <attribute default="" name="testmethods"/>
550 <element name="customize" optional="true"/>
552 <property name="junit.forkmode" value="perTest"/>
553 <junit dir="${work.dir}" errorproperty="tests.failed" failureproperty="tests.failed" fork="true" forkmode="${junit.forkmode}" showoutput="true" tempdir="${build.dir}">
554 <batchtest todir="${build.test.results.dir}">
555 <fileset dir="${test.src.dir}" excludes="@{excludes},${excludes}" includes="@{includes}">
556 <filename name="@{testincludes}"/>
558 <fileset dir="${build.test.classes.dir}" excludes="@{excludes},${excludes},${test.binaryexcludes}" includes="${test.binaryincludes}">
559 <filename name="${test.binarytestincludes}"/>
563 <propertyref prefix="test-sys-prop."/>
564 <mapper from="test-sys-prop.*" to="*" type="glob"/>
566 <formatter type="brief" usefile="false"/>
567 <formatter type="xml"/>
568 <jvmarg value="-ea"/>
569 <jvmarg line="${debug-args-line}"/>
570 <jvmarg value="-Xrunjdwp:transport=${debug-transport},address=${jpda.address}"/>
576 <target depends="-init-macrodef-junit-debug,-init-macrodef-junit-debug-batch" if="${junit.available}" name="-init-macrodef-junit-debug-impl">
577 <macrodef name="test-debug-impl" uri="http://www.netbeans.org/ns/j2se-project/3">
578 <attribute default="${includes}" name="includes"/>
579 <attribute default="${excludes}" name="excludes"/>
580 <attribute default="**" name="testincludes"/>
581 <attribute default="" name="testmethods"/>
582 <element implicit="true" name="customize" optional="true"/>
584 <j2seproject3:junit-debug excludes="@{excludes}" includes="@{includes}" testincludes="@{testincludes}" testmethods="@{testmethods}">
586 </j2seproject3:junit-debug>
590 <target if="${testng.available}" name="-init-macrodef-testng-debug">
591 <macrodef name="testng-debug" uri="http://www.netbeans.org/ns/j2se-project/3">
592 <attribute default="${main.class}" name="testClass"/>
593 <attribute default="" name="testMethod"/>
594 <element name="customize2" optional="true"/>
596 <condition else="-testclass @{testClass}" property="test.class.or.method" value="-methods @{testClass}.@{testMethod}">
597 <isset property="test.method"/>
599 <condition else="-suitename alt2xml-in-properties -testname @{testClass} ${test.class.or.method}" property="testng.cmd.args" value="@{testClass}">
600 <matches pattern=".*\.xml" string="@{testClass}"/>
602 <delete dir="${build.test.results.dir}" quiet="true"/>
603 <mkdir dir="${build.test.results.dir}"/>
604 <j2seproject3:debug classname="org.testng.TestNG" classpath="${debug.test.classpath}">
607 <jvmarg value="-ea"/>
608 <arg line="${testng.debug.mode}"/>
609 <arg line="-d ${build.test.results.dir}"/>
610 <arg line="-listener org.testng.reporters.VerboseReporter"/>
611 <arg line="${testng.cmd.args}"/>
613 </j2seproject3:debug>
617 <target depends="-init-macrodef-testng-debug" if="${testng.available}" name="-init-macrodef-testng-debug-impl">
618 <macrodef name="testng-debug-impl" uri="http://www.netbeans.org/ns/j2se-project/3">
619 <attribute default="${main.class}" name="testClass"/>
620 <attribute default="" name="testMethod"/>
621 <element implicit="true" name="customize2" optional="true"/>
623 <j2seproject3:testng-debug testClass="@{testClass}" testMethod="@{testMethod}">
625 </j2seproject3:testng-debug>
629 <target depends="-init-macrodef-junit-debug-impl" if="${junit.available}" name="-init-macrodef-test-debug-junit">
630 <macrodef name="test-debug" uri="http://www.netbeans.org/ns/j2se-project/3">
631 <attribute default="${includes}" name="includes"/>
632 <attribute default="${excludes}" name="excludes"/>
633 <attribute default="**" name="testincludes"/>
634 <attribute default="" name="testmethods"/>
635 <attribute default="${main.class}" name="testClass"/>
636 <attribute default="" name="testMethod"/>
638 <j2seproject3:test-debug-impl excludes="@{excludes}" includes="@{includes}" testincludes="@{testincludes}" testmethods="@{testmethods}">
641 <path path="${run.test.classpath}"/>
643 <jvmarg line="${endorsed.classpath.cmd.line.arg}"/>
644 <jvmarg line="${run.jvmargs}"/>
645 <jvmarg line="${run.jvmargs.ide}"/>
647 </j2seproject3:test-debug-impl>
651 <target depends="-init-macrodef-testng-debug-impl" if="${testng.available}" name="-init-macrodef-test-debug-testng">
652 <macrodef name="test-debug" uri="http://www.netbeans.org/ns/j2se-project/3">
653 <attribute default="${includes}" name="includes"/>
654 <attribute default="${excludes}" name="excludes"/>
655 <attribute default="**" name="testincludes"/>
656 <attribute default="" name="testmethods"/>
657 <attribute default="${main.class}" name="testClass"/>
658 <attribute default="" name="testMethod"/>
660 <j2seproject3:testng-debug-impl testClass="@{testClass}" testMethod="@{testMethod}">
663 <propertyref prefix="test-sys-prop."/>
664 <mapper from="test-sys-prop.*" to="*" type="glob"/>
667 </j2seproject3:testng-debug-impl>
671 <target depends="-init-macrodef-test-debug-junit,-init-macrodef-test-debug-testng" name="-init-macrodef-test-debug"/>
673 pre NB7.2 profiling section; consider it deprecated
675 <target depends="-profile-pre-init, init, -profile-post-init, -profile-init-macrodef-profile, -profile-init-check" if="profiler.info.jvmargs.agent" name="profile-init"/>
676 <target if="profiler.info.jvmargs.agent" name="-profile-pre-init">
677 <!-- Empty placeholder for easier customization. -->
678 <!-- You can override this target in the ../build.xml file. -->
680 <target if="profiler.info.jvmargs.agent" name="-profile-post-init">
681 <!-- Empty placeholder for easier customization. -->
682 <!-- You can override this target in the ../build.xml file. -->
684 <target if="profiler.info.jvmargs.agent" name="-profile-init-macrodef-profile">
685 <macrodef name="resolve">
686 <attribute name="name"/>
687 <attribute name="value"/>
689 <property name="@{name}" value="${env.@{value}}"/>
692 <macrodef name="profile">
693 <attribute default="${main.class}" name="classname"/>
694 <element name="customize" optional="true"/>
696 <property environment="env"/>
697 <resolve name="profiler.current.path" value="${profiler.info.pathvar}"/>
698 <java classname="@{classname}" dir="${profiler.info.dir}" fork="true" jvm="${profiler.info.jvm}">
699 <jvmarg line="${endorsed.classpath.cmd.line.arg}"/>
700 <jvmarg value="${profiler.info.jvmargs.agent}"/>
701 <jvmarg line="${profiler.info.jvmargs}"/>
702 <env key="${profiler.info.pathvar}" path="${profiler.info.agentpath}:${profiler.current.path}"/>
703 <arg line="${application.args}"/>
705 <path path="${run.classpath}"/>
708 <propertyref prefix="run-sys-prop."/>
709 <mapper from="run-sys-prop.*" to="*" type="glob"/>
716 <target depends="-profile-pre-init, init, -profile-post-init, -profile-init-macrodef-profile" if="profiler.info.jvmargs.agent" name="-profile-init-check">
717 <fail unless="profiler.info.jvm">Must set JVM to use for profiling in profiler.info.jvm</fail>
718 <fail unless="profiler.info.jvmargs.agent">Must set profiler agent JVM arguments in profiler.info.jvmargs.agent</fail>
721 end of pre NB7.2 profiling section
723 <target depends="-init-debug-args" name="-init-macrodef-nbjpda">
724 <macrodef name="nbjpdastart" uri="http://www.netbeans.org/ns/j2se-project/1">
725 <attribute default="${main.class}" name="name"/>
726 <attribute default="${debug.classpath}" name="classpath"/>
727 <attribute default="" name="stopclassname"/>
729 <nbjpdastart addressproperty="jpda.address" name="@{name}" stopclassname="@{stopclassname}" transport="${debug-transport}">
731 <path path="@{classpath}"/>
736 <macrodef name="nbjpdareload" uri="http://www.netbeans.org/ns/j2se-project/1">
737 <attribute default="${build.classes.dir}" name="dir"/>
740 <fileset dir="@{dir}" includes="${fix.classes}">
741 <include name="${fix.includes}*.class"/>
747 <target name="-init-debug-args">
748 <property name="version-output" value="java version "${ant.java.version}"/>
749 <condition property="have-jdk-older-than-1.4">
751 <contains string="${version-output}" substring="java version "1.0"/>
752 <contains string="${version-output}" substring="java version "1.1"/>
753 <contains string="${version-output}" substring="java version "1.2"/>
754 <contains string="${version-output}" substring="java version "1.3"/>
757 <condition else="-Xdebug" property="debug-args-line" value="-Xdebug -Xnoagent -Djava.compiler=none">
758 <istrue value="${have-jdk-older-than-1.4}"/>
760 <condition else="dt_socket" property="debug-transport-by-os" value="dt_shmem">
761 <os family="windows"/>
763 <condition else="${debug-transport-by-os}" property="debug-transport" value="${debug.transport}">
764 <isset property="debug.transport"/>
767 <target depends="-init-debug-args" name="-init-macrodef-debug">
768 <macrodef name="debug" uri="http://www.netbeans.org/ns/j2se-project/3">
769 <attribute default="${main.class}" name="classname"/>
770 <attribute default="${debug.classpath}" name="classpath"/>
771 <element name="customize" optional="true"/>
773 <java classname="@{classname}" dir="${work.dir}" fork="true">
774 <jvmarg line="${endorsed.classpath.cmd.line.arg}"/>
775 <jvmarg line="${debug-args-line}"/>
776 <jvmarg value="-Xrunjdwp:transport=${debug-transport},address=${jpda.address}"/>
777 <jvmarg value="-Dfile.encoding=${runtime.encoding}"/>
778 <redirector errorencoding="${runtime.encoding}" inputencoding="${runtime.encoding}" outputencoding="${runtime.encoding}"/>
779 <jvmarg line="${run.jvmargs}"/>
780 <jvmarg line="${run.jvmargs.ide}"/>
782 <path path="@{classpath}"/>
785 <propertyref prefix="run-sys-prop."/>
786 <mapper from="run-sys-prop.*" to="*" type="glob"/>
793 <target name="-init-macrodef-java">
794 <macrodef name="java" uri="http://www.netbeans.org/ns/j2se-project/1">
795 <attribute default="${main.class}" name="classname"/>
796 <attribute default="${run.classpath}" name="classpath"/>
797 <attribute default="jvm" name="jvm"/>
798 <element name="customize" optional="true"/>
800 <java classname="@{classname}" dir="${work.dir}" fork="true">
801 <jvmarg line="${endorsed.classpath.cmd.line.arg}"/>
802 <jvmarg value="-Dfile.encoding=${runtime.encoding}"/>
803 <redirector errorencoding="${runtime.encoding}" inputencoding="${runtime.encoding}" outputencoding="${runtime.encoding}"/>
804 <jvmarg line="${run.jvmargs}"/>
805 <jvmarg line="${run.jvmargs.ide}"/>
807 <path path="@{classpath}"/>
810 <propertyref prefix="run-sys-prop."/>
811 <mapper from="run-sys-prop.*" to="*" type="glob"/>
818 <target name="-init-macrodef-copylibs">
819 <macrodef name="copylibs" uri="http://www.netbeans.org/ns/j2se-project/3">
820 <attribute default="${manifest.file}" name="manifest"/>
821 <element name="customize" optional="true"/>
823 <property location="${build.classes.dir}" name="build.classes.dir.resolved"/>
824 <pathconvert property="run.classpath.without.build.classes.dir">
825 <path path="${run.classpath}"/>
826 <map from="${build.classes.dir.resolved}" to=""/>
828 <pathconvert pathsep=" " property="jar.classpath">
829 <path path="${run.classpath.without.build.classes.dir}"/>
833 <replacestring from=" " to="%20"/>
835 <globmapper from="*" to="lib/*"/>
838 <taskdef classname="org.netbeans.modules.java.j2seproject.copylibstask.CopyLibs" classpath="${libs.CopyLibs.classpath}" name="copylibs"/>
839 <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}">
840 <fileset dir="${build.classes.dir}" excludes="${dist.archive.excludes}"/>
842 <attribute name="Class-Path" value="${jar.classpath}"/>
849 <target name="-init-presetdef-jar">
850 <presetdef name="jar" uri="http://www.netbeans.org/ns/j2se-project/1">
851 <jar compress="${jar.compress}" index="${jar.index}" jarfile="${dist.jar}">
852 <j2seproject1:fileset dir="${build.classes.dir}" excludes="${dist.archive.excludes}"/>
856 <target name="-init-ap-cmdline-properties">
857 <property name="annotation.processing.enabled" value="true"/>
858 <property name="annotation.processing.processors.list" value=""/>
859 <property name="annotation.processing.processor.options" value=""/>
860 <property name="annotation.processing.run.all.processors" value="true"/>
861 <property name="javac.processorpath" value="${javac.classpath}"/>
862 <property name="javac.test.processorpath" value="${javac.test.classpath}"/>
863 <condition property="ap.supported.internal" value="true">
865 <matches pattern="1\.[0-5](\..*)?" string="${javac.source}"/>
869 <target depends="-init-ap-cmdline-properties" if="ap.supported.internal" name="-init-ap-cmdline-supported">
870 <condition else="" property="ap.processors.internal" value="-processor ${annotation.processing.processors.list}">
871 <isfalse value="${annotation.processing.run.all.processors}"/>
873 <condition else="" property="ap.proc.none.internal" value="-proc:none">
874 <isfalse value="${annotation.processing.enabled}"/>
877 <target depends="-init-ap-cmdline-properties,-init-ap-cmdline-supported" name="-init-ap-cmdline">
878 <property name="ap.cmd.line.internal" value=""/>
880 <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"/>
886 <target name="-deps-jar-init" unless="built-jar.properties">
887 <property location="${build.dir}/built-jar.properties" name="built-jar.properties"/>
888 <delete file="${built-jar.properties}" quiet="true"/>
890 <target if="already.built.jar.${basedir}" name="-warn-already-built-jar">
891 <echo level="warn" message="Cycle detected: alt2xml-in-properties was already built"/>
893 <target depends="init,-deps-jar-init" name="deps-jar" unless="no.deps">
894 <mkdir dir="${build.dir}"/>
895 <touch file="${built-jar.properties}" verbose="false"/>
896 <property file="${built-jar.properties}" prefix="already.built.jar."/>
897 <antcall target="-warn-already-built-jar"/>
898 <propertyfile file="${built-jar.properties}">
899 <entry key="${basedir}" value=""/>
901 <antcall target="-maybe-call-dep">
902 <param name="call.built.properties" value="${built-jar.properties}"/>
903 <param location="${project.alt2xml-lib-input}" name="call.subproject"/>
904 <param location="${project.alt2xml-lib-input}/build.xml" name="call.script"/>
905 <param name="call.target" value="jar"/>
906 <param name="transfer.built-jar.properties" value="${built-jar.properties}"/>
907 <param name="transfer.not.archive.disabled" value="true"/>
910 <target depends="init,-check-automatic-build,-clean-after-automatic-build" name="-verify-automatic-build"/>
911 <target depends="init" name="-check-automatic-build">
912 <available file="${build.classes.dir}/.netbeans_automatic_build" property="netbeans.automatic.build"/>
914 <target depends="init" if="netbeans.automatic.build" name="-clean-after-automatic-build">
915 <antcall target="clean"/>
917 <target depends="init,deps-jar" name="-pre-pre-compile">
918 <mkdir dir="${build.classes.dir}"/>
920 <target name="-pre-compile">
921 <!-- Empty placeholder for easier customization. -->
922 <!-- You can override this target in the ../build.xml file. -->
924 <target if="do.depend.true" name="-compile-depend">
925 <pathconvert property="build.generated.subdirs">
926 <dirset dir="${build.generated.sources.dir}" erroronmissingdir="false">
930 <j2seproject3:depend srcdir="${src.dir}:${src.config.dir}:${build.generated.subdirs}"/>
932 <target depends="init,deps-jar,-pre-pre-compile,-pre-compile, -copy-persistence-xml,-compile-depend" if="have.sources" name="-do-compile">
933 <j2seproject3:javac gensrcdir="${build.generated.sources.dir}"/>
934 <copy todir="${build.classes.dir}">
935 <fileset dir="${src.dir}" excludes="${build.classes.excludes},${excludes}" includes="${includes}"/>
936 <fileset dir="${src.config.dir}" excludes="${build.classes.excludes},${excludes}" includes="${includes}"/>
939 <target if="has.persistence.xml" name="-copy-persistence-xml">
940 <mkdir dir="${build.classes.dir}/META-INF"/>
941 <copy todir="${build.classes.dir}/META-INF">
942 <fileset dir="${meta.inf.dir}" includes="persistence.xml orm.xml"/>
945 <target name="-post-compile">
946 <!-- Empty placeholder for easier customization. -->
947 <!-- You can override this target in the ../build.xml file. -->
949 <target depends="init,deps-jar,-verify-automatic-build,-pre-pre-compile,-pre-compile,-do-compile,-post-compile" description="Compile project." name="compile"/>
950 <target name="-pre-compile-single">
951 <!-- Empty placeholder for easier customization. -->
952 <!-- You can override this target in the ../build.xml file. -->
954 <target depends="init,deps-jar,-pre-pre-compile" name="-do-compile-single">
955 <fail unless="javac.includes">Must select some files in the IDE or set javac.includes</fail>
956 <j2seproject3:force-recompile/>
957 <j2seproject3:javac excludes="" gensrcdir="${build.generated.sources.dir}" includes="${javac.includes}" sourcepath="${src.dir}:${src.config.dir}"/>
959 <target name="-post-compile-single">
960 <!-- Empty placeholder for easier customization. -->
961 <!-- You can override this target in the ../build.xml file. -->
963 <target depends="init,deps-jar,-verify-automatic-build,-pre-pre-compile,-pre-compile-single,-do-compile-single,-post-compile-single" name="compile-single"/>
969 <target depends="init" name="-pre-pre-jar">
970 <dirname file="${dist.jar}" property="dist.jar.dir"/>
971 <mkdir dir="${dist.jar.dir}"/>
973 <target name="-pre-jar">
974 <!-- Empty placeholder for easier customization. -->
975 <!-- You can override this target in the ../build.xml file. -->
977 <target depends="init" if="do.archive" name="-do-jar-create-manifest" unless="manifest.available">
978 <tempfile deleteonexit="true" destdir="${build.dir}" property="tmp.manifest.file"/>
979 <touch file="${tmp.manifest.file}" verbose="false"/>
981 <target depends="init" if="do.archive+manifest.available" name="-do-jar-copy-manifest">
982 <tempfile deleteonexit="true" destdir="${build.dir}" property="tmp.manifest.file"/>
983 <copy file="${manifest.file}" tofile="${tmp.manifest.file}"/>
985 <target depends="init,-do-jar-create-manifest,-do-jar-copy-manifest" if="do.archive+main.class.available" name="-do-jar-set-mainclass">
986 <manifest file="${tmp.manifest.file}" mode="update">
987 <attribute name="Main-Class" value="${main.class}"/>
990 <target depends="init,-do-jar-create-manifest,-do-jar-copy-manifest" if="do.archive+profile.available" name="-do-jar-set-profile">
991 <manifest file="${tmp.manifest.file}" mode="update">
992 <attribute name="Profile" value="${javac.profile}"/>
995 <target depends="init,-do-jar-create-manifest,-do-jar-copy-manifest" if="do.archive+splashscreen.available" name="-do-jar-set-splashscreen">
996 <basename file="${application.splash}" property="splashscreen.basename"/>
997 <mkdir dir="${build.classes.dir}/META-INF"/>
998 <copy failonerror="false" file="${application.splash}" todir="${build.classes.dir}/META-INF"/>
999 <manifest file="${tmp.manifest.file}" mode="update">
1000 <attribute name="SplashScreen-Image" value="META-INF/${splashscreen.basename}"/>
1003 <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">
1004 <j2seproject3:copylibs manifest="${tmp.manifest.file}"/>
1005 <echo level="info">To run this application from the command line without Ant, try:</echo>
1006 <property location="${dist.jar}" name="dist.jar.resolved"/>
1007 <echo level="info">java -jar "${dist.jar.resolved}"</echo>
1009 <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">
1010 <j2seproject1:jar manifest="${tmp.manifest.file}"/>
1011 <property location="${build.classes.dir}" name="build.classes.dir.resolved"/>
1012 <property location="${dist.jar}" name="dist.jar.resolved"/>
1013 <pathconvert property="run.classpath.with.dist.jar">
1014 <path path="${run.classpath}"/>
1015 <map from="${build.classes.dir.resolved}" to="${dist.jar.resolved}"/>
1017 <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}">
1018 <isset property="main.class.available"/>
1020 <condition else="debug" property="jar.usage.level" value="info">
1021 <isset property="main.class.available"/>
1023 <echo level="${jar.usage.level}" message="${jar.usage.message}"/>
1025 <target depends="-do-jar-copylibs" if="do.archive" name="-do-jar-delete-manifest">
1027 <fileset file="${tmp.manifest.file}"/>
1030 <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"/>
1031 <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"/>
1032 <target name="-post-jar">
1033 <!-- Empty placeholder for easier customization. -->
1034 <!-- You can override this target in the ../build.xml file. -->
1036 <target depends="init,compile,-pre-jar,-do-jar-without-libraries,-do-jar-with-libraries,-post-jar" name="-do-jar"/>
1037 <target depends="init,compile,-pre-jar,-do-jar,-post-jar" description="Build JAR." name="jar"/>
1043 <target depends="init,compile" description="Run a main class." name="run">
1046 <arg line="${application.args}"/>
1048 </j2seproject1:java>
1050 <target name="-do-not-recompile">
1051 <property name="javac.includes.binary" value=""/>
1053 <target depends="init,compile-single" name="run-single">
1054 <fail unless="run.class">Must select one file in the IDE or set run.class</fail>
1055 <j2seproject1:java classname="${run.class}"/>
1057 <target depends="init,compile-test-single" name="run-test-with-main">
1058 <fail unless="run.class">Must select one file in the IDE or set run.class</fail>
1059 <j2seproject1:java classname="${run.class}" classpath="${run.test.classpath}"/>
1066 <target depends="init" if="netbeans.home" name="-debug-start-debugger">
1067 <j2seproject1:nbjpdastart name="${debug.class}"/>
1069 <target depends="init" if="netbeans.home" name="-debug-start-debugger-main-test">
1070 <j2seproject1:nbjpdastart classpath="${debug.test.classpath}" name="${debug.class}"/>
1072 <target depends="init,compile" name="-debug-start-debuggee">
1073 <j2seproject3:debug>
1075 <arg line="${application.args}"/>
1077 </j2seproject3:debug>
1079 <target depends="init,compile,-debug-start-debugger,-debug-start-debuggee" description="Debug project in IDE." if="netbeans.home" name="debug"/>
1080 <target depends="init" if="netbeans.home" name="-debug-start-debugger-stepinto">
1081 <j2seproject1:nbjpdastart stopclassname="${main.class}"/>
1083 <target depends="init,compile,-debug-start-debugger-stepinto,-debug-start-debuggee" if="netbeans.home" name="debug-stepinto"/>
1084 <target depends="init,compile-single" if="netbeans.home" name="-debug-start-debuggee-single">
1085 <fail unless="debug.class">Must select one file in the IDE or set debug.class</fail>
1086 <j2seproject3:debug classname="${debug.class}"/>
1088 <target depends="init,compile-single,-debug-start-debugger,-debug-start-debuggee-single" if="netbeans.home" name="debug-single"/>
1089 <target depends="init,compile-test-single" if="netbeans.home" name="-debug-start-debuggee-main-test">
1090 <fail unless="debug.class">Must select one file in the IDE or set debug.class</fail>
1091 <j2seproject3:debug classname="${debug.class}" classpath="${debug.test.classpath}"/>
1093 <target depends="init,compile-test-single,-debug-start-debugger-main-test,-debug-start-debuggee-main-test" if="netbeans.home" name="debug-test-with-main"/>
1094 <target depends="init" name="-pre-debug-fix">
1095 <fail unless="fix.includes">Must set fix.includes</fail>
1096 <property name="javac.includes" value="${fix.includes}.java"/>
1098 <target depends="init,-pre-debug-fix,compile-single" if="netbeans.home" name="-do-debug-fix">
1099 <j2seproject1:nbjpdareload/>
1101 <target depends="init,-pre-debug-fix,-do-debug-fix" if="netbeans.home" name="debug-fix"/>
1108 pre NB7.2 profiler integration
1110 <target depends="profile-init,compile" description="Profile a project in the IDE." if="profiler.info.jvmargs.agent" name="-profile-pre72">
1111 <fail unless="netbeans.home">This target only works when run from inside the NetBeans IDE.</fail>
1114 <path path="${run.classpath}"/>
1119 <target depends="profile-init,compile-single" description="Profile a selected class in the IDE." if="profiler.info.jvmargs.agent" name="-profile-single-pre72">
1120 <fail unless="profile.class">Must select one file in the IDE or set profile.class</fail>
1121 <fail unless="netbeans.home">This target only works when run from inside the NetBeans IDE.</fail>
1124 <path path="${run.classpath}"/>
1127 <profile classname="${profile.class}"/>
1129 <target depends="profile-init,compile-single" if="profiler.info.jvmargs.agent" name="-profile-applet-pre72">
1130 <fail unless="netbeans.home">This target only works when run from inside the NetBeans IDE.</fail>
1133 <path path="${run.classpath}"/>
1136 <profile classname="sun.applet.AppletViewer">
1138 <arg value="${applet.url}"/>
1142 <target depends="profile-init,compile-test-single" if="profiler.info.jvmargs.agent" name="-profile-test-single-pre72">
1143 <fail unless="netbeans.home">This target only works when run from inside the NetBeans IDE.</fail>
1146 <path path="${run.test.classpath}"/>
1149 <junit dir="${profiler.info.dir}" errorproperty="tests.failed" failureproperty="tests.failed" fork="true" jvm="${profiler.info.jvm}" showoutput="true">
1150 <env key="${profiler.info.pathvar}" path="${profiler.info.agentpath}:${profiler.current.path}"/>
1151 <jvmarg value="${profiler.info.jvmargs.agent}"/>
1152 <jvmarg line="${profiler.info.jvmargs}"/>
1153 <test name="${profile.class}"/>
1155 <path path="${run.test.classpath}"/>
1158 <propertyref prefix="test-sys-prop."/>
1159 <mapper from="test-sys-prop.*" to="*" type="glob"/>
1161 <formatter type="brief" usefile="false"/>
1162 <formatter type="xml"/>
1166 end of pre NB72 profiling section
1168 <target if="netbeans.home" name="-profile-check">
1169 <condition property="profiler.configured">
1171 <contains casesensitive="true" string="${run.jvmargs.ide}" substring="-agentpath:"/>
1172 <contains casesensitive="true" string="${run.jvmargs.ide}" substring="-javaagent:"/>
1176 <target depends="-profile-check,-profile-pre72" description="Profile a project in the IDE." if="profiler.configured" name="profile" unless="profiler.info.jvmargs.agent">
1178 <antcall target="run"/>
1180 <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">
1181 <fail unless="run.class">Must select one file in the IDE or set run.class</fail>
1183 <antcall target="run-single"/>
1185 <target depends="-profile-test-single-pre72" description="Profile a selected test in the IDE." name="profile-test-single"/>
1186 <target depends="-profile-check" description="Profile a selected test in the IDE." if="profiler.configured" name="profile-test" unless="profiler.info.jvmargs">
1187 <fail unless="test.includes">Must select some files in the IDE or set test.includes</fail>
1189 <antcall target="test-single"/>
1191 <target depends="-profile-check" description="Profile a selected class in the IDE." if="profiler.configured" name="profile-test-with-main">
1192 <fail unless="run.class">Must select one file in the IDE or set run.class</fail>
1194 <antcal target="run-test-with-main"/>
1196 <target depends="-profile-check,-profile-applet-pre72" if="profiler.configured" name="profile-applet" unless="profiler.info.jvmargs.agent">
1197 <fail unless="applet.url">Must select one file in the IDE or set applet.url</fail>
1199 <antcall target="run-applet"/>
1206 <target depends="init" if="have.sources" name="-javadoc-build">
1207 <mkdir dir="${dist.javadoc.dir}"/>
1208 <condition else="" property="javadoc.endorsed.classpath.cmd.line.arg" value="-J${endorsed.classpath.cmd.line.arg}">
1210 <isset property="endorsed.classpath.cmd.line.arg"/>
1212 <equals arg1="${endorsed.classpath.cmd.line.arg}" arg2=""/>
1216 <condition else="" property="bug5101868workaround" value="*.java">
1217 <matches pattern="1\.[56](\..*)?" string="${java.version}"/>
1219 <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}">
1221 <path path="${javac.classpath}"/>
1223 <fileset dir="${src.dir}" excludes="${bug5101868workaround},${excludes}" includes="${includes}">
1224 <filename name="**/*.java"/>
1226 <fileset dir="${src.config.dir}" excludes="${bug5101868workaround},${excludes}" includes="${includes}">
1227 <filename name="**/*.java"/>
1229 <fileset dir="${build.generated.sources.dir}" erroronmissingdir="false">
1230 <include name="**/*.java"/>
1231 <exclude name="*.java"/>
1233 <arg line="${javadoc.endorsed.classpath.cmd.line.arg}"/>
1235 <copy todir="${dist.javadoc.dir}">
1236 <fileset dir="${src.dir}" excludes="${excludes}" includes="${includes}">
1237 <filename name="**/doc-files/**"/>
1239 <fileset dir="${src.config.dir}" excludes="${excludes}" includes="${includes}">
1240 <filename name="**/doc-files/**"/>
1242 <fileset dir="${build.generated.sources.dir}" erroronmissingdir="false">
1243 <include name="**/doc-files/**"/>
1247 <target depends="init,-javadoc-build" if="netbeans.home" name="-javadoc-browse" unless="no.javadoc.preview">
1248 <nbbrowse file="${dist.javadoc.dir}/index.html"/>
1250 <target depends="init,-javadoc-build,-javadoc-browse" description="Build Javadoc." name="javadoc"/>
1252 =========================
1253 TEST COMPILATION SECTION
1254 =========================
1256 <target depends="init,compile" if="have.tests" name="-pre-pre-compile-test">
1257 <mkdir dir="${build.test.classes.dir}"/>
1259 <target name="-pre-compile-test">
1260 <!-- Empty placeholder for easier customization. -->
1261 <!-- You can override this target in the ../build.xml file. -->
1263 <target if="do.depend.true" name="-compile-test-depend">
1264 <j2seproject3:depend classpath="${javac.test.classpath}" destdir="${build.test.classes.dir}" srcdir="${test.src.dir}"/>
1266 <target depends="init,deps-jar,compile,-pre-pre-compile-test,-pre-compile-test,-compile-test-depend" if="have.tests" name="-do-compile-test">
1267 <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}"/>
1268 <copy todir="${build.test.classes.dir}">
1269 <fileset dir="${test.src.dir}" excludes="${build.classes.excludes},${excludes}" includes="${includes}"/>
1272 <target name="-post-compile-test">
1273 <!-- Empty placeholder for easier customization. -->
1274 <!-- You can override this target in the ../build.xml file. -->
1276 <target depends="init,compile,-pre-pre-compile-test,-pre-compile-test,-do-compile-test,-post-compile-test" name="compile-test"/>
1277 <target name="-pre-compile-test-single">
1278 <!-- Empty placeholder for easier customization. -->
1279 <!-- You can override this target in the ../build.xml file. -->
1281 <target depends="init,deps-jar,compile,-pre-pre-compile-test,-pre-compile-test-single" if="have.tests" name="-do-compile-test-single">
1282 <fail unless="javac.includes">Must select some files in the IDE or set javac.includes</fail>
1283 <j2seproject3:force-recompile destdir="${build.test.classes.dir}"/>
1284 <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}"/>
1285 <copy todir="${build.test.classes.dir}">
1286 <fileset dir="${test.src.dir}" excludes="${build.classes.excludes},${excludes}" includes="${includes}"/>
1289 <target name="-post-compile-test-single">
1290 <!-- Empty placeholder for easier customization. -->
1291 <!-- You can override this target in the ../build.xml file. -->
1293 <target depends="init,compile,-pre-pre-compile-test,-pre-compile-test-single,-do-compile-test-single,-post-compile-test-single" name="compile-test-single"/>
1295 =======================
1296 TEST EXECUTION SECTION
1297 =======================
1299 <target depends="init" if="have.tests" name="-pre-test-run">
1300 <mkdir dir="${build.test.results.dir}"/>
1302 <target depends="init,compile-test,-pre-test-run" if="have.tests" name="-do-test-run">
1303 <j2seproject3:test includes="${includes}" testincludes="**/*Test.java"/>
1305 <target depends="init,compile-test,-pre-test-run,-do-test-run" if="have.tests" name="-post-test-run">
1306 <fail if="tests.failed" unless="ignore.failing.tests">Some tests failed; see details above.</fail>
1308 <target depends="init" if="have.tests" name="test-report"/>
1309 <target depends="init" if="netbeans.home+have.tests" name="-test-browse"/>
1310 <target depends="init,compile-test,-pre-test-run,-do-test-run,test-report,-post-test-run,-test-browse" description="Run unit tests." name="test"/>
1311 <target depends="init" if="have.tests" name="-pre-test-run-single">
1312 <mkdir dir="${build.test.results.dir}"/>
1314 <target depends="init,compile-test-single,-pre-test-run-single" if="have.tests" name="-do-test-run-single">
1315 <fail unless="test.includes">Must select some files in the IDE or set test.includes</fail>
1316 <j2seproject3:test excludes="" includes="${test.includes}" testincludes="${test.includes}"/>
1318 <target depends="init,compile-test-single,-pre-test-run-single,-do-test-run-single" if="have.tests" name="-post-test-run-single">
1319 <fail if="tests.failed" unless="ignore.failing.tests">Some tests failed; see details above.</fail>
1321 <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"/>
1322 <target depends="init,compile-test-single,-pre-test-run-single" if="have.tests" name="-do-test-run-single-method">
1323 <fail unless="test.class">Must select some files in the IDE or set test.class</fail>
1324 <fail unless="test.method">Must select some method in the IDE or set test.method</fail>
1325 <j2seproject3:test excludes="" includes="${javac.includes}" testincludes="${test.class}" testmethods="${test.method}"/>
1327 <target depends="init,compile-test-single,-pre-test-run-single,-do-test-run-single-method" if="have.tests" name="-post-test-run-single-method">
1328 <fail if="tests.failed" unless="ignore.failing.tests">Some tests failed; see details above.</fail>
1330 <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"/>
1332 =======================
1333 TEST DEBUGGING SECTION
1334 =======================
1336 <target depends="init,compile-test-single,-pre-test-run-single" if="have.tests" name="-debug-start-debuggee-test">
1337 <fail unless="test.class">Must select one file in the IDE or set test.class</fail>
1338 <j2seproject3:test-debug excludes="" includes="${javac.includes}" testClass="${test.class}" testincludes="${javac.includes}"/>
1340 <target depends="init,compile-test-single,-pre-test-run-single" if="have.tests" name="-debug-start-debuggee-test-method">
1341 <fail unless="test.class">Must select one file in the IDE or set test.class</fail>
1342 <fail unless="test.method">Must select some method in the IDE or set test.method</fail>
1343 <j2seproject3:test-debug excludes="" includes="${javac.includes}" testClass="${test.class}" testMethod="${test.method}" testincludes="${test.class}" testmethods="${test.method}"/>
1345 <target depends="init,compile-test" if="netbeans.home+have.tests" name="-debug-start-debugger-test">
1346 <j2seproject1:nbjpdastart classpath="${debug.test.classpath}" name="${test.class}"/>
1348 <target depends="init,compile-test-single,-debug-start-debugger-test,-debug-start-debuggee-test" name="debug-test"/>
1349 <target depends="init,compile-test-single,-debug-start-debugger-test,-debug-start-debuggee-test-method" name="debug-test-method"/>
1350 <target depends="init,-pre-debug-fix,compile-test-single" if="netbeans.home" name="-do-debug-fix-test">
1351 <j2seproject1:nbjpdareload dir="${build.test.classes.dir}"/>
1353 <target depends="init,-pre-debug-fix,-do-debug-fix-test" if="netbeans.home" name="debug-fix-test"/>
1355 =========================
1356 APPLET EXECUTION SECTION
1357 =========================
1359 <target depends="init,compile-single" name="run-applet">
1360 <fail unless="applet.url">Must select one file in the IDE or set applet.url</fail>
1361 <j2seproject1:java classname="sun.applet.AppletViewer">
1363 <arg value="${applet.url}"/>
1365 </j2seproject1:java>
1368 =========================
1369 APPLET DEBUGGING SECTION
1370 =========================
1372 <target depends="init,compile-single" if="netbeans.home" name="-debug-start-debuggee-applet">
1373 <fail unless="applet.url">Must select one file in the IDE or set applet.url</fail>
1374 <j2seproject3:debug classname="sun.applet.AppletViewer">
1376 <arg value="${applet.url}"/>
1378 </j2seproject3:debug>
1380 <target depends="init,compile-single,-debug-start-debugger,-debug-start-debuggee-applet" if="netbeans.home" name="debug-applet"/>
1386 <target name="-deps-clean-init" unless="built-clean.properties">
1387 <property location="${build.dir}/built-clean.properties" name="built-clean.properties"/>
1388 <delete file="${built-clean.properties}" quiet="true"/>
1390 <target if="already.built.clean.${basedir}" name="-warn-already-built-clean">
1391 <echo level="warn" message="Cycle detected: alt2xml-in-properties was already built"/>
1393 <target depends="init,-deps-clean-init" name="deps-clean" unless="no.deps">
1394 <mkdir dir="${build.dir}"/>
1395 <touch file="${built-clean.properties}" verbose="false"/>
1396 <property file="${built-clean.properties}" prefix="already.built.clean."/>
1397 <antcall target="-warn-already-built-clean"/>
1398 <propertyfile file="${built-clean.properties}">
1399 <entry key="${basedir}" value=""/>
1401 <antcall target="-maybe-call-dep">
1402 <param name="call.built.properties" value="${built-clean.properties}"/>
1403 <param location="${project.alt2xml-lib-input}" name="call.subproject"/>
1404 <param location="${project.alt2xml-lib-input}/build.xml" name="call.script"/>
1405 <param name="call.target" value="clean"/>
1406 <param name="transfer.built-clean.properties" value="${built-clean.properties}"/>
1407 <param name="transfer.not.archive.disabled" value="true"/>
1410 <target depends="init" name="-do-clean">
1411 <delete dir="${build.dir}"/>
1412 <delete dir="${dist.dir}" followsymlinks="false" includeemptydirs="true"/>
1414 <target name="-post-clean">
1415 <!-- Empty placeholder for easier customization. -->
1416 <!-- You can override this target in the ../build.xml file. -->
1418 <target depends="init,deps-clean,-do-clean,-post-clean" description="Clean build products." name="clean"/>
1419 <target name="-check-call-dep">
1420 <property file="${call.built.properties}" prefix="already.built."/>
1421 <condition property="should.call.dep">
1424 <isset property="already.built.${call.subproject}"/>
1426 <available file="${call.script}"/>
1430 <target depends="-check-call-dep" if="should.call.dep" name="-maybe-call-dep">
1431 <ant antfile="${call.script}" inheritall="false" target="${call.target}">
1433 <propertyref prefix="transfer."/>
1434 <mapper from="transfer.*" to="*" type="glob"/>