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:
if=
"ant:if" 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" xmlns:
unless=
"ant:unless" basedir=
".." default=
"default" name=
"Habeas-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 name=
"-pre-init-libraries">
46 <property location=
"./lib/nblibraries.properties" name=
"libraries.path"/>
47 <dirname file=
"${libraries.path}" property=
"libraries.dir.nativedirsep"/>
48 <pathconvert dirsep=
"/" property=
"libraries.dir">
49 <path path=
"${libraries.dir.nativedirsep}"/>
51 <basename file=
"${libraries.path}" property=
"libraries.basename" suffix=
".properties"/>
52 <available file=
"${libraries.dir}/${libraries.basename}-private.properties" property=
"private.properties.available"/>
54 <target depends=
"-pre-init-libraries" if=
"private.properties.available" name=
"-init-private-libraries">
55 <loadproperties encoding=
"ISO-8859-1" srcfile=
"${libraries.dir}/${libraries.basename}-private.properties">
57 <replacestring from=
"$${base}" to=
"${libraries.dir}"/>
62 <target depends=
"-pre-init,-init-private,-init-private-libraries" name=
"-init-libraries">
63 <loadproperties encoding=
"ISO-8859-1" srcfile=
"${libraries.path}">
65 <replacestring from=
"$${base}" to=
"${libraries.dir}"/>
70 <target depends=
"-pre-init,-init-private,-init-libraries" name=
"-init-user">
71 <property file=
"${user.properties.file}"/>
72 <!-- The two properties below are usually overridden -->
73 <!-- by the active platform. Just a fallback. -->
74 <property name=
"default.javac.source" value=
"1.8"/>
75 <property name=
"default.javac.target" value=
"1.8"/>
77 <target depends=
"-pre-init,-init-private,-init-libraries,-init-user" name=
"-init-project">
78 <property file=
"nbproject/configs/${config}.properties"/>
79 <property file=
"nbproject/project.properties"/>
81 <target name=
"-init-modules-supported">
82 <condition property=
"modules.supported.internal" value=
"true">
84 <matches pattern=
"1\.[0-8](\..*)?" string=
"${javac.source}"/>
88 <target depends=
"-init-modules-supported" if=
"modules.supported.internal" name=
"-init-macrodef-modulename">
89 <macrodef name=
"modulename" uri=
"http://www.netbeans.org/ns/j2se-project/3">
90 <attribute name=
"property"/>
91 <attribute name=
"sourcepath"/>
93 <loadresource property=
"@{property}" quiet=
"true">
94 <javaresource classpath=
"@{sourcepath}" name=
"module-info.java" parentFirst=
"false"/>
98 <regexp pattern=
"module .* \{"/>
102 <replaceregex flags=
"s" pattern=
"(\s*module\s+)(\S*)(\s*\{.*)" replace=
"\2"/>
110 <target depends=
"-init-modules-supported,-init-macrodef-modulename" if=
"modules.supported.internal" name=
"-init-source-module-properties">
111 <fail message=
"Java 9 support requires Ant 1.10.0 or higher.">
114 <antversion atleast=
"1.10.0"/>
118 <j2seproject3:modulename property=
"module.name" sourcepath=
"${src.dir}"/>
119 <condition property=
"named.module.internal">
121 <isset property=
"module.name"/>
122 <length length=
"0" string=
"${module.name}" when=
"greater"/>
125 <condition property=
"unnamed.module.internal">
127 <isset property=
"named.module.internal"/>
130 <property name=
"javac.modulepath" value=
""/>
131 <property name=
"run.modulepath" value=
"${javac.modulepath}"/>
132 <property name=
"module.build.classes.dir" value=
"${build.classes.dir}"/>
133 <property name=
"debug.modulepath" value=
"${run.modulepath}"/>
134 <property name=
"javac.upgrademodulepath" value=
""/>
135 <property name=
"run.upgrademodulepath" value=
"${javac.upgrademodulepath}"/>
136 <condition else=
"" property=
"javac.systemmodulepath.cmd.line.arg" value=
"--system '${javac.systemmodulepath}'">
138 <isset property=
"javac.systemmodulepath"/>
139 <length length=
"0" string=
"${javac.systemmodulepath}" when=
"greater"/>
142 <property name=
"dist.jlink.dir" value=
"${dist.dir}/jlink"/>
143 <property name=
"dist.jlink.output" value=
"${dist.jlink.dir}/${application.title}"/>
144 <property name=
"module.name" value=
""/>
146 <target depends=
"-pre-init,-init-private,-init-libraries,-init-user,-init-project,-init-macrodef-property,-init-modules-supported" name=
"-do-init">
147 <property name=
"platform.java" value=
"${java.home}/bin/java"/>
148 <available file=
"${manifest.file}" property=
"manifest.available"/>
149 <condition property=
"splashscreen.available">
152 <equals arg1=
"${application.splash}" arg2=
"" trim=
"true"/>
154 <available file=
"${application.splash}"/>
157 <condition property=
"main.class.available">
159 <isset property=
"main.class"/>
161 <equals arg1=
"${main.class}" arg2=
"" trim=
"true"/>
165 <condition property=
"profile.available">
167 <isset property=
"javac.profile"/>
168 <length length=
"0" string=
"${javac.profile}" when=
"greater"/>
170 <matches pattern=
"1\.[0-7](\..*)?" string=
"${javac.source}"/>
174 <condition property=
"do.archive">
177 <istrue value=
"${jar.archive.disabled}"/>
179 <istrue value=
"${not.archive.disabled}"/>
182 <condition property=
"do.archive+manifest.available">
184 <isset property=
"manifest.available"/>
185 <istrue value=
"${do.archive}"/>
188 <condition property=
"do.archive+main.class.available">
190 <isset property=
"main.class.available"/>
191 <istrue value=
"${do.archive}"/>
194 <condition property=
"do.archive+splashscreen.available">
196 <isset property=
"splashscreen.available"/>
197 <istrue value=
"${do.archive}"/>
200 <condition property=
"do.archive+profile.available">
202 <isset property=
"profile.available"/>
203 <istrue value=
"${do.archive}"/>
206 <condition property=
"have.tests">
208 <available file=
"${test.src.dir}"/>
211 <condition property=
"have.sources">
213 <available file=
"${src.dir}"/>
216 <condition property=
"netbeans.home+have.tests">
218 <isset property=
"netbeans.home"/>
219 <isset property=
"have.tests"/>
222 <condition property=
"no.javadoc.preview">
224 <isset property=
"javadoc.preview"/>
225 <isfalse value=
"${javadoc.preview}"/>
228 <property name=
"run.jvmargs" value=
""/>
229 <property name=
"run.jvmargs.ide" value=
""/>
230 <property name=
"javac.compilerargs" value=
""/>
231 <property name=
"work.dir" value=
"${basedir}"/>
232 <condition property=
"no.deps">
234 <istrue value=
"${no.dependencies}"/>
237 <property name=
"javac.debug" value=
"true"/>
238 <property name=
"javadoc.preview" value=
"true"/>
239 <property name=
"application.args" value=
""/>
240 <property name=
"source.encoding" value=
"${file.encoding}"/>
241 <property name=
"runtime.encoding" value=
"${source.encoding}"/>
242 <property name=
"manifest.encoding" value=
"${source.encoding}"/>
243 <condition property=
"javadoc.encoding.used" value=
"${javadoc.encoding}">
245 <isset property=
"javadoc.encoding"/>
247 <equals arg1=
"${javadoc.encoding}" arg2=
""/>
251 <property name=
"javadoc.encoding.used" value=
"${source.encoding}"/>
252 <property name=
"includes" value=
"**"/>
253 <property name=
"excludes" value=
""/>
254 <property name=
"do.depend" value=
"false"/>
255 <condition property=
"do.depend.true">
256 <istrue value=
"${do.depend}"/>
258 <path id=
"endorsed.classpath.path" path=
"${endorsed.classpath}"/>
259 <condition else=
"" property=
"endorsed.classpath.cmd.line.arg" value=
"-Xbootclasspath/p:'${toString:endorsed.classpath.path}'">
261 <isset property=
"endorsed.classpath"/>
263 <equals arg1=
"${endorsed.classpath}" arg2=
"" trim=
"true"/>
267 <condition else=
"" property=
"javac.profile.cmd.line.arg" value=
"-profile ${javac.profile}">
268 <isset property=
"profile.available"/>
270 <condition else=
"false" property=
"jdkBug6558476">
272 <matches pattern=
"1\.[56]" string=
"${java.specification.version}"/>
278 <condition else=
"false" property=
"javac.fork">
280 <istrue value=
"${jdkBug6558476}"/>
281 <istrue value=
"${javac.external.vm}"/>
284 <property name=
"jar.index" value=
"false"/>
285 <property name=
"jar.index.metainf" value=
"${jar.index}"/>
286 <property name=
"copylibs.rebase" value=
"true"/>
287 <available file=
"${meta.inf.dir}/persistence.xml" property=
"has.persistence.xml"/>
288 <condition property=
"junit.available">
290 <available classname=
"org.junit.Test" classpath=
"${run.test.classpath}"/>
291 <available classname=
"junit.framework.Test" classpath=
"${run.test.classpath}"/>
294 <condition property=
"testng.available">
295 <available classname=
"org.testng.annotations.Test" classpath=
"${run.test.classpath}"/>
297 <condition property=
"junit+testng.available">
299 <istrue value=
"${junit.available}"/>
300 <istrue value=
"${testng.available}"/>
303 <condition else=
"testng" property=
"testng.mode" value=
"mixed">
304 <istrue value=
"${junit+testng.available}"/>
306 <condition else=
"" property=
"testng.debug.mode" value=
"-mixed">
307 <istrue value=
"${junit+testng.available}"/>
309 <property name=
"java.failonerror" value=
"true"/>
311 <target name=
"-post-init">
312 <!-- Empty placeholder for easier customization. -->
313 <!-- You can override this target in the ../build.xml file. -->
315 <target depends=
"-pre-init,-init-private,-init-libraries,-init-user,-init-project,-do-init" name=
"-init-check">
316 <fail unless=
"src.dir">Must set src.dir
</fail>
317 <fail unless=
"test.src.dir">Must set test.src.dir
</fail>
318 <fail unless=
"build.dir">Must set build.dir
</fail>
319 <fail unless=
"dist.dir">Must set dist.dir
</fail>
320 <fail unless=
"build.classes.dir">Must set build.classes.dir
</fail>
321 <fail unless=
"dist.javadoc.dir">Must set dist.javadoc.dir
</fail>
322 <fail unless=
"build.test.classes.dir">Must set build.test.classes.dir
</fail>
323 <fail unless=
"build.test.results.dir">Must set build.test.results.dir
</fail>
324 <fail unless=
"build.classes.excludes">Must set build.classes.excludes
</fail>
325 <fail unless=
"dist.jar">Must set dist.jar
</fail>
327 <target name=
"-init-macrodef-property">
328 <macrodef name=
"property" uri=
"http://www.netbeans.org/ns/j2se-project/1">
329 <attribute name=
"name"/>
330 <attribute name=
"value"/>
332 <property name=
"@{name}" value=
"${@{value}}"/>
336 <target depends=
"-init-ap-cmdline-properties,-init-source-module-properties" if=
"modules.supported.internal" name=
"-init-macrodef-javac-with-module">
337 <macrodef name=
"javac" uri=
"http://www.netbeans.org/ns/j2se-project/3">
338 <attribute default=
"${src.dir}" name=
"srcdir"/>
339 <attribute default=
"${build.classes.dir}" name=
"destdir"/>
340 <attribute default=
"${javac.classpath}" name=
"classpath"/>
341 <attribute default=
"${javac.modulepath}" name=
"modulepath"/>
342 <attribute default=
"${javac.upgrademodulepath}" name=
"upgrademodulepath"/>
343 <attribute default=
"${javac.processorpath}" name=
"processorpath"/>
344 <attribute default=
"${javac.processormodulepath}" name=
"processormodulepath"/>
345 <attribute default=
"${build.generated.sources.dir}/ap-source-output" name=
"apgeneratedsrcdir"/>
346 <attribute default=
"${includes}" name=
"includes"/>
347 <attribute default=
"${excludes}" name=
"excludes"/>
348 <attribute default=
"${javac.debug}" name=
"debug"/>
349 <attribute default=
"${empty.dir}" name=
"sourcepath" unless:
set=
"named.module.internal"/>
350 <attribute default=
"${src.dir}" if:
set=
"named.module.internal" name=
"sourcepath"/>
351 <attribute default=
"${empty.dir}" name=
"gensrcdir"/>
352 <element name=
"customize" optional=
"true"/>
354 <condition property=
"warn.excludes.internal">
356 <isset property=
"named.module.internal"/>
357 <length length=
"0" string=
"@{excludes}" trim=
"true" when=
"greater"/>
360 <echo if:
set=
"warn.excludes.internal" level=
"warning" message=
"The javac excludes are not supported in the JDK 9 Named Module."/>
361 <property location=
"${build.dir}/empty" name=
"empty.dir"/>
362 <mkdir dir=
"${empty.dir}"/>
363 <mkdir dir=
"@{apgeneratedsrcdir}"/>
364 <condition property=
"processormodulepath.set">
365 <resourcecount count=
"0" when=
"greater">
367 <pathelement path=
"@{processormodulepath}"/>
371 <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}">
373 <dirset dir=
"@{gensrcdir}" erroronmissingdir=
"false">
378 <path path=
"@{classpath}"/>
381 <path path=
"@{modulepath}"/>
384 <path path=
"@{upgrademodulepath}"/>
386 <compilerarg line=
"${javac.systemmodulepath.cmd.line.arg}"/>
387 <compilerarg line=
"${javac.profile.cmd.line.arg}"/>
388 <compilerarg line=
"${javac.compilerargs}"/>
389 <compilerarg if:
set=
"processormodulepath.set" value=
"--processor-module-path"/>
390 <compilerarg if:
set=
"processormodulepath.set" path=
"@{processormodulepath}"/>
391 <compilerarg unless:
set=
"processormodulepath.set" value=
"-processorpath"/>
392 <compilerarg path=
"@{processorpath}:${empty.dir}" unless:
set=
"processormodulepath.set"/>
393 <compilerarg line=
"${ap.processors.internal}"/>
394 <compilerarg line=
"${annotation.processing.processor.options}"/>
395 <compilerarg value=
"-s"/>
396 <compilerarg path=
"@{apgeneratedsrcdir}"/>
397 <compilerarg line=
"${ap.proc.none.internal}"/>
403 <target depends=
"-init-ap-cmdline-properties,-init-source-module-properties" if=
"ap.supported.internal" name=
"-init-macrodef-javac-with-processors" unless=
"modules.supported.internal">
404 <macrodef name=
"javac" uri=
"http://www.netbeans.org/ns/j2se-project/3">
405 <attribute default=
"${src.dir}" name=
"srcdir"/>
406 <attribute default=
"${build.classes.dir}" name=
"destdir"/>
407 <attribute default=
"${javac.classpath}" name=
"classpath"/>
408 <attribute default=
"${javac.modulepath}" name=
"modulepath"/>
409 <attribute default=
"${javac.upgrademodulepath}" name=
"upgrademodulepath"/>
410 <attribute default=
"${javac.processorpath}" name=
"processorpath"/>
411 <attribute default=
"${build.generated.sources.dir}/ap-source-output" name=
"apgeneratedsrcdir"/>
412 <attribute default=
"${includes}" name=
"includes"/>
413 <attribute default=
"${excludes}" name=
"excludes"/>
414 <attribute default=
"${javac.debug}" name=
"debug"/>
415 <attribute default=
"${empty.dir}" name=
"sourcepath"/>
416 <attribute default=
"${empty.dir}" name=
"gensrcdir"/>
417 <element name=
"customize" optional=
"true"/>
419 <property location=
"${build.dir}/empty" name=
"empty.dir"/>
420 <mkdir dir=
"${empty.dir}"/>
421 <mkdir dir=
"@{apgeneratedsrcdir}"/>
422 <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}">
424 <dirset dir=
"@{gensrcdir}" erroronmissingdir=
"false">
429 <path path=
"@{classpath}"/>
431 <compilerarg line=
"${endorsed.classpath.cmd.line.arg}"/>
432 <compilerarg line=
"${javac.profile.cmd.line.arg}"/>
433 <compilerarg line=
"${javac.compilerargs}"/>
434 <compilerarg value=
"-processorpath"/>
435 <compilerarg path=
"@{processorpath}:${empty.dir}"/>
436 <compilerarg line=
"${ap.processors.internal}"/>
437 <compilerarg line=
"${annotation.processing.processor.options}"/>
438 <compilerarg value=
"-s"/>
439 <compilerarg path=
"@{apgeneratedsrcdir}"/>
440 <compilerarg line=
"${ap.proc.none.internal}"/>
446 <target depends=
"-init-ap-cmdline-properties,-init-source-module-properties" name=
"-init-macrodef-javac-without-processors" unless=
"ap.supported.internal">
447 <macrodef name=
"javac" uri=
"http://www.netbeans.org/ns/j2se-project/3">
448 <attribute default=
"${src.dir}" name=
"srcdir"/>
449 <attribute default=
"${build.classes.dir}" name=
"destdir"/>
450 <attribute default=
"${javac.classpath}" name=
"classpath"/>
451 <attribute default=
"${javac.modulepath}" name=
"modulepath"/>
452 <attribute default=
"${javac.upgrademodulepath}" name=
"upgrademodulepath"/>
453 <attribute default=
"${javac.processorpath}" name=
"processorpath"/>
454 <attribute default=
"${build.generated.sources.dir}/ap-source-output" name=
"apgeneratedsrcdir"/>
455 <attribute default=
"${includes}" name=
"includes"/>
456 <attribute default=
"${excludes}" name=
"excludes"/>
457 <attribute default=
"${javac.debug}" name=
"debug"/>
458 <attribute default=
"${empty.dir}" name=
"sourcepath"/>
459 <attribute default=
"${empty.dir}" name=
"gensrcdir"/>
460 <element name=
"customize" optional=
"true"/>
462 <property location=
"${build.dir}/empty" name=
"empty.dir"/>
463 <mkdir dir=
"${empty.dir}"/>
464 <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}">
466 <dirset dir=
"@{gensrcdir}" erroronmissingdir=
"false">
471 <path path=
"@{classpath}"/>
473 <compilerarg line=
"${endorsed.classpath.cmd.line.arg}"/>
474 <compilerarg line=
"${javac.profile.cmd.line.arg}"/>
475 <compilerarg line=
"${javac.compilerargs}"/>
481 <target depends=
"-init-macrodef-javac-with-module,-init-macrodef-javac-with-processors,-init-macrodef-javac-without-processors" name=
"-init-macrodef-javac">
482 <macrodef name=
"depend" uri=
"http://www.netbeans.org/ns/j2se-project/3">
483 <attribute default=
"${src.dir}" name=
"srcdir"/>
484 <attribute default=
"${build.classes.dir}" name=
"destdir"/>
485 <attribute default=
"${javac.classpath}" name=
"classpath"/>
487 <depend cache=
"${build.dir}/depcache" destdir=
"@{destdir}" excludes=
"${excludes}" includes=
"${includes}" srcdir=
"@{srcdir}">
489 <path path=
"@{classpath}"/>
494 <macrodef name=
"force-recompile" uri=
"http://www.netbeans.org/ns/j2se-project/3">
495 <attribute default=
"${build.classes.dir}" name=
"destdir"/>
497 <fail unless=
"javac.includes">Must set javac.includes
</fail>
498 <pathconvert pathsep=
"${line.separator}" property=
"javac.includes.binary">
500 <filelist dir=
"@{destdir}" files=
"${javac.includes}"/>
502 <globmapper from=
"*.java" to=
"*.class"/>
504 <tempfile deleteonexit=
"true" property=
"javac.includesfile.binary"/>
505 <echo file=
"${javac.includesfile.binary}" message=
"${javac.includes.binary}"/>
507 <files includesfile=
"${javac.includesfile.binary}"/>
510 <fileset file=
"${javac.includesfile.binary}"/>
515 <target if=
"${junit.available}" name=
"-init-macrodef-junit-init">
516 <condition else=
"false" property=
"nb.junit.batch" value=
"true">
518 <istrue value=
"${junit.available}"/>
520 <isset property=
"test.method"/>
524 <condition else=
"false" property=
"nb.junit.single" value=
"true">
526 <istrue value=
"${junit.available}"/>
527 <isset property=
"test.method"/>
531 <target name=
"-init-test-properties">
532 <property name=
"test.binaryincludes" value=
"<nothing>"/>
533 <property name=
"test.binarytestincludes" value=
""/>
534 <property name=
"test.binaryexcludes" value=
""/>
536 <target depends=
"-init-modules-supported" if=
"modules.supported.internal" name=
"-init-macrodef-junit-prototype-with-module">
537 <macrodef name=
"junit-prototype" uri=
"http://www.netbeans.org/ns/j2se-project/3">
538 <attribute default=
"${includes}" name=
"includes"/>
539 <attribute default=
"${excludes}" name=
"excludes"/>
540 <element name=
"customizePrototype" optional=
"true"/>
542 <property name=
"junit.forkmode" value=
"perTest"/>
543 <junit dir=
"${work.dir}" errorproperty=
"tests.failed" failureproperty=
"tests.failed" fork=
"true" forkmode=
"${junit.forkmode}" showoutput=
"true" tempdir=
"${build.dir}">
545 <propertyref prefix=
"test-sys-prop."/>
546 <mapper from=
"test-sys-prop.*" to=
"*" type=
"glob"/>
549 <path path=
"${run.test.classpath}"/>
552 <path path=
"${run.test.modulepath}"/>
554 <formatter type=
"brief" usefile=
"false"/>
555 <formatter type=
"xml"/>
556 <jvmarg line=
"${endorsed.classpath.cmd.line.arg}"/>
557 <jvmarg value=
"-ea"/>
558 <jvmarg line=
"${run.test.jvmargs}"/>
559 <customizePrototype/>
564 <target depends=
"-init-modules-supported" name=
"-init-macrodef-junit-prototype-without-module" unless=
"modules.supported.internal">
565 <macrodef name=
"junit-prototype" uri=
"http://www.netbeans.org/ns/j2se-project/3">
566 <attribute default=
"${includes}" name=
"includes"/>
567 <attribute default=
"${excludes}" name=
"excludes"/>
568 <element name=
"customizePrototype" optional=
"true"/>
570 <property name=
"junit.forkmode" value=
"perTest"/>
571 <junit dir=
"${work.dir}" errorproperty=
"tests.failed" failureproperty=
"tests.failed" fork=
"true" forkmode=
"${junit.forkmode}" showoutput=
"true" tempdir=
"${build.dir}">
573 <propertyref prefix=
"test-sys-prop."/>
574 <mapper from=
"test-sys-prop.*" to=
"*" type=
"glob"/>
577 <path path=
"${run.test.classpath}"/>
579 <formatter type=
"brief" usefile=
"false"/>
580 <formatter type=
"xml"/>
581 <jvmarg line=
"${endorsed.classpath.cmd.line.arg}"/>
582 <jvmarg value=
"-ea"/>
583 <customizePrototype/>
588 <target depends=
"-init-test-properties,-init-macrodef-junit-prototype-with-module,-init-macrodef-junit-prototype-without-module" if=
"${nb.junit.single}" name=
"-init-macrodef-junit-single" unless=
"${nb.junit.batch}">
589 <macrodef name=
"junit" uri=
"http://www.netbeans.org/ns/j2se-project/3">
590 <attribute default=
"${includes}" name=
"includes"/>
591 <attribute default=
"${excludes}" name=
"excludes"/>
592 <attribute default=
"**" name=
"testincludes"/>
593 <attribute default=
"" name=
"testmethods"/>
594 <element name=
"customize" optional=
"true"/>
596 <j2seproject3:junit-prototype>
598 <test methods=
"@{testmethods}" name=
"@{testincludes}" todir=
"${build.test.results.dir}"/>
600 </customizePrototype>
601 </j2seproject3:junit-prototype>
605 <target depends=
"-init-test-properties,-init-macrodef-junit-prototype-with-module,-init-macrodef-junit-prototype-without-module" if=
"${nb.junit.batch}" name=
"-init-macrodef-junit-batch" unless=
"${nb.junit.single}">
606 <macrodef name=
"junit" uri=
"http://www.netbeans.org/ns/j2se-project/3">
607 <attribute default=
"${includes}" name=
"includes"/>
608 <attribute default=
"${excludes}" name=
"excludes"/>
609 <attribute default=
"**" name=
"testincludes"/>
610 <attribute default=
"" name=
"testmethods"/>
611 <element name=
"customize" optional=
"true"/>
613 <j2seproject3:junit-prototype>
615 <batchtest todir=
"${build.test.results.dir}">
616 <fileset dir=
"${test.src.dir}" excludes=
"@{excludes},${excludes}" includes=
"@{includes}">
617 <filename name=
"@{testincludes}"/>
619 <fileset dir=
"${build.test.classes.dir}" excludes=
"@{excludes},${excludes},${test.binaryexcludes}" includes=
"${test.binaryincludes}">
620 <filename name=
"${test.binarytestincludes}"/>
624 </customizePrototype>
625 </j2seproject3:junit-prototype>
629 <target depends=
"-init-macrodef-junit-init,-init-macrodef-junit-single, -init-macrodef-junit-batch" if=
"${junit.available}" name=
"-init-macrodef-junit"/>
630 <target if=
"${testng.available}" name=
"-init-macrodef-testng">
631 <macrodef name=
"testng" uri=
"http://www.netbeans.org/ns/j2se-project/3">
632 <attribute default=
"${includes}" name=
"includes"/>
633 <attribute default=
"${excludes}" name=
"excludes"/>
634 <attribute default=
"**" name=
"testincludes"/>
635 <attribute default=
"" name=
"testmethods"/>
636 <element name=
"customize" optional=
"true"/>
638 <condition else=
"" property=
"testng.methods.arg" value=
"@{testincludes}.@{testmethods}">
639 <isset property=
"test.method"/>
641 <union id=
"test.set">
642 <fileset dir=
"${test.src.dir}" excludes=
"@{excludes},**/*.xml,${excludes}" includes=
"@{includes}">
643 <filename name=
"@{testincludes}"/>
646 <taskdef classname=
"org.testng.TestNGAntTask" classpath=
"${run.test.classpath}" name=
"testng"/>
647 <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=
"Habeas" testname=
"TestNG tests" workingDir=
"${work.dir}">
648 <xmlfileset dir=
"${build.test.classes.dir}" includes=
"@{testincludes}"/>
650 <propertyref prefix=
"test-sys-prop."/>
651 <mapper from=
"test-sys-prop.*" to=
"*" type=
"glob"/>
654 <path path=
"${run.test.classpath}"/>
656 <jvmarg line=
"${endorsed.classpath.cmd.line.arg}"/>
662 <target name=
"-init-macrodef-test-impl">
663 <macrodef name=
"test-impl" uri=
"http://www.netbeans.org/ns/j2se-project/3">
664 <attribute default=
"${includes}" name=
"includes"/>
665 <attribute default=
"${excludes}" name=
"excludes"/>
666 <attribute default=
"**" name=
"testincludes"/>
667 <attribute default=
"" name=
"testmethods"/>
668 <element implicit=
"true" name=
"customize" optional=
"true"/>
670 <echo>No tests executed.
</echo>
674 <target depends=
"-init-macrodef-junit" if=
"${junit.available}" name=
"-init-macrodef-junit-impl">
675 <macrodef name=
"test-impl" uri=
"http://www.netbeans.org/ns/j2se-project/3">
676 <attribute default=
"${includes}" name=
"includes"/>
677 <attribute default=
"${excludes}" name=
"excludes"/>
678 <attribute default=
"**" name=
"testincludes"/>
679 <attribute default=
"" name=
"testmethods"/>
680 <element implicit=
"true" name=
"customize" optional=
"true"/>
682 <j2seproject3:junit excludes=
"@{excludes}" includes=
"@{includes}" testincludes=
"@{testincludes}" testmethods=
"@{testmethods}">
684 </j2seproject3:junit>
688 <target depends=
"-init-macrodef-testng" if=
"${testng.available}" name=
"-init-macrodef-testng-impl">
689 <macrodef name=
"test-impl" uri=
"http://www.netbeans.org/ns/j2se-project/3">
690 <attribute default=
"${includes}" name=
"includes"/>
691 <attribute default=
"${excludes}" name=
"excludes"/>
692 <attribute default=
"**" name=
"testincludes"/>
693 <attribute default=
"" name=
"testmethods"/>
694 <element implicit=
"true" name=
"customize" optional=
"true"/>
696 <j2seproject3:testng excludes=
"@{excludes}" includes=
"@{includes}" testincludes=
"@{testincludes}" testmethods=
"@{testmethods}">
698 </j2seproject3:testng>
702 <target depends=
"-init-macrodef-test-impl,-init-macrodef-junit-impl,-init-macrodef-testng-impl" name=
"-init-macrodef-test">
703 <macrodef name=
"test" uri=
"http://www.netbeans.org/ns/j2se-project/3">
704 <attribute default=
"${includes}" name=
"includes"/>
705 <attribute default=
"${excludes}" name=
"excludes"/>
706 <attribute default=
"**" name=
"testincludes"/>
707 <attribute default=
"" name=
"testmethods"/>
709 <j2seproject3:test-impl excludes=
"@{excludes}" includes=
"@{includes}" testincludes=
"@{testincludes}" testmethods=
"@{testmethods}">
711 <jvmarg line=
"${run.jvmargs}"/>
712 <jvmarg line=
"${run.jvmargs.ide}"/>
714 </j2seproject3:test-impl>
718 <target depends=
"-init-macrodef-junit" if=
"${junit.available}" name=
"-init-macrodef-junit-debug-impl">
719 <macrodef name=
"test-debug-impl" uri=
"http://www.netbeans.org/ns/j2se-project/3">
720 <attribute default=
"${includes}" name=
"includes"/>
721 <attribute default=
"${excludes}" name=
"excludes"/>
722 <attribute default=
"**" name=
"testincludes"/>
723 <attribute default=
"" name=
"testmethods"/>
724 <element name=
"customizeDebuggee" optional=
"true"/>
726 <j2seproject3:junit excludes=
"@{excludes}" includes=
"@{includes}" testincludes=
"@{testincludes}" testmethods=
"@{testmethods}">
728 <jvmarg value=
"-agentlib:jdwp=transport=${debug-transport},address=${jpda.address}"/>
731 </j2seproject3:junit>
735 <target if=
"${testng.available}" name=
"-init-macrodef-testng-debug">
736 <macrodef name=
"testng-debug" uri=
"http://www.netbeans.org/ns/j2se-project/3">
737 <attribute default=
"${main.class}" name=
"testClass"/>
738 <attribute default=
"" name=
"testMethod"/>
739 <element name=
"customize2" optional=
"true"/>
741 <condition else=
"-testclass @{testClass}" property=
"test.class.or.method" value=
"-methods @{testClass}.@{testMethod}">
742 <isset property=
"test.method"/>
744 <condition else=
"-suitename Habeas -testname @{testClass} ${test.class.or.method}" property=
"testng.cmd.args" value=
"@{testClass}">
745 <matches pattern=
".*\.xml" string=
"@{testClass}"/>
747 <delete dir=
"${build.test.results.dir}" quiet=
"true"/>
748 <mkdir dir=
"${build.test.results.dir}"/>
749 <j2seproject3:debug classname=
"org.testng.TestNG" classpath=
"${debug.test.classpath}">
752 <jvmarg value=
"-ea"/>
753 <arg line=
"${testng.debug.mode}"/>
754 <arg line=
"-d ${build.test.results.dir}"/>
755 <arg line=
"-listener org.testng.reporters.VerboseReporter"/>
756 <arg line=
"${testng.cmd.args}"/>
758 </j2seproject3:debug>
762 <target depends=
"-init-macrodef-testng-debug" if=
"${testng.available}" name=
"-init-macrodef-testng-debug-impl">
763 <macrodef name=
"testng-debug-impl" uri=
"http://www.netbeans.org/ns/j2se-project/3">
764 <attribute default=
"${main.class}" name=
"testClass"/>
765 <attribute default=
"" name=
"testMethod"/>
766 <element implicit=
"true" name=
"customize2" optional=
"true"/>
768 <j2seproject3:testng-debug testClass=
"@{testClass}" testMethod=
"@{testMethod}">
770 </j2seproject3:testng-debug>
774 <target depends=
"-init-macrodef-junit-debug-impl" if=
"${junit.available}" name=
"-init-macrodef-test-debug-junit">
775 <macrodef name=
"test-debug" uri=
"http://www.netbeans.org/ns/j2se-project/3">
776 <attribute default=
"${includes}" name=
"includes"/>
777 <attribute default=
"${excludes}" name=
"excludes"/>
778 <attribute default=
"**" name=
"testincludes"/>
779 <attribute default=
"" name=
"testmethods"/>
780 <attribute default=
"${main.class}" name=
"testClass"/>
781 <attribute default=
"" name=
"testMethod"/>
783 <j2seproject3:test-debug-impl excludes=
"@{excludes}" includes=
"@{includes}" testincludes=
"@{testincludes}" testmethods=
"@{testmethods}">
785 <jvmarg line=
"${run.jvmargs}"/>
786 <jvmarg line=
"${run.jvmargs.ide}"/>
788 </j2seproject3:test-debug-impl>
792 <target depends=
"-init-macrodef-testng-debug-impl" if=
"${testng.available}" name=
"-init-macrodef-test-debug-testng">
793 <macrodef name=
"test-debug" uri=
"http://www.netbeans.org/ns/j2se-project/3">
794 <attribute default=
"${includes}" name=
"includes"/>
795 <attribute default=
"${excludes}" name=
"excludes"/>
796 <attribute default=
"**" name=
"testincludes"/>
797 <attribute default=
"" name=
"testmethods"/>
798 <attribute default=
"${main.class}" name=
"testClass"/>
799 <attribute default=
"" name=
"testMethod"/>
801 <j2seproject3:testng-debug-impl testClass=
"@{testClass}" testMethod=
"@{testMethod}">
804 <propertyref prefix=
"test-sys-prop."/>
805 <mapper from=
"test-sys-prop.*" to=
"*" type=
"glob"/>
808 </j2seproject3:testng-debug-impl>
812 <target depends=
"-init-macrodef-test-debug-junit,-init-macrodef-test-debug-testng" name=
"-init-macrodef-test-debug"/>
814 pre NB7.2 profiling section; consider it deprecated
816 <target depends=
"-profile-pre-init, init, -profile-post-init, -profile-init-macrodef-profile, -profile-init-check" if=
"profiler.info.jvmargs.agent" name=
"profile-init"/>
817 <target if=
"profiler.info.jvmargs.agent" name=
"-profile-pre-init">
818 <!-- Empty placeholder for easier customization. -->
819 <!-- You can override this target in the ../build.xml file. -->
821 <target if=
"profiler.info.jvmargs.agent" name=
"-profile-post-init">
822 <!-- Empty placeholder for easier customization. -->
823 <!-- You can override this target in the ../build.xml file. -->
825 <target if=
"profiler.info.jvmargs.agent" name=
"-profile-init-macrodef-profile">
826 <macrodef name=
"resolve">
827 <attribute name=
"name"/>
828 <attribute name=
"value"/>
830 <property name=
"@{name}" value=
"${env.@{value}}"/>
833 <macrodef name=
"profile">
834 <attribute default=
"${main.class}" name=
"classname"/>
835 <element name=
"customize" optional=
"true"/>
837 <property environment=
"env"/>
838 <resolve name=
"profiler.current.path" value=
"${profiler.info.pathvar}"/>
839 <java classname=
"@{classname}" dir=
"${profiler.info.dir}" failonerror=
"${java.failonerror}" fork=
"true" jvm=
"${profiler.info.jvm}">
840 <jvmarg line=
"${endorsed.classpath.cmd.line.arg}"/>
841 <jvmarg value=
"${profiler.info.jvmargs.agent}"/>
842 <jvmarg line=
"${profiler.info.jvmargs}"/>
843 <env key=
"${profiler.info.pathvar}" path=
"${profiler.info.agentpath}:${profiler.current.path}"/>
844 <arg line=
"${application.args}"/>
846 <path path=
"${run.classpath}"/>
849 <propertyref prefix=
"run-sys-prop."/>
850 <mapper from=
"run-sys-prop.*" to=
"*" type=
"glob"/>
857 <target depends=
"-profile-pre-init, init, -profile-post-init, -profile-init-macrodef-profile" if=
"profiler.info.jvmargs.agent" name=
"-profile-init-check">
858 <fail unless=
"profiler.info.jvm">Must set JVM to use for profiling in profiler.info.jvm
</fail>
859 <fail unless=
"profiler.info.jvmargs.agent">Must set profiler agent JVM arguments in profiler.info.jvmargs.agent
</fail>
862 end of pre NB7.2 profiling section
864 <target depends=
"-init-debug-args" name=
"-init-macrodef-nbjpda">
865 <macrodef name=
"nbjpdastart" uri=
"http://www.netbeans.org/ns/j2se-project/1">
866 <attribute default=
"${main.class}" name=
"name"/>
867 <attribute default=
"${debug.modulepath}" name=
"modulepath"/>
868 <attribute default=
"${debug.classpath}" name=
"classpath"/>
869 <attribute default=
"" name=
"stopclassname"/>
871 <nbjpdastart addressproperty=
"jpda.address" name=
"@{name}" stopclassname=
"@{stopclassname}" transport=
"${debug-transport}">
873 <path path=
"@{modulepath}"/>
876 <path path=
"@{classpath}"/>
881 <macrodef name=
"nbjpdareload" uri=
"http://www.netbeans.org/ns/j2se-project/1">
882 <attribute default=
"${build.classes.dir}" name=
"dir"/>
885 <fileset dir=
"@{dir}" includes=
"${fix.classes}">
886 <include name=
"${fix.includes}*.class"/>
892 <target name=
"-init-debug-args">
893 <condition else=
"dt_socket" property=
"debug-transport-by-os" value=
"dt_shmem">
894 <os family=
"windows"/>
896 <condition else=
"${debug-transport-by-os}" property=
"debug-transport" value=
"${debug.transport}">
897 <isset property=
"debug.transport"/>
900 <target depends=
"-init-debug-args" name=
"-init-macrodef-debug">
901 <macrodef name=
"debug" uri=
"http://www.netbeans.org/ns/j2se-project/3">
902 <attribute default=
"${module.name}" name=
"modulename"/>
903 <attribute default=
"${main.class}" name=
"classname"/>
904 <attribute default=
"${debug.modulepath}" name=
"modulepath"/>
905 <attribute default=
"${debug.classpath}" name=
"classpath"/>
906 <element name=
"customizeDebuggee" optional=
"true"/>
908 <j2seproject1:java classname=
"@{classname}" classpath=
"@{classpath}" modulename=
"@{modulename}" modulepath=
"@{modulepath}">
910 <jvmarg value=
"-agentlib:jdwp=transport=${debug-transport},address=${jpda.address}"/>
917 <target depends=
"-init-source-module-properties" if=
"named.module.internal" name=
"-init-macrodef-java-with-module">
918 <macrodef name=
"java" uri=
"http://www.netbeans.org/ns/j2se-project/1">
919 <attribute default=
"${module.name}" name=
"modulename"/>
920 <attribute default=
"${main.class}" name=
"classname"/>
921 <attribute default=
"${run.modulepath}" name=
"modulepath"/>
922 <attribute default=
"${run.upgrademodulepath}" name=
"upgrademodulepath"/>
923 <attribute default=
"${run.classpath}" name=
"classpath"/>
924 <attribute default=
"jvm" name=
"jvm"/>
925 <element name=
"customize" optional=
"true"/>
927 <java classname=
"@{classname}" dir=
"${work.dir}" failonerror=
"${java.failonerror}" fork=
"true" module=
"@{modulename}">
929 <path path=
"@{classpath}"/>
932 <pathelement path=
"@{modulepath}"/>
933 <pathelement location=
"${module.build.classes.dir}"/>
936 <path path=
"@{upgrademodulepath}"/>
938 <jvmarg value=
"-Dfile.encoding=${runtime.encoding}"/>
939 <redirector errorencoding=
"${runtime.encoding}" inputencoding=
"${runtime.encoding}" outputencoding=
"${runtime.encoding}"/>
940 <jvmarg line=
"${run.jvmargs}"/>
941 <jvmarg line=
"${run.jvmargs.ide}"/>
943 <propertyref prefix=
"run-sys-prop."/>
944 <mapper from=
"run-sys-prop.*" to=
"*" type=
"glob"/>
951 <target depends=
"-init-source-module-properties" if=
"unnamed.module.internal" name=
"-init-macrodef-java-with-unnamed-module">
952 <macrodef name=
"java" uri=
"http://www.netbeans.org/ns/j2se-project/1">
953 <attribute default=
"" name=
"modulename"/>
954 <attribute default=
"${main.class}" name=
"classname"/>
955 <attribute default=
"${run.modulepath}" name=
"modulepath"/>
956 <attribute default=
"${run.upgrademodulepath}" name=
"upgrademodulepath"/>
957 <attribute default=
"${run.classpath}" name=
"classpath"/>
958 <attribute default=
"jvm" name=
"jvm"/>
959 <element name=
"customize" optional=
"true"/>
961 <java classname=
"@{classname}" dir=
"${work.dir}" failonerror=
"${java.failonerror}" fork=
"true">
963 <path path=
"@{classpath}"/>
966 <path path=
"@{modulepath}"/>
969 <path path=
"@{upgrademodulepath}"/>
971 <jvmarg value=
"-Dfile.encoding=${runtime.encoding}"/>
972 <redirector errorencoding=
"${runtime.encoding}" inputencoding=
"${runtime.encoding}" outputencoding=
"${runtime.encoding}"/>
973 <jvmarg line=
"${run.jvmargs}"/>
974 <jvmarg line=
"${run.jvmargs.ide}"/>
976 <propertyref prefix=
"run-sys-prop."/>
977 <mapper from=
"run-sys-prop.*" to=
"*" type=
"glob"/>
984 <target depends=
"-init-source-module-properties" name=
"-init-macrodef-java-without-module" unless=
"modules.supported.internal">
985 <macrodef name=
"java" uri=
"http://www.netbeans.org/ns/j2se-project/1">
986 <attribute default=
"" name=
"modulename"/>
987 <attribute default=
"${main.class}" name=
"classname"/>
988 <attribute default=
"" name=
"modulepath"/>
989 <attribute default=
"${run.classpath}" name=
"classpath"/>
990 <attribute default=
"jvm" name=
"jvm"/>
991 <element name=
"customize" optional=
"true"/>
993 <java classname=
"@{classname}" dir=
"${work.dir}" failonerror=
"${java.failonerror}" fork=
"true">
994 <jvmarg line=
"${endorsed.classpath.cmd.line.arg}"/>
995 <jvmarg value=
"-Dfile.encoding=${runtime.encoding}"/>
996 <redirector errorencoding=
"${runtime.encoding}" inputencoding=
"${runtime.encoding}" outputencoding=
"${runtime.encoding}"/>
997 <jvmarg line=
"${run.jvmargs}"/>
998 <jvmarg line=
"${run.jvmargs.ide}"/>
1000 <path path=
"@{classpath}"/>
1003 <propertyref prefix=
"run-sys-prop."/>
1004 <mapper from=
"run-sys-prop.*" to=
"*" type=
"glob"/>
1011 <target depends=
"-init-macrodef-java-with-module, -init-macrodef-java-with-unnamed-module, -init-macrodef-java-without-module" name=
"-init-macrodef-java"/>
1012 <target name=
"-init-macrodef-copylibs">
1013 <macrodef name=
"copylibs" uri=
"http://www.netbeans.org/ns/j2se-project/3">
1014 <attribute default=
"${manifest.file}" name=
"manifest"/>
1015 <element name=
"customize" optional=
"true"/>
1017 <property location=
"${build.classes.dir}" name=
"build.classes.dir.resolved"/>
1018 <pathconvert property=
"run.classpath.without.build.classes.dir">
1019 <path path=
"${run.classpath}"/>
1020 <map from=
"${build.classes.dir.resolved}" to=
""/>
1022 <pathconvert pathsep=
" " property=
"jar.classpath">
1023 <path path=
"${run.classpath.without.build.classes.dir}"/>
1027 <replacestring from=
" " to=
"%20"/>
1029 <globmapper from=
"*" to=
"lib/*"/>
1032 <taskdef classname=
"org.netbeans.modules.java.j2seproject.copylibstask.CopyLibs" classpath=
"${libs.CopyLibs.classpath}" name=
"copylibs"/>
1033 <copylibs compress=
"${jar.compress}" excludeFromCopy=
"${copylibs.excludes}" index=
"${jar.index}" indexMetaInf=
"${jar.index.metainf}" jarfile=
"${dist.jar}" manifest=
"@{manifest}" manifestencoding=
"UTF-8" rebase=
"${copylibs.rebase}" runtimeclasspath=
"${run.classpath.without.build.classes.dir}">
1034 <fileset dir=
"${build.classes.dir}" excludes=
"${dist.archive.excludes}"/>
1036 <attribute name=
"Class-Path" value=
"${jar.classpath}"/>
1043 <target name=
"-init-presetdef-jar">
1044 <presetdef name=
"jar" uri=
"http://www.netbeans.org/ns/j2se-project/1">
1045 <jar compress=
"${jar.compress}" index=
"${jar.index}" jarfile=
"${dist.jar}" manifestencoding=
"UTF-8">
1046 <j2seproject1:fileset dir=
"${build.classes.dir}" excludes=
"${dist.archive.excludes}"/>
1050 <target name=
"-init-ap-cmdline-properties">
1051 <property name=
"annotation.processing.enabled" value=
"true"/>
1052 <property name=
"annotation.processing.processors.list" value=
""/>
1053 <property name=
"annotation.processing.processor.options" value=
""/>
1054 <property name=
"annotation.processing.run.all.processors" value=
"true"/>
1055 <property name=
"javac.processorpath" value=
"${javac.classpath}"/>
1056 <property name=
"javac.test.processorpath" value=
"${javac.test.classpath}"/>
1057 <condition property=
"ap.supported.internal" value=
"true">
1059 <matches pattern=
"1\.[0-5](\..*)?" string=
"${javac.source}"/>
1063 <target depends=
"-init-ap-cmdline-properties" if=
"ap.supported.internal" name=
"-init-ap-cmdline-supported">
1064 <condition else=
"" property=
"ap.processors.internal" value=
"-processor ${annotation.processing.processors.list}">
1065 <isfalse value=
"${annotation.processing.run.all.processors}"/>
1067 <condition else=
"" property=
"ap.proc.none.internal" value=
"-proc:none">
1068 <isfalse value=
"${annotation.processing.enabled}"/>
1071 <target depends=
"-init-ap-cmdline-properties,-init-ap-cmdline-supported" name=
"-init-ap-cmdline">
1072 <property name=
"ap.cmd.line.internal" value=
""/>
1074 <target depends=
"-pre-init,-init-private,-init-libraries,-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"/>
1080 <target name=
"-deps-jar-init" unless=
"built-jar.properties">
1081 <property location=
"${build.dir}/built-jar.properties" name=
"built-jar.properties"/>
1082 <delete file=
"${built-jar.properties}" quiet=
"true"/>
1084 <target if=
"already.built.jar.${basedir}" name=
"-warn-already-built-jar">
1085 <echo level=
"warn" message=
"Cycle detected: Habeas was already built"/>
1087 <target depends=
"init,-deps-jar-init" name=
"deps-jar" unless=
"no.deps">
1088 <mkdir dir=
"${build.dir}"/>
1089 <touch file=
"${built-jar.properties}" verbose=
"false"/>
1090 <property file=
"${built-jar.properties}" prefix=
"already.built.jar."/>
1091 <antcall target=
"-warn-already-built-jar"/>
1092 <propertyfile file=
"${built-jar.properties}">
1093 <entry key=
"${basedir}" value=
""/>
1096 <target depends=
"init,-check-automatic-build,-clean-after-automatic-build" name=
"-verify-automatic-build"/>
1097 <target depends=
"init" name=
"-check-automatic-build">
1098 <available file=
"${build.classes.dir}/.netbeans_automatic_build" property=
"netbeans.automatic.build"/>
1100 <target depends=
"init" if=
"netbeans.automatic.build" name=
"-clean-after-automatic-build">
1101 <antcall target=
"clean">
1102 <param name=
"no.dependencies" value=
"true"/>
1105 <target depends=
"init,deps-jar" name=
"-pre-pre-compile">
1106 <mkdir dir=
"${build.classes.dir}"/>
1108 <target name=
"-pre-compile">
1109 <!-- Empty placeholder for easier customization. -->
1110 <!-- You can override this target in the ../build.xml file. -->
1112 <target if=
"do.depend.true" name=
"-compile-depend">
1113 <pathconvert property=
"build.generated.subdirs">
1114 <dirset dir=
"${build.generated.sources.dir}" erroronmissingdir=
"false">
1118 <j2seproject3:depend srcdir=
"${src.dir}:${build.generated.subdirs}"/>
1120 <target depends=
"init,deps-jar,-pre-pre-compile,-pre-compile, -copy-persistence-xml,-compile-depend" if=
"have.sources" name=
"-do-compile">
1121 <j2seproject3:javac gensrcdir=
"${build.generated.sources.dir}"/>
1122 <copy todir=
"${build.classes.dir}">
1123 <fileset dir=
"${src.dir}" excludes=
"${build.classes.excludes},${excludes}" includes=
"${includes}"/>
1126 <target if=
"has.persistence.xml" name=
"-copy-persistence-xml">
1127 <mkdir dir=
"${build.classes.dir}/META-INF"/>
1128 <copy todir=
"${build.classes.dir}/META-INF">
1129 <fileset dir=
"${meta.inf.dir}" includes=
"persistence.xml orm.xml"/>
1132 <target name=
"-post-compile">
1133 <!-- Empty placeholder for easier customization. -->
1134 <!-- You can override this target in the ../build.xml file. -->
1136 <target depends=
"init,deps-jar,-verify-automatic-build,-pre-pre-compile,-pre-compile,-do-compile,-post-compile" description=
"Compile project." name=
"compile"/>
1137 <target name=
"-pre-compile-single">
1138 <!-- Empty placeholder for easier customization. -->
1139 <!-- You can override this target in the ../build.xml file. -->
1141 <target depends=
"init,deps-jar,-pre-pre-compile" name=
"-do-compile-single">
1142 <fail unless=
"javac.includes">Must select some files in the IDE or set javac.includes
</fail>
1143 <j2seproject3:force-recompile/>
1144 <j2seproject3:javac excludes=
"" gensrcdir=
"${build.generated.sources.dir}" includes=
"${javac.includes}, module-info.java" sourcepath=
"${src.dir}"/>
1146 <target name=
"-post-compile-single">
1147 <!-- Empty placeholder for easier customization. -->
1148 <!-- You can override this target in the ../build.xml file. -->
1150 <target depends=
"init,deps-jar,-verify-automatic-build,-pre-pre-compile,-pre-compile-single,-do-compile-single,-post-compile-single" name=
"compile-single"/>
1152 ====================
1153 JAR BUILDING SECTION
1154 ====================
1156 <target depends=
"init" name=
"-pre-pre-jar">
1157 <dirname file=
"${dist.jar}" property=
"dist.jar.dir"/>
1158 <mkdir dir=
"${dist.jar.dir}"/>
1160 <target name=
"-pre-jar">
1161 <!-- Empty placeholder for easier customization. -->
1162 <!-- You can override this target in the ../build.xml file. -->
1164 <target depends=
"init,compile" name=
"-check-module-main-class">
1165 <pathconvert property=
"main.class.file">
1166 <string value=
"${main.class}"/>
1167 <unpackagemapper from=
"*" to=
"*.class"/>
1169 <condition property=
"do.module.main.class">
1171 <isset property=
"main.class.available"/>
1172 <available file=
"${build.classes.dir}/module-info.class"/>
1173 <available file=
"${build.classes.dir}/${main.class.file}"/>
1174 <isset property=
"libs.CopyLibs.classpath"/>
1175 <available classname=
"org.netbeans.modules.java.j2seproject.moduletask.ModuleMainClass" classpath=
"${libs.CopyLibs.classpath}"/>
1179 <target depends=
"-check-module-main-class" if=
"do.module.main.class" name=
"-set-module-main-class">
1180 <taskdef classname=
"org.netbeans.modules.java.j2seproject.moduletask.ModuleMainClass" classpath=
"${libs.CopyLibs.classpath}" name=
"modulemainclass"/>
1181 <modulemainclass failonerror=
"false" mainclass=
"${main.class}" moduleinfo=
"${build.classes.dir}/module-info.class"/>
1183 <target depends=
"init" if=
"do.archive" name=
"-do-jar-create-manifest" unless=
"manifest.available">
1184 <tempfile deleteonexit=
"true" destdir=
"${build.dir}" property=
"tmp.manifest.file"/>
1185 <touch file=
"${tmp.manifest.file}" verbose=
"false"/>
1187 <target depends=
"init" if=
"do.archive+manifest.available" name=
"-do-jar-copy-manifest">
1188 <tempfile deleteonexit=
"true" destdir=
"${build.dir}" property=
"tmp.manifest.file"/>
1189 <copy encoding=
"${manifest.encoding}" file=
"${manifest.file}" outputencoding=
"UTF-8" tofile=
"${tmp.manifest.file}"/>
1191 <target depends=
"init,-do-jar-create-manifest,-do-jar-copy-manifest" if=
"do.archive+main.class.available" name=
"-do-jar-set-mainclass">
1192 <manifest encoding=
"UTF-8" file=
"${tmp.manifest.file}" mode=
"update">
1193 <attribute name=
"Main-Class" value=
"${main.class}"/>
1196 <target depends=
"init,-do-jar-create-manifest,-do-jar-copy-manifest" if=
"do.archive+profile.available" name=
"-do-jar-set-profile">
1197 <manifest encoding=
"UTF-8" file=
"${tmp.manifest.file}" mode=
"update">
1198 <attribute name=
"Profile" value=
"${javac.profile}"/>
1201 <target depends=
"init,-do-jar-create-manifest,-do-jar-copy-manifest" if=
"do.archive+splashscreen.available" name=
"-do-jar-set-splashscreen">
1202 <basename file=
"${application.splash}" property=
"splashscreen.basename"/>
1203 <mkdir dir=
"${build.classes.dir}/META-INF"/>
1204 <copy failonerror=
"false" file=
"${application.splash}" todir=
"${build.classes.dir}/META-INF"/>
1205 <manifest encoding=
"UTF-8" file=
"${tmp.manifest.file}" mode=
"update">
1206 <attribute name=
"SplashScreen-Image" value=
"META-INF/${splashscreen.basename}"/>
1209 <target depends=
"init,compile" name=
"-check-do-mkdist">
1210 <condition property=
"do.mkdist">
1212 <isset property=
"do.archive"/>
1213 <isset property=
"libs.CopyLibs.classpath"/>
1215 <istrue value=
"${mkdist.disabled}"/>
1218 <available file=
"${build.classes.dir}/module-info.class"/>
1223 <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,-check-do-mkdist" if=
"do.mkdist" name=
"-do-jar-copylibs">
1224 <j2seproject3:copylibs manifest=
"${tmp.manifest.file}"/>
1225 <echo level=
"info">To run this application from the command line without Ant, try:
</echo>
1226 <property location=
"${dist.jar}" name=
"dist.jar.resolved"/>
1227 <echo level=
"info">java -jar
"${dist.jar.resolved}"</echo>
1229 <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,-check-do-mkdist" if=
"do.archive" name=
"-do-jar-jar" unless=
"do.mkdist">
1230 <j2seproject1:jar manifest=
"${tmp.manifest.file}"/>
1231 <property location=
"${build.classes.dir}" name=
"build.classes.dir.resolved"/>
1232 <property location=
"${dist.jar}" name=
"dist.jar.resolved"/>
1233 <condition else=
"${dist.jar.resolved}" property=
"jar.usage.message.class.path.replacement" value=
"">
1234 <isset property=
"named.module.internal"/>
1236 <pathconvert property=
"run.classpath.with.dist.jar">
1237 <path path=
"${run.classpath}"/>
1238 <map from=
"${build.classes.dir.resolved}" to=
"${jar.usage.message.class.path.replacement}"/>
1240 <pathconvert property=
"run.modulepath.with.dist.jar">
1241 <path location=
"${dist.jar.resolved}"/>
1242 <path path=
"${run.modulepath}"/>
1243 <map from=
"${build.classes.dir.resolved}" to=
"${dist.jar.resolved}"/>
1245 <condition else=
"${run.modulepath}" property=
"jar.usage.message.run.modulepath.with.dist.jar" value=
"${run.modulepath.with.dist.jar}">
1246 <isset property=
"named.module.internal"/>
1248 <condition else=
"" property=
"jar.usage.message.module.path" value=
" -p ${jar.usage.message.run.modulepath.with.dist.jar}">
1250 <isset property=
"modules.supported.internal"/>
1251 <length length=
"0" string=
"${jar.usage.message.run.modulepath.with.dist.jar}" when=
"greater"/>
1254 <condition else=
"" property=
"jar.usage.message.class.path" value=
" -cp ${run.classpath.with.dist.jar}">
1255 <length length=
"0" string=
"${run.classpath.with.dist.jar}" when=
"greater"/>
1257 <condition else=
"/${main.class}" property=
"jar.usage.message.main.class.class.selector" value=
"">
1258 <isset property=
"do.module.main.class"/>
1260 <condition else=
" ${main.class}" property=
"jar.usage.message.main.class" value=
" -m ${module.name}${jar.usage.message.main.class.class.selector}">
1261 <isset property=
"named.module.internal"/>
1263 <condition else=
"" property=
"jar.usage.message" value=
"To run this application from the command line without Ant, try:${line.separator}${platform.java}${jar.usage.message.module.path}${jar.usage.message.class.path}${jar.usage.message.main.class}">
1264 <isset property=
"main.class.available"/>
1266 <condition else=
"debug" property=
"jar.usage.level" value=
"info">
1267 <isset property=
"main.class.available"/>
1269 <echo level=
"${jar.usage.level}" message=
"${jar.usage.message}"/>
1271 <target depends=
"-do-jar-copylibs" if=
"do.archive" name=
"-do-jar-delete-manifest">
1273 <fileset file=
"${tmp.manifest.file}"/>
1276 <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"/>
1277 <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"/>
1278 <target name=
"-post-jar">
1279 <!-- Empty placeholder for easier customization. -->
1280 <!-- You can override this target in the ../build.xml file. -->
1282 <target depends=
"init,compile,-pre-jar,-set-module-main-class,-do-jar-without-libraries,-do-jar-with-libraries,-post-jar" name=
"-do-jar"/>
1283 <target depends=
"init,compile,-pre-jar,-do-jar,-post-jar,deploy" description=
"Build JAR." name=
"jar"/>
1289 <target name=
"-pre-deploy">
1290 <!-- Empty placeholder for easier customization. -->
1291 <!-- You can override this target in the ../build.xml file. -->
1293 <target depends=
"init" name=
"-check-jlink">
1294 <condition property=
"do.jlink.internal">
1296 <istrue value=
"${do.jlink}"/>
1297 <isset property=
"do.archive"/>
1298 <isset property=
"named.module.internal"/>
1302 <target depends=
"init,-do-jar,-post-jar,-pre-deploy,-check-jlink" if=
"do.jlink.internal" name=
"-do-deploy">
1303 <delete dir=
"${dist.jlink.dir}" failonerror=
"false" quiet=
"true"/>
1304 <property name=
"jlink.launcher.name" value=
"${application.title}"/>
1305 <condition else=
"${module.name}" property=
"jlink.add.modules" value=
"${module.name},${jlink.additionalmodules}">
1307 <isset property=
"jlink.additionalmodules"/>
1308 <length length=
"0" string=
"${jlink.additionalmodules}" when=
"greater"/>
1311 <condition property=
"jlink.do.strip.internal">
1313 <isset property=
"jlink.strip"/>
1314 <istrue value=
"${jlink.strip}"/>
1317 <condition property=
"jlink.do.additionalparam.internal">
1319 <isset property=
"jlink.additionalparam"/>
1320 <length length=
"0" string=
"${jlink.additionalparam}" when=
"greater"/>
1323 <condition property=
"jlink.do.launcher.internal">
1325 <istrue value=
"${jlink.launcher}"/>
1326 <isset property=
"main.class.available"/>
1329 <property name=
"platform.jlink" value=
"${jdk.home}/bin/jlink"/>
1330 <property name=
"jlink.systemmodules.internal" value=
"${jdk.home}/jmods"/>
1331 <exec executable=
"${platform.jlink}">
1332 <arg value=
"--module-path"/>
1333 <arg path=
"${jlink.systemmodules.internal}:${run.modulepath}:${dist.jar}"/>
1334 <arg value=
"--add-modules"/>
1335 <arg value=
"${jlink.add.modules}"/>
1336 <arg if:
set=
"jlink.do.strip.internal" value=
"--strip-debug"/>
1337 <arg if:
set=
"jlink.do.launcher.internal" value=
"--launcher"/>
1338 <arg if:
set=
"jlink.do.launcher.internal" value=
"${jlink.launcher.name}=${module.name}/${main.class}"/>
1339 <arg if:
set=
"jlink.do.additionalparam.internal" line=
"${jlink.additionalparam}"/>
1340 <arg value=
"--output"/>
1341 <arg value=
"${dist.jlink.output}"/>
1344 <target name=
"-post-deploy">
1345 <!-- Empty placeholder for easier customization. -->
1346 <!-- You can override this target in the ../build.xml file. -->
1348 <target depends=
"-do-jar,-post-jar,-pre-deploy,-do-deploy,-post-deploy" name=
"deploy"/>
1354 <target depends=
"init,compile" description=
"Run a main class." name=
"run">
1357 <arg line=
"${application.args}"/>
1359 </j2seproject1:java>
1361 <target name=
"-do-not-recompile">
1362 <property name=
"javac.includes.binary" value=
""/>
1364 <target depends=
"init,compile-single" name=
"run-single">
1365 <fail unless=
"run.class">Must select one file in the IDE or set run.class
</fail>
1366 <j2seproject1:java classname=
"${run.class}"/>
1368 <target depends=
"init,compile-test-single" name=
"run-test-with-main">
1369 <fail unless=
"run.class">Must select one file in the IDE or set run.class
</fail>
1370 <j2seproject1:java classname=
"${run.class}" classpath=
"${run.test.classpath}"/>
1377 <target depends=
"init" if=
"netbeans.home" name=
"-debug-start-debugger">
1378 <j2seproject1:nbjpdastart name=
"${debug.class}"/>
1380 <target depends=
"init" if=
"netbeans.home" name=
"-debug-start-debugger-main-test">
1381 <j2seproject1:nbjpdastart classpath=
"${debug.test.classpath}" name=
"${debug.class}"/>
1383 <target depends=
"init,compile" name=
"-debug-start-debuggee">
1384 <j2seproject3:debug>
1386 <arg line=
"${application.args}"/>
1387 </customizeDebuggee>
1388 </j2seproject3:debug>
1390 <target depends=
"init,compile,-debug-start-debugger,-debug-start-debuggee" description=
"Debug project in IDE." if=
"netbeans.home" name=
"debug"/>
1391 <target depends=
"init" if=
"netbeans.home" name=
"-debug-start-debugger-stepinto">
1392 <j2seproject1:nbjpdastart stopclassname=
"${main.class}"/>
1394 <target depends=
"init,compile,-debug-start-debugger-stepinto,-debug-start-debuggee" if=
"netbeans.home" name=
"debug-stepinto"/>
1395 <target depends=
"init,compile-single" if=
"netbeans.home" name=
"-debug-start-debuggee-single">
1396 <fail unless=
"debug.class">Must select one file in the IDE or set debug.class
</fail>
1397 <j2seproject3:debug classname=
"${debug.class}"/>
1399 <target depends=
"init,compile-single,-debug-start-debugger,-debug-start-debuggee-single" if=
"netbeans.home" name=
"debug-single"/>
1400 <target depends=
"init,compile-test-single" if=
"netbeans.home" name=
"-debug-start-debuggee-main-test">
1401 <fail unless=
"debug.class">Must select one file in the IDE or set debug.class
</fail>
1402 <j2seproject3:debug classname=
"${debug.class}" classpath=
"${debug.test.classpath}"/>
1404 <target depends=
"init,compile-test-single,-debug-start-debugger-main-test,-debug-start-debuggee-main-test" if=
"netbeans.home" name=
"debug-test-with-main"/>
1405 <target depends=
"init" name=
"-pre-debug-fix">
1406 <fail unless=
"fix.includes">Must set fix.includes
</fail>
1407 <property name=
"javac.includes" value=
"${fix.includes}.java"/>
1409 <target depends=
"init,-pre-debug-fix,compile-single" if=
"netbeans.home" name=
"-do-debug-fix">
1410 <j2seproject1:nbjpdareload/>
1412 <target depends=
"init,-pre-debug-fix,-do-debug-fix" if=
"netbeans.home" name=
"debug-fix"/>
1419 pre NB7.2 profiler integration
1421 <target depends=
"profile-init,compile" description=
"Profile a project in the IDE." if=
"profiler.info.jvmargs.agent" name=
"-profile-pre72">
1422 <fail unless=
"netbeans.home">This target only works when run from inside the NetBeans IDE.
</fail>
1425 <path path=
"${run.classpath}"/>
1430 <target depends=
"profile-init,compile-single" description=
"Profile a selected class in the IDE." if=
"profiler.info.jvmargs.agent" name=
"-profile-single-pre72">
1431 <fail unless=
"profile.class">Must select one file in the IDE or set profile.class
</fail>
1432 <fail unless=
"netbeans.home">This target only works when run from inside the NetBeans IDE.
</fail>
1435 <path path=
"${run.classpath}"/>
1438 <profile classname=
"${profile.class}"/>
1440 <target depends=
"profile-init,compile-single" if=
"profiler.info.jvmargs.agent" name=
"-profile-applet-pre72">
1441 <fail unless=
"netbeans.home">This target only works when run from inside the NetBeans IDE.
</fail>
1444 <path path=
"${run.classpath}"/>
1447 <profile classname=
"sun.applet.AppletViewer">
1449 <arg value=
"${applet.url}"/>
1453 <target depends=
"-init-macrodef-junit,profile-init,compile-test-single" if=
"profiler.info.jvmargs.agent" name=
"-profile-test-single-pre72">
1454 <fail unless=
"netbeans.home">This target only works when run from inside the NetBeans IDE.
</fail>
1457 <path path=
"${run.test.classpath}"/>
1460 <j2seproject3:junit excludes=
"${excludes}" includes=
"${includes}" testincludes=
"${profile.class}" testmethods=
"">
1462 <jvmarg value=
"-agentlib:jdwp=transport=${debug-transport},address=${jpda.address}"/>
1463 <env key=
"${profiler.info.pathvar}" path=
"${profiler.info.agentpath}:${profiler.current.path}"/>
1464 <jvmarg value=
"${profiler.info.jvmargs.agent}"/>
1465 <jvmarg line=
"${profiler.info.jvmargs}"/>
1467 <path path=
"${run.test.classpath}"/>
1470 </j2seproject3:junit>
1473 end of pre NB72 profiling section
1475 <target if=
"netbeans.home" name=
"-profile-check">
1476 <condition property=
"profiler.configured">
1478 <contains casesensitive=
"true" string=
"${run.jvmargs.ide}" substring=
"-agentpath:"/>
1479 <contains casesensitive=
"true" string=
"${run.jvmargs.ide}" substring=
"-javaagent:"/>
1483 <target depends=
"-profile-check,-profile-pre72" description=
"Profile a project in the IDE." if=
"profiler.configured" name=
"profile" unless=
"profiler.info.jvmargs.agent">
1485 <antcall target=
"run"/>
1487 <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">
1488 <fail unless=
"run.class">Must select one file in the IDE or set run.class
</fail>
1490 <antcall target=
"run-single"/>
1492 <target depends=
"-profile-test-single-pre72" description=
"Profile a selected test in the IDE." name=
"profile-test-single"/>
1493 <target depends=
"-profile-check" description=
"Profile a selected test in the IDE." if=
"profiler.configured" name=
"profile-test" unless=
"profiler.info.jvmargs">
1494 <fail unless=
"test.includes">Must select some files in the IDE or set test.includes
</fail>
1496 <antcall target=
"test-single"/>
1498 <target depends=
"-profile-check" description=
"Profile a selected class in the IDE." if=
"profiler.configured" name=
"profile-test-with-main">
1499 <fail unless=
"run.class">Must select one file in the IDE or set run.class
</fail>
1501 <antcall target=
"run-test-with-main"/>
1503 <target depends=
"-profile-check,-profile-applet-pre72" if=
"profiler.configured" name=
"profile-applet" unless=
"profiler.info.jvmargs.agent">
1504 <fail unless=
"applet.url">Must select one file in the IDE or set applet.url
</fail>
1506 <antcall target=
"run-applet"/>
1513 <target depends=
"init" if=
"have.sources" name=
"-javadoc-build">
1514 <mkdir dir=
"${dist.javadoc.dir}"/>
1515 <condition else=
"" property=
"javadoc.endorsed.classpath.cmd.line.arg" value=
"-J${endorsed.classpath.cmd.line.arg}">
1517 <isset property=
"endorsed.classpath.cmd.line.arg"/>
1519 <equals arg1=
"${endorsed.classpath.cmd.line.arg}" arg2=
""/>
1523 <condition else=
"" property=
"bug5101868workaround" value=
"*.java">
1524 <matches pattern=
"1\.[56](\..*)?" string=
"${java.version}"/>
1526 <condition else=
"" property=
"javadoc.html5.cmd.line.arg" value=
"-html5">
1528 <isset property=
"javadoc.html5"/>
1529 <available file=
"${jdk.home}${file.separator}lib${file.separator}jrt-fs.jar"/>
1532 <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}">
1534 <path path=
"${javac.classpath}"/>
1536 <fileset dir=
"${src.dir}" excludes=
"${bug5101868workaround},${excludes}" includes=
"${includes}">
1537 <filename name=
"**/*.java"/>
1539 <fileset dir=
"${build.generated.sources.dir}" erroronmissingdir=
"false">
1540 <include name=
"**/*.java"/>
1541 <exclude name=
"*.java"/>
1543 <arg line=
"${javadoc.endorsed.classpath.cmd.line.arg}"/>
1544 <arg line=
"${javadoc.html5.cmd.line.arg}"/>
1546 <copy todir=
"${dist.javadoc.dir}">
1547 <fileset dir=
"${src.dir}" excludes=
"${excludes}" includes=
"${includes}">
1548 <filename name=
"**/doc-files/**"/>
1550 <fileset dir=
"${build.generated.sources.dir}" erroronmissingdir=
"false">
1551 <include name=
"**/doc-files/**"/>
1555 <target depends=
"init,-javadoc-build" if=
"netbeans.home" name=
"-javadoc-browse" unless=
"no.javadoc.preview">
1556 <nbbrowse file=
"${dist.javadoc.dir}/index.html"/>
1558 <target depends=
"init,-javadoc-build,-javadoc-browse" description=
"Build Javadoc." name=
"javadoc"/>
1560 =========================
1561 TEST COMPILATION SECTION
1562 =========================
1564 <target depends=
"init,compile" if=
"have.tests" name=
"-pre-pre-compile-test">
1565 <mkdir dir=
"${build.test.classes.dir}"/>
1567 <target name=
"-pre-compile-test">
1568 <!-- Empty placeholder for easier customization. -->
1569 <!-- You can override this target in the ../build.xml file. -->
1571 <target depends=
"-init-source-module-properties" if=
"named.module.internal" name=
"-init-test-javac-module-properties-with-module">
1572 <j2seproject3:modulename property=
"test.module.name" sourcepath=
"${test.src.dir}"/>
1573 <condition else=
"${empty.dir}" property=
"javac.test.sourcepath" value=
"${test.src.dir}">
1575 <isset property=
"test.module.name"/>
1576 <length length=
"0" string=
"${test.module.name}" when=
"greater"/>
1579 <condition else=
"--patch-module ${module.name}=${test.src.dir} --add-reads ${module.name}=ALL-UNNAMED" property=
"javac.test.compilerargs" value=
"--add-reads ${test.module.name}=ALL-UNNAMED">
1581 <isset property=
"test.module.name"/>
1582 <length length=
"0" string=
"${test.module.name}" when=
"greater"/>
1586 <target depends=
"-init-source-module-properties" if=
"named.module.internal" name=
"-init-test-run-module-properties">
1587 <condition else=
"${module.name}" property=
"run.test.addexport.source.module.internal" value=
"${test.module.name}">
1589 <isset property=
"test.module.name"/>
1590 <length length=
"0" string=
"${test.module.name}" when=
"greater"/>
1593 <fileset dir=
"${build.test.classes.dir}" id=
"run.test.packages.internal" includes=
"**/*.class"/>
1594 <property location=
"${build.test.classes.dir}" name=
"build.test.classes.dir.abs.internal"/>
1595 <pathconvert pathsep=
" " property=
"run.test.addexports.internal" refid=
"run.test.packages.internal">
1597 <regexpmapper from=
"^(.*)\Q${file.separator}\E.*\.class$$" to=
"\1"/>
1600 <replacestring from=
"${build.test.classes.dir.abs.internal}" to=
""/>
1602 <cutdirsmapper dirs=
"1"/>
1603 <packagemapper from=
"*" to=
"--add-exports ${run.test.addexport.source.module.internal}/*=ALL-UNNAMED"/>
1606 <condition else=
"--patch-module ${module.name}=${build.test.classes.dir} --add-modules ${module.name} --add-reads ${module.name}=ALL-UNNAMED ${run.test.addexports.internal}" property=
"run.test.jvmargs" value=
"--add-modules ${test.module.name} --add-reads ${test.module.name}=ALL-UNNAMED ${run.test.addexports.internal}">
1608 <isset property=
"test.module.name"/>
1609 <length length=
"0" string=
"${test.module.name}" when=
"greater"/>
1613 <target depends=
"-init-source-module-properties" name=
"-init-test-module-properties-without-module" unless=
"named.module.internal">
1614 <property name=
"javac.test.sourcepath" value=
"${empty.dir}"/>
1615 <property name=
"javac.test.compilerargs" value=
""/>
1616 <property name=
"run.test.jvmargs" value=
""/>
1618 <target depends=
"-init-test-javac-module-properties-with-module,-init-test-module-properties-without-module" name=
"-init-test-module-properties"/>
1619 <target if=
"do.depend.true" name=
"-compile-test-depend">
1620 <j2seproject3:depend classpath=
"${javac.test.classpath}" destdir=
"${build.test.classes.dir}" srcdir=
"${test.src.dir}"/>
1622 <target depends=
"init,deps-jar,compile,-init-test-module-properties,-pre-pre-compile-test,-pre-compile-test,-compile-test-depend" if=
"have.tests" name=
"-do-compile-test">
1623 <j2seproject3:javac apgeneratedsrcdir=
"${build.test.classes.dir}" classpath=
"${javac.test.classpath}" debug=
"true" destdir=
"${build.test.classes.dir}" modulepath=
"${javac.test.modulepath}" processorpath=
"${javac.test.processorpath}" sourcepath=
"${javac.test.sourcepath}" srcdir=
"${test.src.dir}">
1625 <compilerarg line=
"${javac.test.compilerargs}"/>
1627 </j2seproject3:javac>
1628 <copy todir=
"${build.test.classes.dir}">
1629 <fileset dir=
"${test.src.dir}" excludes=
"${build.classes.excludes},${excludes}" includes=
"${includes}"/>
1632 <target name=
"-post-compile-test">
1633 <!-- Empty placeholder for easier customization. -->
1634 <!-- You can override this target in the ../build.xml file. -->
1636 <target depends=
"init,compile,-pre-pre-compile-test,-pre-compile-test,-do-compile-test,-post-compile-test" name=
"compile-test"/>
1637 <target name=
"-pre-compile-test-single">
1638 <!-- Empty placeholder for easier customization. -->
1639 <!-- You can override this target in the ../build.xml file. -->
1641 <target depends=
"init,deps-jar,compile,-init-test-module-properties,-pre-pre-compile-test,-pre-compile-test-single" if=
"have.tests" name=
"-do-compile-test-single">
1642 <fail unless=
"javac.includes">Must select some files in the IDE or set javac.includes
</fail>
1643 <j2seproject3:force-recompile destdir=
"${build.test.classes.dir}"/>
1644 <j2seproject3:javac apgeneratedsrcdir=
"${build.test.classes.dir}" classpath=
"${javac.test.classpath}" debug=
"true" destdir=
"${build.test.classes.dir}" excludes=
"" includes=
"${javac.includes}, module-info.java" modulepath=
"${javac.test.modulepath}" processorpath=
"${javac.test.processorpath}" sourcepath=
"${test.src.dir}" srcdir=
"${test.src.dir}">
1646 <compilerarg line=
"${javac.test.compilerargs}"/>
1648 </j2seproject3:javac>
1649 <copy todir=
"${build.test.classes.dir}">
1650 <fileset dir=
"${test.src.dir}" excludes=
"${build.classes.excludes},${excludes}" includes=
"${includes}"/>
1653 <target name=
"-post-compile-test-single">
1654 <!-- Empty placeholder for easier customization. -->
1655 <!-- You can override this target in the ../build.xml file. -->
1657 <target depends=
"init,compile,-pre-pre-compile-test,-pre-compile-test-single,-do-compile-test-single,-post-compile-test-single" name=
"compile-test-single"/>
1659 =======================
1660 TEST EXECUTION SECTION
1661 =======================
1663 <target depends=
"init" if=
"have.tests" name=
"-pre-test-run">
1664 <mkdir dir=
"${build.test.results.dir}"/>
1666 <target depends=
"init,compile-test,-init-test-run-module-properties,-pre-test-run" if=
"have.tests" name=
"-do-test-run">
1667 <j2seproject3:test includes=
"${includes}" testincludes=
"**/*Test.java"/>
1669 <target depends=
"init,compile-test,-pre-test-run,-do-test-run" if=
"have.tests" name=
"-post-test-run">
1670 <fail if=
"tests.failed" unless=
"ignore.failing.tests">Some tests failed; see details above.
</fail>
1672 <target depends=
"init" if=
"have.tests" name=
"test-report"/>
1673 <target depends=
"init" if=
"netbeans.home+have.tests" name=
"-test-browse"/>
1674 <target depends=
"init,compile-test,-pre-test-run,-do-test-run,test-report,-post-test-run,-test-browse" description=
"Run unit tests." name=
"test"/>
1675 <target depends=
"init" if=
"have.tests" name=
"-pre-test-run-single">
1676 <mkdir dir=
"${build.test.results.dir}"/>
1678 <target depends=
"init,compile-test-single,-init-test-run-module-properties,-pre-test-run-single" if=
"have.tests" name=
"-do-test-run-single">
1679 <fail unless=
"test.includes">Must select some files in the IDE or set test.includes
</fail>
1680 <j2seproject3:test excludes=
"" includes=
"${test.includes}" testincludes=
"${test.includes}"/>
1682 <target depends=
"init,compile-test-single,-pre-test-run-single,-do-test-run-single" if=
"have.tests" name=
"-post-test-run-single">
1683 <fail if=
"tests.failed" unless=
"ignore.failing.tests">Some tests failed; see details above.
</fail>
1685 <target depends=
"init,compile-test-single,-init-test-run-module-properties,-pre-test-run-single,-do-test-run-single,-post-test-run-single" description=
"Run single unit test." name=
"test-single"/>
1686 <target depends=
"init,compile-test-single,-pre-test-run-single" if=
"have.tests" name=
"-do-test-run-single-method">
1687 <fail unless=
"test.class">Must select some files in the IDE or set test.class
</fail>
1688 <fail unless=
"test.method">Must select some method in the IDE or set test.method
</fail>
1689 <j2seproject3:test excludes=
"" includes=
"${javac.includes}" testincludes=
"${test.class}" testmethods=
"${test.method}"/>
1691 <target depends=
"init,compile-test-single,-pre-test-run-single,-do-test-run-single-method" if=
"have.tests" name=
"-post-test-run-single-method">
1692 <fail if=
"tests.failed" unless=
"ignore.failing.tests">Some tests failed; see details above.
</fail>
1694 <target depends=
"init,compile-test-single,-init-test-run-module-properties,-pre-test-run-single,-do-test-run-single-method,-post-test-run-single-method" description=
"Run single unit test." name=
"test-single-method"/>
1696 =======================
1697 TEST DEBUGGING SECTION
1698 =======================
1700 <target depends=
"init,compile-test-single,-pre-test-run-single" if=
"have.tests" name=
"-debug-start-debuggee-test">
1701 <fail unless=
"test.class">Must select one file in the IDE or set test.class
</fail>
1702 <j2seproject3:test-debug excludes=
"" includes=
"${javac.includes}" testClass=
"${test.class}" testincludes=
"${javac.includes}"/>
1704 <target depends=
"init,compile-test-single,-pre-test-run-single" if=
"have.tests" name=
"-debug-start-debuggee-test-method">
1705 <fail unless=
"test.class">Must select one file in the IDE or set test.class
</fail>
1706 <fail unless=
"test.method">Must select some method in the IDE or set test.method
</fail>
1707 <j2seproject3:test-debug excludes=
"" includes=
"${javac.includes}" testClass=
"${test.class}" testMethod=
"${test.method}" testincludes=
"${test.class}" testmethods=
"${test.method}"/>
1709 <target depends=
"init,compile-test" if=
"netbeans.home+have.tests" name=
"-debug-start-debugger-test">
1710 <j2seproject1:nbjpdastart classpath=
"${debug.test.classpath}" name=
"${test.class}"/>
1712 <target depends=
"init,compile-test-single,-init-test-run-module-properties,-debug-start-debugger-test,-debug-start-debuggee-test" name=
"debug-test"/>
1713 <target depends=
"init,compile-test-single,-init-test-run-module-properties,-debug-start-debugger-test,-debug-start-debuggee-test-method" name=
"debug-test-method"/>
1714 <target depends=
"debug-test-method" name=
"debug-single-method"/>
1715 <target depends=
"init,-pre-debug-fix,compile-test-single" if=
"netbeans.home" name=
"-do-debug-fix-test">
1716 <j2seproject1:nbjpdareload dir=
"${build.test.classes.dir}"/>
1718 <target depends=
"init,-pre-debug-fix,-do-debug-fix-test" if=
"netbeans.home" name=
"debug-fix-test"/>
1720 =========================
1721 APPLET EXECUTION SECTION
1722 =========================
1724 <target depends=
"init,compile-single" name=
"run-applet">
1725 <fail unless=
"applet.url">Must select one file in the IDE or set applet.url
</fail>
1726 <j2seproject1:java classname=
"sun.applet.AppletViewer">
1728 <arg value=
"${applet.url}"/>
1730 </j2seproject1:java>
1733 =========================
1734 APPLET DEBUGGING SECTION
1735 =========================
1737 <target depends=
"init,compile-single" if=
"netbeans.home" name=
"-debug-start-debuggee-applet">
1738 <fail unless=
"applet.url">Must select one file in the IDE or set applet.url
</fail>
1739 <j2seproject3:debug classname=
"sun.applet.AppletViewer">
1741 <arg value=
"${applet.url}"/>
1742 </customizeDebuggee>
1743 </j2seproject3:debug>
1745 <target depends=
"init,compile-single,-debug-start-debugger,-debug-start-debuggee-applet" if=
"netbeans.home" name=
"debug-applet"/>
1751 <target name=
"-deps-clean-init" unless=
"built-clean.properties">
1752 <property location=
"${build.dir}/built-clean.properties" name=
"built-clean.properties"/>
1753 <delete file=
"${built-clean.properties}" quiet=
"true"/>
1755 <target if=
"already.built.clean.${basedir}" name=
"-warn-already-built-clean">
1756 <echo level=
"warn" message=
"Cycle detected: Habeas was already built"/>
1758 <target depends=
"init,-deps-clean-init" name=
"deps-clean" unless=
"no.deps">
1759 <mkdir dir=
"${build.dir}"/>
1760 <touch file=
"${built-clean.properties}" verbose=
"false"/>
1761 <property file=
"${built-clean.properties}" prefix=
"already.built.clean."/>
1762 <antcall target=
"-warn-already-built-clean"/>
1763 <propertyfile file=
"${built-clean.properties}">
1764 <entry key=
"${basedir}" value=
""/>
1767 <target depends=
"init" name=
"-do-clean">
1768 <delete dir=
"${build.dir}"/>
1769 <delete dir=
"${dist.jlink.output}"/>
1770 <delete dir=
"${dist.dir}" followsymlinks=
"false" includeemptydirs=
"true"/>
1772 <target name=
"-post-clean">
1773 <!-- Empty placeholder for easier customization. -->
1774 <!-- You can override this target in the ../build.xml file. -->
1776 <target depends=
"init,deps-clean,-do-clean,-post-clean" description=
"Clean build products." name=
"clean"/>
1777 <target name=
"-check-call-dep">
1778 <property file=
"${call.built.properties}" prefix=
"already.built."/>
1779 <condition property=
"should.call.dep">
1782 <isset property=
"already.built.${call.subproject}"/>
1784 <available file=
"${call.script}"/>
1788 <target depends=
"-check-call-dep" if=
"should.call.dep" name=
"-maybe-call-dep">
1789 <ant antfile=
"${call.script}" inheritall=
"false" target=
"${call.target}">
1791 <propertyref prefix=
"transfer."/>
1792 <mapper from=
"transfer.*" to=
"*" type=
"glob"/>