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=
"SummerOfCode-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}"/>
133 <condition property=
"netbeans.home+have.tests">
135 <isset property=
"netbeans.home"/>
136 <isset property=
"have.tests"/>
139 <condition property=
"no.javadoc.preview">
141 <isset property=
"javadoc.preview"/>
142 <isfalse value=
"${javadoc.preview}"/>
145 <property name=
"run.jvmargs" value=
""/>
146 <property name=
"run.jvmargs.ide" value=
""/>
147 <property name=
"javac.compilerargs" value=
""/>
148 <property name=
"work.dir" value=
"${basedir}"/>
149 <condition property=
"no.deps">
151 <istrue value=
"${no.dependencies}"/>
154 <property name=
"javac.debug" value=
"true"/>
155 <property name=
"javadoc.preview" value=
"true"/>
156 <property name=
"application.args" value=
""/>
157 <property name=
"source.encoding" value=
"${file.encoding}"/>
158 <property name=
"runtime.encoding" value=
"${source.encoding}"/>
159 <condition property=
"javadoc.encoding.used" value=
"${javadoc.encoding}">
161 <isset property=
"javadoc.encoding"/>
163 <equals arg1=
"${javadoc.encoding}" arg2=
""/>
167 <property name=
"javadoc.encoding.used" value=
"${source.encoding}"/>
168 <property name=
"includes" value=
"**"/>
169 <property name=
"excludes" value=
""/>
170 <property name=
"do.depend" value=
"false"/>
171 <condition property=
"do.depend.true">
172 <istrue value=
"${do.depend}"/>
174 <path id=
"endorsed.classpath.path" path=
"${endorsed.classpath}"/>
175 <condition else=
"" property=
"endorsed.classpath.cmd.line.arg" value=
"-Xbootclasspath/p:'${toString:endorsed.classpath.path}'">
177 <isset property=
"endorsed.classpath"/>
179 <equals arg1=
"${endorsed.classpath}" arg2=
"" trim=
"true"/>
183 <condition else=
"" property=
"javac.profile.cmd.line.arg" value=
"-profile ${javac.profile}">
184 <isset property=
"profile.available"/>
186 <condition else=
"false" property=
"jdkBug6558476">
188 <matches pattern=
"1\.[56]" string=
"${java.specification.version}"/>
194 <condition else=
"false" property=
"javac.fork">
196 <istrue value=
"${jdkBug6558476}"/>
197 <istrue value=
"${javac.external.vm}"/>
200 <property name=
"jar.index" value=
"false"/>
201 <property name=
"jar.index.metainf" value=
"${jar.index}"/>
202 <property name=
"copylibs.rebase" value=
"true"/>
203 <available file=
"${meta.inf.dir}/persistence.xml" property=
"has.persistence.xml"/>
204 <condition property=
"junit.available">
206 <available classname=
"org.junit.Test" classpath=
"${run.test.classpath}"/>
207 <available classname=
"junit.framework.Test" classpath=
"${run.test.classpath}"/>
210 <condition property=
"testng.available">
211 <available classname=
"org.testng.annotations.Test" classpath=
"${run.test.classpath}"/>
213 <condition property=
"junit+testng.available">
215 <istrue value=
"${junit.available}"/>
216 <istrue value=
"${testng.available}"/>
219 <condition else=
"testng" property=
"testng.mode" value=
"mixed">
220 <istrue value=
"${junit+testng.available}"/>
222 <condition else=
"" property=
"testng.debug.mode" value=
"-mixed">
223 <istrue value=
"${junit+testng.available}"/>
225 <property name=
"java.failonerror" value=
"true"/>
227 <target name=
"-post-init">
228 <!-- Empty placeholder for easier customization. -->
229 <!-- You can override this target in the ../build.xml file. -->
231 <target depends=
"-pre-init,-init-private,-init-user,-init-project,-do-init" name=
"-init-check">
232 <fail unless=
"src.dir">Must set src.dir
</fail>
233 <fail unless=
"test.src.dir">Must set test.src.dir
</fail>
234 <fail unless=
"build.dir">Must set build.dir
</fail>
235 <fail unless=
"dist.dir">Must set dist.dir
</fail>
236 <fail unless=
"build.classes.dir">Must set build.classes.dir
</fail>
237 <fail unless=
"dist.javadoc.dir">Must set dist.javadoc.dir
</fail>
238 <fail unless=
"build.test.classes.dir">Must set build.test.classes.dir
</fail>
239 <fail unless=
"build.test.results.dir">Must set build.test.results.dir
</fail>
240 <fail unless=
"build.classes.excludes">Must set build.classes.excludes
</fail>
241 <fail unless=
"dist.jar">Must set dist.jar
</fail>
243 <target name=
"-init-macrodef-property">
244 <macrodef name=
"property" uri=
"http://www.netbeans.org/ns/j2se-project/1">
245 <attribute name=
"name"/>
246 <attribute name=
"value"/>
248 <property name=
"@{name}" value=
"${@{value}}"/>
252 <target depends=
"-init-ap-cmdline-properties" if=
"ap.supported.internal" name=
"-init-macrodef-javac-with-processors">
253 <macrodef name=
"javac" uri=
"http://www.netbeans.org/ns/j2se-project/3">
254 <attribute default=
"${src.dir}" name=
"srcdir"/>
255 <attribute default=
"${build.classes.dir}" name=
"destdir"/>
256 <attribute default=
"${javac.classpath}" name=
"classpath"/>
257 <attribute default=
"${javac.processorpath}" name=
"processorpath"/>
258 <attribute default=
"${build.generated.sources.dir}/ap-source-output" name=
"apgeneratedsrcdir"/>
259 <attribute default=
"${includes}" name=
"includes"/>
260 <attribute default=
"${excludes}" name=
"excludes"/>
261 <attribute default=
"${javac.debug}" name=
"debug"/>
262 <attribute default=
"${empty.dir}" name=
"sourcepath"/>
263 <attribute default=
"${empty.dir}" name=
"gensrcdir"/>
264 <element name=
"customize" optional=
"true"/>
266 <property location=
"${build.dir}/empty" name=
"empty.dir"/>
267 <mkdir dir=
"${empty.dir}"/>
268 <mkdir dir=
"@{apgeneratedsrcdir}"/>
269 <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}">
271 <dirset dir=
"@{gensrcdir}" erroronmissingdir=
"false">
276 <path path=
"@{classpath}"/>
278 <compilerarg line=
"${endorsed.classpath.cmd.line.arg}"/>
279 <compilerarg line=
"${javac.profile.cmd.line.arg}"/>
280 <compilerarg line=
"${javac.compilerargs}"/>
281 <compilerarg value=
"-processorpath"/>
282 <compilerarg path=
"@{processorpath}:${empty.dir}"/>
283 <compilerarg line=
"${ap.processors.internal}"/>
284 <compilerarg line=
"${annotation.processing.processor.options}"/>
285 <compilerarg value=
"-s"/>
286 <compilerarg path=
"@{apgeneratedsrcdir}"/>
287 <compilerarg line=
"${ap.proc.none.internal}"/>
293 <target depends=
"-init-ap-cmdline-properties" name=
"-init-macrodef-javac-without-processors" unless=
"ap.supported.internal">
294 <macrodef name=
"javac" uri=
"http://www.netbeans.org/ns/j2se-project/3">
295 <attribute default=
"${src.dir}" name=
"srcdir"/>
296 <attribute default=
"${build.classes.dir}" name=
"destdir"/>
297 <attribute default=
"${javac.classpath}" name=
"classpath"/>
298 <attribute default=
"${javac.processorpath}" name=
"processorpath"/>
299 <attribute default=
"${build.generated.sources.dir}/ap-source-output" name=
"apgeneratedsrcdir"/>
300 <attribute default=
"${includes}" name=
"includes"/>
301 <attribute default=
"${excludes}" name=
"excludes"/>
302 <attribute default=
"${javac.debug}" name=
"debug"/>
303 <attribute default=
"${empty.dir}" name=
"sourcepath"/>
304 <attribute default=
"${empty.dir}" name=
"gensrcdir"/>
305 <element name=
"customize" optional=
"true"/>
307 <property location=
"${build.dir}/empty" name=
"empty.dir"/>
308 <mkdir dir=
"${empty.dir}"/>
309 <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}">
311 <dirset dir=
"@{gensrcdir}" erroronmissingdir=
"false">
316 <path path=
"@{classpath}"/>
318 <compilerarg line=
"${endorsed.classpath.cmd.line.arg}"/>
319 <compilerarg line=
"${javac.profile.cmd.line.arg}"/>
320 <compilerarg line=
"${javac.compilerargs}"/>
326 <target depends=
"-init-macrodef-javac-with-processors,-init-macrodef-javac-without-processors" name=
"-init-macrodef-javac">
327 <macrodef name=
"depend" uri=
"http://www.netbeans.org/ns/j2se-project/3">
328 <attribute default=
"${src.dir}" name=
"srcdir"/>
329 <attribute default=
"${build.classes.dir}" name=
"destdir"/>
330 <attribute default=
"${javac.classpath}" name=
"classpath"/>
332 <depend cache=
"${build.dir}/depcache" destdir=
"@{destdir}" excludes=
"${excludes}" includes=
"${includes}" srcdir=
"@{srcdir}">
334 <path path=
"@{classpath}"/>
339 <macrodef name=
"force-recompile" uri=
"http://www.netbeans.org/ns/j2se-project/3">
340 <attribute default=
"${build.classes.dir}" name=
"destdir"/>
342 <fail unless=
"javac.includes">Must set javac.includes
</fail>
343 <pathconvert pathsep=
"${line.separator}" property=
"javac.includes.binary">
345 <filelist dir=
"@{destdir}" files=
"${javac.includes}"/>
347 <globmapper from=
"*.java" to=
"*.class"/>
349 <tempfile deleteonexit=
"true" property=
"javac.includesfile.binary"/>
350 <echo file=
"${javac.includesfile.binary}" message=
"${javac.includes.binary}"/>
352 <files includesfile=
"${javac.includesfile.binary}"/>
355 <fileset file=
"${javac.includesfile.binary}"/>
360 <target if=
"${junit.available}" name=
"-init-macrodef-junit-init">
361 <condition else=
"false" property=
"nb.junit.batch" value=
"true">
363 <istrue value=
"${junit.available}"/>
365 <isset property=
"test.method"/>
369 <condition else=
"false" property=
"nb.junit.single" value=
"true">
371 <istrue value=
"${junit.available}"/>
372 <isset property=
"test.method"/>
376 <target name=
"-init-test-properties">
377 <property name=
"test.binaryincludes" value=
"<nothing>"/>
378 <property name=
"test.binarytestincludes" value=
""/>
379 <property name=
"test.binaryexcludes" value=
""/>
381 <target if=
"${nb.junit.single}" name=
"-init-macrodef-junit-single" unless=
"${nb.junit.batch}">
382 <macrodef name=
"junit" uri=
"http://www.netbeans.org/ns/j2se-project/3">
383 <attribute default=
"${includes}" name=
"includes"/>
384 <attribute default=
"${excludes}" name=
"excludes"/>
385 <attribute default=
"**" name=
"testincludes"/>
386 <attribute default=
"" name=
"testmethods"/>
387 <element name=
"customize" optional=
"true"/>
389 <property name=
"junit.forkmode" value=
"perTest"/>
390 <junit dir=
"${work.dir}" errorproperty=
"tests.failed" failureproperty=
"tests.failed" fork=
"true" forkmode=
"${junit.forkmode}" showoutput=
"true" tempdir=
"${build.dir}">
391 <test methods=
"@{testmethods}" name=
"@{testincludes}" todir=
"${build.test.results.dir}"/>
393 <propertyref prefix=
"test-sys-prop."/>
394 <mapper from=
"test-sys-prop.*" to=
"*" type=
"glob"/>
396 <formatter type=
"brief" usefile=
"false"/>
397 <formatter type=
"xml"/>
398 <jvmarg value=
"-ea"/>
404 <target depends=
"-init-test-properties" if=
"${nb.junit.batch}" name=
"-init-macrodef-junit-batch" unless=
"${nb.junit.single}">
405 <macrodef name=
"junit" uri=
"http://www.netbeans.org/ns/j2se-project/3">
406 <attribute default=
"${includes}" name=
"includes"/>
407 <attribute default=
"${excludes}" name=
"excludes"/>
408 <attribute default=
"**" name=
"testincludes"/>
409 <attribute default=
"" name=
"testmethods"/>
410 <element name=
"customize" optional=
"true"/>
412 <property name=
"junit.forkmode" value=
"perTest"/>
413 <junit dir=
"${work.dir}" errorproperty=
"tests.failed" failureproperty=
"tests.failed" fork=
"true" forkmode=
"${junit.forkmode}" showoutput=
"true" tempdir=
"${build.dir}">
414 <batchtest todir=
"${build.test.results.dir}">
415 <fileset dir=
"${test.src.dir}" excludes=
"@{excludes},${excludes}" includes=
"@{includes}">
416 <filename name=
"@{testincludes}"/>
418 <fileset dir=
"${build.test.classes.dir}" excludes=
"@{excludes},${excludes},${test.binaryexcludes}" includes=
"${test.binaryincludes}">
419 <filename name=
"${test.binarytestincludes}"/>
423 <propertyref prefix=
"test-sys-prop."/>
424 <mapper from=
"test-sys-prop.*" to=
"*" type=
"glob"/>
426 <formatter type=
"brief" usefile=
"false"/>
427 <formatter type=
"xml"/>
428 <jvmarg value=
"-ea"/>
434 <target depends=
"-init-macrodef-junit-init,-init-macrodef-junit-single, -init-macrodef-junit-batch" if=
"${junit.available}" name=
"-init-macrodef-junit"/>
435 <target if=
"${testng.available}" name=
"-init-macrodef-testng">
436 <macrodef name=
"testng" uri=
"http://www.netbeans.org/ns/j2se-project/3">
437 <attribute default=
"${includes}" name=
"includes"/>
438 <attribute default=
"${excludes}" name=
"excludes"/>
439 <attribute default=
"**" name=
"testincludes"/>
440 <attribute default=
"" name=
"testmethods"/>
441 <element name=
"customize" optional=
"true"/>
443 <condition else=
"" property=
"testng.methods.arg" value=
"@{testincludes}.@{testmethods}">
444 <isset property=
"test.method"/>
446 <union id=
"test.set">
447 <fileset dir=
"${test.src.dir}" excludes=
"@{excludes},**/*.xml,${excludes}" includes=
"@{includes}">
448 <filename name=
"@{testincludes}"/>
451 <taskdef classname=
"org.testng.TestNGAntTask" classpath=
"${run.test.classpath}" name=
"testng"/>
452 <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=
"SummerOfCode" testname=
"TestNG tests" workingDir=
"${work.dir}">
453 <xmlfileset dir=
"${build.test.classes.dir}" includes=
"@{testincludes}"/>
455 <propertyref prefix=
"test-sys-prop."/>
456 <mapper from=
"test-sys-prop.*" to=
"*" type=
"glob"/>
463 <target name=
"-init-macrodef-test-impl">
464 <macrodef name=
"test-impl" uri=
"http://www.netbeans.org/ns/j2se-project/3">
465 <attribute default=
"${includes}" name=
"includes"/>
466 <attribute default=
"${excludes}" name=
"excludes"/>
467 <attribute default=
"**" name=
"testincludes"/>
468 <attribute default=
"" name=
"testmethods"/>
469 <element implicit=
"true" name=
"customize" optional=
"true"/>
471 <echo>No tests executed.
</echo>
475 <target depends=
"-init-macrodef-junit" if=
"${junit.available}" name=
"-init-macrodef-junit-impl">
476 <macrodef name=
"test-impl" uri=
"http://www.netbeans.org/ns/j2se-project/3">
477 <attribute default=
"${includes}" name=
"includes"/>
478 <attribute default=
"${excludes}" name=
"excludes"/>
479 <attribute default=
"**" name=
"testincludes"/>
480 <attribute default=
"" name=
"testmethods"/>
481 <element implicit=
"true" name=
"customize" optional=
"true"/>
483 <j2seproject3:junit excludes=
"@{excludes}" includes=
"@{includes}" testincludes=
"@{testincludes}" testmethods=
"@{testmethods}">
485 </j2seproject3:junit>
489 <target depends=
"-init-macrodef-testng" if=
"${testng.available}" name=
"-init-macrodef-testng-impl">
490 <macrodef name=
"test-impl" uri=
"http://www.netbeans.org/ns/j2se-project/3">
491 <attribute default=
"${includes}" name=
"includes"/>
492 <attribute default=
"${excludes}" name=
"excludes"/>
493 <attribute default=
"**" name=
"testincludes"/>
494 <attribute default=
"" name=
"testmethods"/>
495 <element implicit=
"true" name=
"customize" optional=
"true"/>
497 <j2seproject3:testng excludes=
"@{excludes}" includes=
"@{includes}" testincludes=
"@{testincludes}" testmethods=
"@{testmethods}">
499 </j2seproject3:testng>
503 <target depends=
"-init-macrodef-test-impl,-init-macrodef-junit-impl,-init-macrodef-testng-impl" name=
"-init-macrodef-test">
504 <macrodef name=
"test" uri=
"http://www.netbeans.org/ns/j2se-project/3">
505 <attribute default=
"${includes}" name=
"includes"/>
506 <attribute default=
"${excludes}" name=
"excludes"/>
507 <attribute default=
"**" name=
"testincludes"/>
508 <attribute default=
"" name=
"testmethods"/>
510 <j2seproject3:test-impl excludes=
"@{excludes}" includes=
"@{includes}" testincludes=
"@{testincludes}" testmethods=
"@{testmethods}">
513 <path path=
"${run.test.classpath}"/>
515 <jvmarg line=
"${endorsed.classpath.cmd.line.arg}"/>
516 <jvmarg line=
"${run.jvmargs}"/>
517 <jvmarg line=
"${run.jvmargs.ide}"/>
519 </j2seproject3:test-impl>
523 <target if=
"${junit.available}" name=
"-init-macrodef-junit-debug" unless=
"${nb.junit.batch}">
524 <macrodef name=
"junit-debug" uri=
"http://www.netbeans.org/ns/j2se-project/3">
525 <attribute default=
"${includes}" name=
"includes"/>
526 <attribute default=
"${excludes}" name=
"excludes"/>
527 <attribute default=
"**" name=
"testincludes"/>
528 <attribute default=
"" name=
"testmethods"/>
529 <element name=
"customize" optional=
"true"/>
531 <property name=
"junit.forkmode" value=
"perTest"/>
532 <junit dir=
"${work.dir}" errorproperty=
"tests.failed" failureproperty=
"tests.failed" fork=
"true" forkmode=
"${junit.forkmode}" showoutput=
"true" tempdir=
"${build.dir}">
533 <test methods=
"@{testmethods}" name=
"@{testincludes}" todir=
"${build.test.results.dir}"/>
535 <propertyref prefix=
"test-sys-prop."/>
536 <mapper from=
"test-sys-prop.*" to=
"*" type=
"glob"/>
538 <formatter type=
"brief" usefile=
"false"/>
539 <formatter type=
"xml"/>
540 <jvmarg value=
"-ea"/>
541 <jvmarg line=
"${debug-args-line}"/>
542 <jvmarg value=
"-Xrunjdwp:transport=${debug-transport},address=${jpda.address}"/>
548 <target depends=
"-init-test-properties" if=
"${nb.junit.batch}" name=
"-init-macrodef-junit-debug-batch">
549 <macrodef name=
"junit-debug" uri=
"http://www.netbeans.org/ns/j2se-project/3">
550 <attribute default=
"${includes}" name=
"includes"/>
551 <attribute default=
"${excludes}" name=
"excludes"/>
552 <attribute default=
"**" name=
"testincludes"/>
553 <attribute default=
"" name=
"testmethods"/>
554 <element name=
"customize" optional=
"true"/>
556 <property name=
"junit.forkmode" value=
"perTest"/>
557 <junit dir=
"${work.dir}" errorproperty=
"tests.failed" failureproperty=
"tests.failed" fork=
"true" forkmode=
"${junit.forkmode}" showoutput=
"true" tempdir=
"${build.dir}">
558 <batchtest todir=
"${build.test.results.dir}">
559 <fileset dir=
"${test.src.dir}" excludes=
"@{excludes},${excludes}" includes=
"@{includes}">
560 <filename name=
"@{testincludes}"/>
562 <fileset dir=
"${build.test.classes.dir}" excludes=
"@{excludes},${excludes},${test.binaryexcludes}" includes=
"${test.binaryincludes}">
563 <filename name=
"${test.binarytestincludes}"/>
567 <propertyref prefix=
"test-sys-prop."/>
568 <mapper from=
"test-sys-prop.*" to=
"*" type=
"glob"/>
570 <formatter type=
"brief" usefile=
"false"/>
571 <formatter type=
"xml"/>
572 <jvmarg value=
"-ea"/>
573 <jvmarg line=
"${debug-args-line}"/>
574 <jvmarg value=
"-Xrunjdwp:transport=${debug-transport},address=${jpda.address}"/>
580 <target depends=
"-init-macrodef-junit-debug,-init-macrodef-junit-debug-batch" if=
"${junit.available}" name=
"-init-macrodef-junit-debug-impl">
581 <macrodef name=
"test-debug-impl" uri=
"http://www.netbeans.org/ns/j2se-project/3">
582 <attribute default=
"${includes}" name=
"includes"/>
583 <attribute default=
"${excludes}" name=
"excludes"/>
584 <attribute default=
"**" name=
"testincludes"/>
585 <attribute default=
"" name=
"testmethods"/>
586 <element implicit=
"true" name=
"customize" optional=
"true"/>
588 <j2seproject3:junit-debug excludes=
"@{excludes}" includes=
"@{includes}" testincludes=
"@{testincludes}" testmethods=
"@{testmethods}">
590 </j2seproject3:junit-debug>
594 <target if=
"${testng.available}" name=
"-init-macrodef-testng-debug">
595 <macrodef name=
"testng-debug" uri=
"http://www.netbeans.org/ns/j2se-project/3">
596 <attribute default=
"${main.class}" name=
"testClass"/>
597 <attribute default=
"" name=
"testMethod"/>
598 <element name=
"customize2" optional=
"true"/>
600 <condition else=
"-testclass @{testClass}" property=
"test.class.or.method" value=
"-methods @{testClass}.@{testMethod}">
601 <isset property=
"test.method"/>
603 <condition else=
"-suitename SummerOfCode -testname @{testClass} ${test.class.or.method}" property=
"testng.cmd.args" value=
"@{testClass}">
604 <matches pattern=
".*\.xml" string=
"@{testClass}"/>
606 <delete dir=
"${build.test.results.dir}" quiet=
"true"/>
607 <mkdir dir=
"${build.test.results.dir}"/>
608 <j2seproject3:debug classname=
"org.testng.TestNG" classpath=
"${debug.test.classpath}">
611 <jvmarg value=
"-ea"/>
612 <arg line=
"${testng.debug.mode}"/>
613 <arg line=
"-d ${build.test.results.dir}"/>
614 <arg line=
"-listener org.testng.reporters.VerboseReporter"/>
615 <arg line=
"${testng.cmd.args}"/>
617 </j2seproject3:debug>
621 <target depends=
"-init-macrodef-testng-debug" if=
"${testng.available}" name=
"-init-macrodef-testng-debug-impl">
622 <macrodef name=
"testng-debug-impl" uri=
"http://www.netbeans.org/ns/j2se-project/3">
623 <attribute default=
"${main.class}" name=
"testClass"/>
624 <attribute default=
"" name=
"testMethod"/>
625 <element implicit=
"true" name=
"customize2" optional=
"true"/>
627 <j2seproject3:testng-debug testClass=
"@{testClass}" testMethod=
"@{testMethod}">
629 </j2seproject3:testng-debug>
633 <target depends=
"-init-macrodef-junit-debug-impl" if=
"${junit.available}" name=
"-init-macrodef-test-debug-junit">
634 <macrodef name=
"test-debug" uri=
"http://www.netbeans.org/ns/j2se-project/3">
635 <attribute default=
"${includes}" name=
"includes"/>
636 <attribute default=
"${excludes}" name=
"excludes"/>
637 <attribute default=
"**" name=
"testincludes"/>
638 <attribute default=
"" name=
"testmethods"/>
639 <attribute default=
"${main.class}" name=
"testClass"/>
640 <attribute default=
"" name=
"testMethod"/>
642 <j2seproject3:test-debug-impl excludes=
"@{excludes}" includes=
"@{includes}" testincludes=
"@{testincludes}" testmethods=
"@{testmethods}">
645 <path path=
"${run.test.classpath}"/>
647 <jvmarg line=
"${endorsed.classpath.cmd.line.arg}"/>
648 <jvmarg line=
"${run.jvmargs}"/>
649 <jvmarg line=
"${run.jvmargs.ide}"/>
651 </j2seproject3:test-debug-impl>
655 <target depends=
"-init-macrodef-testng-debug-impl" if=
"${testng.available}" name=
"-init-macrodef-test-debug-testng">
656 <macrodef name=
"test-debug" uri=
"http://www.netbeans.org/ns/j2se-project/3">
657 <attribute default=
"${includes}" name=
"includes"/>
658 <attribute default=
"${excludes}" name=
"excludes"/>
659 <attribute default=
"**" name=
"testincludes"/>
660 <attribute default=
"" name=
"testmethods"/>
661 <attribute default=
"${main.class}" name=
"testClass"/>
662 <attribute default=
"" name=
"testMethod"/>
664 <j2seproject3:testng-debug-impl testClass=
"@{testClass}" testMethod=
"@{testMethod}">
667 <propertyref prefix=
"test-sys-prop."/>
668 <mapper from=
"test-sys-prop.*" to=
"*" type=
"glob"/>
671 </j2seproject3:testng-debug-impl>
675 <target depends=
"-init-macrodef-test-debug-junit,-init-macrodef-test-debug-testng" name=
"-init-macrodef-test-debug"/>
677 pre NB7.2 profiling section; consider it deprecated
679 <target depends=
"-profile-pre-init, init, -profile-post-init, -profile-init-macrodef-profile, -profile-init-check" if=
"profiler.info.jvmargs.agent" name=
"profile-init"/>
680 <target if=
"profiler.info.jvmargs.agent" name=
"-profile-pre-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-post-init">
685 <!-- Empty placeholder for easier customization. -->
686 <!-- You can override this target in the ../build.xml file. -->
688 <target if=
"profiler.info.jvmargs.agent" name=
"-profile-init-macrodef-profile">
689 <macrodef name=
"resolve">
690 <attribute name=
"name"/>
691 <attribute name=
"value"/>
693 <property name=
"@{name}" value=
"${env.@{value}}"/>
696 <macrodef name=
"profile">
697 <attribute default=
"${main.class}" name=
"classname"/>
698 <element name=
"customize" optional=
"true"/>
700 <property environment=
"env"/>
701 <resolve name=
"profiler.current.path" value=
"${profiler.info.pathvar}"/>
702 <java classname=
"@{classname}" dir=
"${profiler.info.dir}" failonerror=
"${java.failonerror}" fork=
"true" jvm=
"${profiler.info.jvm}">
703 <jvmarg line=
"${endorsed.classpath.cmd.line.arg}"/>
704 <jvmarg value=
"${profiler.info.jvmargs.agent}"/>
705 <jvmarg line=
"${profiler.info.jvmargs}"/>
706 <env key=
"${profiler.info.pathvar}" path=
"${profiler.info.agentpath}:${profiler.current.path}"/>
707 <arg line=
"${application.args}"/>
709 <path path=
"${run.classpath}"/>
712 <propertyref prefix=
"run-sys-prop."/>
713 <mapper from=
"run-sys-prop.*" to=
"*" type=
"glob"/>
720 <target depends=
"-profile-pre-init, init, -profile-post-init, -profile-init-macrodef-profile" if=
"profiler.info.jvmargs.agent" name=
"-profile-init-check">
721 <fail unless=
"profiler.info.jvm">Must set JVM to use for profiling in profiler.info.jvm
</fail>
722 <fail unless=
"profiler.info.jvmargs.agent">Must set profiler agent JVM arguments in profiler.info.jvmargs.agent
</fail>
725 end of pre NB7.2 profiling section
727 <target depends=
"-init-debug-args" name=
"-init-macrodef-nbjpda">
728 <macrodef name=
"nbjpdastart" uri=
"http://www.netbeans.org/ns/j2se-project/1">
729 <attribute default=
"${main.class}" name=
"name"/>
730 <attribute default=
"${debug.classpath}" name=
"classpath"/>
731 <attribute default=
"" name=
"stopclassname"/>
733 <nbjpdastart addressproperty=
"jpda.address" name=
"@{name}" stopclassname=
"@{stopclassname}" transport=
"${debug-transport}">
735 <path path=
"@{classpath}"/>
740 <macrodef name=
"nbjpdareload" uri=
"http://www.netbeans.org/ns/j2se-project/1">
741 <attribute default=
"${build.classes.dir}" name=
"dir"/>
744 <fileset dir=
"@{dir}" includes=
"${fix.classes}">
745 <include name=
"${fix.includes}*.class"/>
751 <target name=
"-init-debug-args">
752 <property name=
"version-output" value=
"java version "${ant.java.version}"/>
753 <condition property=
"have-jdk-older-than-1.4">
755 <contains string=
"${version-output}" substring=
"java version "1.0"/>
756 <contains string=
"${version-output}" substring=
"java version "1.1"/>
757 <contains string=
"${version-output}" substring=
"java version "1.2"/>
758 <contains string=
"${version-output}" substring=
"java version "1.3"/>
761 <condition else=
"-Xdebug" property=
"debug-args-line" value=
"-Xdebug -Xnoagent -Djava.compiler=none">
762 <istrue value=
"${have-jdk-older-than-1.4}"/>
764 <condition else=
"dt_socket" property=
"debug-transport-by-os" value=
"dt_shmem">
765 <os family=
"windows"/>
767 <condition else=
"${debug-transport-by-os}" property=
"debug-transport" value=
"${debug.transport}">
768 <isset property=
"debug.transport"/>
771 <target depends=
"-init-debug-args" name=
"-init-macrodef-debug">
772 <macrodef name=
"debug" uri=
"http://www.netbeans.org/ns/j2se-project/3">
773 <attribute default=
"${main.class}" name=
"classname"/>
774 <attribute default=
"${debug.classpath}" name=
"classpath"/>
775 <element name=
"customize" optional=
"true"/>
777 <java classname=
"@{classname}" dir=
"${work.dir}" failonerror=
"${java.failonerror}" fork=
"true">
778 <jvmarg line=
"${endorsed.classpath.cmd.line.arg}"/>
779 <jvmarg line=
"${debug-args-line}"/>
780 <jvmarg value=
"-Xrunjdwp:transport=${debug-transport},address=${jpda.address}"/>
781 <jvmarg value=
"-Dfile.encoding=${runtime.encoding}"/>
782 <redirector errorencoding=
"${runtime.encoding}" inputencoding=
"${runtime.encoding}" outputencoding=
"${runtime.encoding}"/>
783 <jvmarg line=
"${run.jvmargs}"/>
784 <jvmarg line=
"${run.jvmargs.ide}"/>
786 <path path=
"@{classpath}"/>
789 <propertyref prefix=
"run-sys-prop."/>
790 <mapper from=
"run-sys-prop.*" to=
"*" type=
"glob"/>
797 <target name=
"-init-macrodef-java">
798 <macrodef name=
"java" uri=
"http://www.netbeans.org/ns/j2se-project/1">
799 <attribute default=
"${main.class}" name=
"classname"/>
800 <attribute default=
"${run.classpath}" name=
"classpath"/>
801 <attribute default=
"jvm" name=
"jvm"/>
802 <element name=
"customize" optional=
"true"/>
804 <java classname=
"@{classname}" dir=
"${work.dir}" failonerror=
"${java.failonerror}" fork=
"true">
805 <jvmarg line=
"${endorsed.classpath.cmd.line.arg}"/>
806 <jvmarg value=
"-Dfile.encoding=${runtime.encoding}"/>
807 <redirector errorencoding=
"${runtime.encoding}" inputencoding=
"${runtime.encoding}" outputencoding=
"${runtime.encoding}"/>
808 <jvmarg line=
"${run.jvmargs}"/>
809 <jvmarg line=
"${run.jvmargs.ide}"/>
811 <path path=
"@{classpath}"/>
814 <propertyref prefix=
"run-sys-prop."/>
815 <mapper from=
"run-sys-prop.*" to=
"*" type=
"glob"/>
822 <target name=
"-init-macrodef-copylibs">
823 <macrodef name=
"copylibs" uri=
"http://www.netbeans.org/ns/j2se-project/3">
824 <attribute default=
"${manifest.file}" name=
"manifest"/>
825 <element name=
"customize" optional=
"true"/>
827 <property location=
"${build.classes.dir}" name=
"build.classes.dir.resolved"/>
828 <pathconvert property=
"run.classpath.without.build.classes.dir">
829 <path path=
"${run.classpath}"/>
830 <map from=
"${build.classes.dir.resolved}" to=
""/>
832 <pathconvert pathsep=
" " property=
"jar.classpath">
833 <path path=
"${run.classpath.without.build.classes.dir}"/>
837 <replacestring from=
" " to=
"%20"/>
839 <globmapper from=
"*" to=
"lib/*"/>
842 <taskdef classname=
"org.netbeans.modules.java.j2seproject.copylibstask.CopyLibs" classpath=
"${libs.CopyLibs.classpath}" name=
"copylibs"/>
843 <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}">
844 <fileset dir=
"${build.classes.dir}" excludes=
"${dist.archive.excludes}"/>
846 <attribute name=
"Class-Path" value=
"${jar.classpath}"/>
853 <target name=
"-init-presetdef-jar">
854 <presetdef name=
"jar" uri=
"http://www.netbeans.org/ns/j2se-project/1">
855 <jar compress=
"${jar.compress}" index=
"${jar.index}" jarfile=
"${dist.jar}">
856 <j2seproject1:fileset dir=
"${build.classes.dir}" excludes=
"${dist.archive.excludes}"/>
860 <target name=
"-init-ap-cmdline-properties">
861 <property name=
"annotation.processing.enabled" value=
"true"/>
862 <property name=
"annotation.processing.processors.list" value=
""/>
863 <property name=
"annotation.processing.processor.options" value=
""/>
864 <property name=
"annotation.processing.run.all.processors" value=
"true"/>
865 <property name=
"javac.processorpath" value=
"${javac.classpath}"/>
866 <property name=
"javac.test.processorpath" value=
"${javac.test.classpath}"/>
867 <condition property=
"ap.supported.internal" value=
"true">
869 <matches pattern=
"1\.[0-5](\..*)?" string=
"${javac.source}"/>
873 <target depends=
"-init-ap-cmdline-properties" if=
"ap.supported.internal" name=
"-init-ap-cmdline-supported">
874 <condition else=
"" property=
"ap.processors.internal" value=
"-processor ${annotation.processing.processors.list}">
875 <isfalse value=
"${annotation.processing.run.all.processors}"/>
877 <condition else=
"" property=
"ap.proc.none.internal" value=
"-proc:none">
878 <isfalse value=
"${annotation.processing.enabled}"/>
881 <target depends=
"-init-ap-cmdline-properties,-init-ap-cmdline-supported" name=
"-init-ap-cmdline">
882 <property name=
"ap.cmd.line.internal" value=
""/>
884 <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"/>
890 <target name=
"-deps-jar-init" unless=
"built-jar.properties">
891 <property location=
"${build.dir}/built-jar.properties" name=
"built-jar.properties"/>
892 <delete file=
"${built-jar.properties}" quiet=
"true"/>
894 <target if=
"already.built.jar.${basedir}" name=
"-warn-already-built-jar">
895 <echo level=
"warn" message=
"Cycle detected: SummerOfCode was already built"/>
897 <target depends=
"init,-deps-jar-init" name=
"deps-jar" unless=
"no.deps">
898 <mkdir dir=
"${build.dir}"/>
899 <touch file=
"${built-jar.properties}" verbose=
"false"/>
900 <property file=
"${built-jar.properties}" prefix=
"already.built.jar."/>
901 <antcall target=
"-warn-already-built-jar"/>
902 <propertyfile file=
"${built-jar.properties}">
903 <entry key=
"${basedir}" value=
""/>
906 <target depends=
"init,-check-automatic-build,-clean-after-automatic-build" name=
"-verify-automatic-build"/>
907 <target depends=
"init" name=
"-check-automatic-build">
908 <available file=
"${build.classes.dir}/.netbeans_automatic_build" property=
"netbeans.automatic.build"/>
910 <target depends=
"init" if=
"netbeans.automatic.build" name=
"-clean-after-automatic-build">
911 <antcall target=
"clean"/>
913 <target depends=
"init,deps-jar" name=
"-pre-pre-compile">
914 <mkdir dir=
"${build.classes.dir}"/>
916 <target name=
"-pre-compile">
917 <!-- Empty placeholder for easier customization. -->
918 <!-- You can override this target in the ../build.xml file. -->
920 <target if=
"do.depend.true" name=
"-compile-depend">
921 <pathconvert property=
"build.generated.subdirs">
922 <dirset dir=
"${build.generated.sources.dir}" erroronmissingdir=
"false">
926 <j2seproject3:depend srcdir=
"${src.dir}:${build.generated.subdirs}"/>
928 <target depends=
"init,deps-jar,-pre-pre-compile,-pre-compile, -copy-persistence-xml,-compile-depend" if=
"have.sources" name=
"-do-compile">
929 <j2seproject3:javac gensrcdir=
"${build.generated.sources.dir}"/>
930 <copy todir=
"${build.classes.dir}">
931 <fileset dir=
"${src.dir}" excludes=
"${build.classes.excludes},${excludes}" includes=
"${includes}"/>
934 <target if=
"has.persistence.xml" name=
"-copy-persistence-xml">
935 <mkdir dir=
"${build.classes.dir}/META-INF"/>
936 <copy todir=
"${build.classes.dir}/META-INF">
937 <fileset dir=
"${meta.inf.dir}" includes=
"persistence.xml orm.xml"/>
940 <target name=
"-post-compile">
941 <!-- Empty placeholder for easier customization. -->
942 <!-- You can override this target in the ../build.xml file. -->
944 <target depends=
"init,deps-jar,-verify-automatic-build,-pre-pre-compile,-pre-compile,-do-compile,-post-compile" description=
"Compile project." name=
"compile"/>
945 <target name=
"-pre-compile-single">
946 <!-- Empty placeholder for easier customization. -->
947 <!-- You can override this target in the ../build.xml file. -->
949 <target depends=
"init,deps-jar,-pre-pre-compile" name=
"-do-compile-single">
950 <fail unless=
"javac.includes">Must select some files in the IDE or set javac.includes
</fail>
951 <j2seproject3:force-recompile/>
952 <j2seproject3:javac excludes=
"" gensrcdir=
"${build.generated.sources.dir}" includes=
"${javac.includes}" sourcepath=
"${src.dir}"/>
954 <target name=
"-post-compile-single">
955 <!-- Empty placeholder for easier customization. -->
956 <!-- You can override this target in the ../build.xml file. -->
958 <target depends=
"init,deps-jar,-verify-automatic-build,-pre-pre-compile,-pre-compile-single,-do-compile-single,-post-compile-single" name=
"compile-single"/>
964 <target depends=
"init" name=
"-pre-pre-jar">
965 <dirname file=
"${dist.jar}" property=
"dist.jar.dir"/>
966 <mkdir dir=
"${dist.jar.dir}"/>
968 <target name=
"-pre-jar">
969 <!-- Empty placeholder for easier customization. -->
970 <!-- You can override this target in the ../build.xml file. -->
972 <target depends=
"init" if=
"do.archive" name=
"-do-jar-create-manifest" unless=
"manifest.available">
973 <tempfile deleteonexit=
"true" destdir=
"${build.dir}" property=
"tmp.manifest.file"/>
974 <touch file=
"${tmp.manifest.file}" verbose=
"false"/>
976 <target depends=
"init" if=
"do.archive+manifest.available" name=
"-do-jar-copy-manifest">
977 <tempfile deleteonexit=
"true" destdir=
"${build.dir}" property=
"tmp.manifest.file"/>
978 <copy file=
"${manifest.file}" tofile=
"${tmp.manifest.file}"/>
980 <target depends=
"init,-do-jar-create-manifest,-do-jar-copy-manifest" if=
"do.archive+main.class.available" name=
"-do-jar-set-mainclass">
981 <manifest file=
"${tmp.manifest.file}" mode=
"update">
982 <attribute name=
"Main-Class" value=
"${main.class}"/>
985 <target depends=
"init,-do-jar-create-manifest,-do-jar-copy-manifest" if=
"do.archive+profile.available" name=
"-do-jar-set-profile">
986 <manifest file=
"${tmp.manifest.file}" mode=
"update">
987 <attribute name=
"Profile" value=
"${javac.profile}"/>
990 <target depends=
"init,-do-jar-create-manifest,-do-jar-copy-manifest" if=
"do.archive+splashscreen.available" name=
"-do-jar-set-splashscreen">
991 <basename file=
"${application.splash}" property=
"splashscreen.basename"/>
992 <mkdir dir=
"${build.classes.dir}/META-INF"/>
993 <copy failonerror=
"false" file=
"${application.splash}" todir=
"${build.classes.dir}/META-INF"/>
994 <manifest file=
"${tmp.manifest.file}" mode=
"update">
995 <attribute name=
"SplashScreen-Image" value=
"META-INF/${splashscreen.basename}"/>
998 <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">
999 <j2seproject3:copylibs manifest=
"${tmp.manifest.file}"/>
1000 <echo level=
"info">To run this application from the command line without Ant, try:
</echo>
1001 <property location=
"${dist.jar}" name=
"dist.jar.resolved"/>
1002 <echo level=
"info">java -jar
"${dist.jar.resolved}"</echo>
1004 <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">
1005 <j2seproject1:jar manifest=
"${tmp.manifest.file}"/>
1006 <property location=
"${build.classes.dir}" name=
"build.classes.dir.resolved"/>
1007 <property location=
"${dist.jar}" name=
"dist.jar.resolved"/>
1008 <pathconvert property=
"run.classpath.with.dist.jar">
1009 <path path=
"${run.classpath}"/>
1010 <map from=
"${build.classes.dir.resolved}" to=
"${dist.jar.resolved}"/>
1012 <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}">
1013 <isset property=
"main.class.available"/>
1015 <condition else=
"debug" property=
"jar.usage.level" value=
"info">
1016 <isset property=
"main.class.available"/>
1018 <echo level=
"${jar.usage.level}" message=
"${jar.usage.message}"/>
1020 <target depends=
"-do-jar-copylibs" if=
"do.archive" name=
"-do-jar-delete-manifest">
1022 <fileset file=
"${tmp.manifest.file}"/>
1025 <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"/>
1026 <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"/>
1027 <target name=
"-post-jar">
1028 <!-- Empty placeholder for easier customization. -->
1029 <!-- You can override this target in the ../build.xml file. -->
1031 <target depends=
"init,compile,-pre-jar,-do-jar-without-libraries,-do-jar-with-libraries,-post-jar" name=
"-do-jar"/>
1032 <target depends=
"init,compile,-pre-jar,-do-jar,-post-jar" description=
"Build JAR." name=
"jar"/>
1038 <target depends=
"init,compile" description=
"Run a main class." name=
"run">
1041 <arg line=
"${application.args}"/>
1043 </j2seproject1:java>
1045 <target name=
"-do-not-recompile">
1046 <property name=
"javac.includes.binary" value=
""/>
1048 <target depends=
"init,compile-single" name=
"run-single">
1049 <fail unless=
"run.class">Must select one file in the IDE or set run.class
</fail>
1050 <j2seproject1:java classname=
"${run.class}"/>
1052 <target depends=
"init,compile-test-single" name=
"run-test-with-main">
1053 <fail unless=
"run.class">Must select one file in the IDE or set run.class
</fail>
1054 <j2seproject1:java classname=
"${run.class}" classpath=
"${run.test.classpath}"/>
1061 <target depends=
"init" if=
"netbeans.home" name=
"-debug-start-debugger">
1062 <j2seproject1:nbjpdastart name=
"${debug.class}"/>
1064 <target depends=
"init" if=
"netbeans.home" name=
"-debug-start-debugger-main-test">
1065 <j2seproject1:nbjpdastart classpath=
"${debug.test.classpath}" name=
"${debug.class}"/>
1067 <target depends=
"init,compile" name=
"-debug-start-debuggee">
1068 <j2seproject3:debug>
1070 <arg line=
"${application.args}"/>
1072 </j2seproject3:debug>
1074 <target depends=
"init,compile,-debug-start-debugger,-debug-start-debuggee" description=
"Debug project in IDE." if=
"netbeans.home" name=
"debug"/>
1075 <target depends=
"init" if=
"netbeans.home" name=
"-debug-start-debugger-stepinto">
1076 <j2seproject1:nbjpdastart stopclassname=
"${main.class}"/>
1078 <target depends=
"init,compile,-debug-start-debugger-stepinto,-debug-start-debuggee" if=
"netbeans.home" name=
"debug-stepinto"/>
1079 <target depends=
"init,compile-single" if=
"netbeans.home" name=
"-debug-start-debuggee-single">
1080 <fail unless=
"debug.class">Must select one file in the IDE or set debug.class
</fail>
1081 <j2seproject3:debug classname=
"${debug.class}"/>
1083 <target depends=
"init,compile-single,-debug-start-debugger,-debug-start-debuggee-single" if=
"netbeans.home" name=
"debug-single"/>
1084 <target depends=
"init,compile-test-single" if=
"netbeans.home" name=
"-debug-start-debuggee-main-test">
1085 <fail unless=
"debug.class">Must select one file in the IDE or set debug.class
</fail>
1086 <j2seproject3:debug classname=
"${debug.class}" classpath=
"${debug.test.classpath}"/>
1088 <target depends=
"init,compile-test-single,-debug-start-debugger-main-test,-debug-start-debuggee-main-test" if=
"netbeans.home" name=
"debug-test-with-main"/>
1089 <target depends=
"init" name=
"-pre-debug-fix">
1090 <fail unless=
"fix.includes">Must set fix.includes
</fail>
1091 <property name=
"javac.includes" value=
"${fix.includes}.java"/>
1093 <target depends=
"init,-pre-debug-fix,compile-single" if=
"netbeans.home" name=
"-do-debug-fix">
1094 <j2seproject1:nbjpdareload/>
1096 <target depends=
"init,-pre-debug-fix,-do-debug-fix" if=
"netbeans.home" name=
"debug-fix"/>
1103 pre NB7.2 profiler integration
1105 <target depends=
"profile-init,compile" description=
"Profile a project in the IDE." if=
"profiler.info.jvmargs.agent" name=
"-profile-pre72">
1106 <fail unless=
"netbeans.home">This target only works when run from inside the NetBeans IDE.
</fail>
1109 <path path=
"${run.classpath}"/>
1114 <target depends=
"profile-init,compile-single" description=
"Profile a selected class in the IDE." if=
"profiler.info.jvmargs.agent" name=
"-profile-single-pre72">
1115 <fail unless=
"profile.class">Must select one file in the IDE or set profile.class
</fail>
1116 <fail unless=
"netbeans.home">This target only works when run from inside the NetBeans IDE.
</fail>
1119 <path path=
"${run.classpath}"/>
1122 <profile classname=
"${profile.class}"/>
1124 <target depends=
"profile-init,compile-single" if=
"profiler.info.jvmargs.agent" name=
"-profile-applet-pre72">
1125 <fail unless=
"netbeans.home">This target only works when run from inside the NetBeans IDE.
</fail>
1128 <path path=
"${run.classpath}"/>
1131 <profile classname=
"sun.applet.AppletViewer">
1133 <arg value=
"${applet.url}"/>
1137 <target depends=
"profile-init,compile-test-single" if=
"profiler.info.jvmargs.agent" name=
"-profile-test-single-pre72">
1138 <fail unless=
"netbeans.home">This target only works when run from inside the NetBeans IDE.
</fail>
1141 <path path=
"${run.test.classpath}"/>
1144 <junit dir=
"${profiler.info.dir}" errorproperty=
"tests.failed" failureproperty=
"tests.failed" fork=
"true" jvm=
"${profiler.info.jvm}" showoutput=
"true">
1145 <env key=
"${profiler.info.pathvar}" path=
"${profiler.info.agentpath}:${profiler.current.path}"/>
1146 <jvmarg value=
"${profiler.info.jvmargs.agent}"/>
1147 <jvmarg line=
"${profiler.info.jvmargs}"/>
1148 <test name=
"${profile.class}"/>
1150 <path path=
"${run.test.classpath}"/>
1153 <propertyref prefix=
"test-sys-prop."/>
1154 <mapper from=
"test-sys-prop.*" to=
"*" type=
"glob"/>
1156 <formatter type=
"brief" usefile=
"false"/>
1157 <formatter type=
"xml"/>
1161 end of pre NB72 profiling section
1163 <target if=
"netbeans.home" name=
"-profile-check">
1164 <condition property=
"profiler.configured">
1166 <contains casesensitive=
"true" string=
"${run.jvmargs.ide}" substring=
"-agentpath:"/>
1167 <contains casesensitive=
"true" string=
"${run.jvmargs.ide}" substring=
"-javaagent:"/>
1171 <target depends=
"-profile-check,-profile-pre72" description=
"Profile a project in the IDE." if=
"profiler.configured" name=
"profile" unless=
"profiler.info.jvmargs.agent">
1173 <antcall target=
"run"/>
1175 <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">
1176 <fail unless=
"run.class">Must select one file in the IDE or set run.class
</fail>
1178 <antcall target=
"run-single"/>
1180 <target depends=
"-profile-test-single-pre72" description=
"Profile a selected test in the IDE." name=
"profile-test-single"/>
1181 <target depends=
"-profile-check" description=
"Profile a selected test in the IDE." if=
"profiler.configured" name=
"profile-test" unless=
"profiler.info.jvmargs">
1182 <fail unless=
"test.includes">Must select some files in the IDE or set test.includes
</fail>
1184 <antcall target=
"test-single"/>
1186 <target depends=
"-profile-check" description=
"Profile a selected class in the IDE." if=
"profiler.configured" name=
"profile-test-with-main">
1187 <fail unless=
"run.class">Must select one file in the IDE or set run.class
</fail>
1189 <antcal target=
"run-test-with-main"/>
1191 <target depends=
"-profile-check,-profile-applet-pre72" if=
"profiler.configured" name=
"profile-applet" unless=
"profiler.info.jvmargs.agent">
1192 <fail unless=
"applet.url">Must select one file in the IDE or set applet.url
</fail>
1194 <antcall target=
"run-applet"/>
1201 <target depends=
"init" if=
"have.sources" name=
"-javadoc-build">
1202 <mkdir dir=
"${dist.javadoc.dir}"/>
1203 <condition else=
"" property=
"javadoc.endorsed.classpath.cmd.line.arg" value=
"-J${endorsed.classpath.cmd.line.arg}">
1205 <isset property=
"endorsed.classpath.cmd.line.arg"/>
1207 <equals arg1=
"${endorsed.classpath.cmd.line.arg}" arg2=
""/>
1211 <condition else=
"" property=
"bug5101868workaround" value=
"*.java">
1212 <matches pattern=
"1\.[56](\..*)?" string=
"${java.version}"/>
1214 <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}">
1216 <path path=
"${javac.classpath}"/>
1218 <fileset dir=
"${src.dir}" excludes=
"${bug5101868workaround},${excludes}" includes=
"${includes}">
1219 <filename name=
"**/*.java"/>
1221 <fileset dir=
"${build.generated.sources.dir}" erroronmissingdir=
"false">
1222 <include name=
"**/*.java"/>
1223 <exclude name=
"*.java"/>
1225 <arg line=
"${javadoc.endorsed.classpath.cmd.line.arg}"/>
1227 <copy todir=
"${dist.javadoc.dir}">
1228 <fileset dir=
"${src.dir}" excludes=
"${excludes}" includes=
"${includes}">
1229 <filename name=
"**/doc-files/**"/>
1231 <fileset dir=
"${build.generated.sources.dir}" erroronmissingdir=
"false">
1232 <include name=
"**/doc-files/**"/>
1236 <target depends=
"init,-javadoc-build" if=
"netbeans.home" name=
"-javadoc-browse" unless=
"no.javadoc.preview">
1237 <nbbrowse file=
"${dist.javadoc.dir}/index.html"/>
1239 <target depends=
"init,-javadoc-build,-javadoc-browse" description=
"Build Javadoc." name=
"javadoc"/>
1241 =========================
1242 TEST COMPILATION SECTION
1243 =========================
1245 <target depends=
"init,compile" if=
"have.tests" name=
"-pre-pre-compile-test">
1246 <mkdir dir=
"${build.test.classes.dir}"/>
1248 <target name=
"-pre-compile-test">
1249 <!-- Empty placeholder for easier customization. -->
1250 <!-- You can override this target in the ../build.xml file. -->
1252 <target if=
"do.depend.true" name=
"-compile-test-depend">
1253 <j2seproject3:depend classpath=
"${javac.test.classpath}" destdir=
"${build.test.classes.dir}" srcdir=
"${test.src.dir}"/>
1255 <target depends=
"init,deps-jar,compile,-pre-pre-compile-test,-pre-compile-test,-compile-test-depend" if=
"have.tests" name=
"-do-compile-test">
1256 <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}"/>
1257 <copy todir=
"${build.test.classes.dir}">
1258 <fileset dir=
"${test.src.dir}" excludes=
"${build.classes.excludes},${excludes}" includes=
"${includes}"/>
1261 <target name=
"-post-compile-test">
1262 <!-- Empty placeholder for easier customization. -->
1263 <!-- You can override this target in the ../build.xml file. -->
1265 <target depends=
"init,compile,-pre-pre-compile-test,-pre-compile-test,-do-compile-test,-post-compile-test" name=
"compile-test"/>
1266 <target name=
"-pre-compile-test-single">
1267 <!-- Empty placeholder for easier customization. -->
1268 <!-- You can override this target in the ../build.xml file. -->
1270 <target depends=
"init,deps-jar,compile,-pre-pre-compile-test,-pre-compile-test-single" if=
"have.tests" name=
"-do-compile-test-single">
1271 <fail unless=
"javac.includes">Must select some files in the IDE or set javac.includes
</fail>
1272 <j2seproject3:force-recompile destdir=
"${build.test.classes.dir}"/>
1273 <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}"/>
1274 <copy todir=
"${build.test.classes.dir}">
1275 <fileset dir=
"${test.src.dir}" excludes=
"${build.classes.excludes},${excludes}" includes=
"${includes}"/>
1278 <target name=
"-post-compile-test-single">
1279 <!-- Empty placeholder for easier customization. -->
1280 <!-- You can override this target in the ../build.xml file. -->
1282 <target depends=
"init,compile,-pre-pre-compile-test,-pre-compile-test-single,-do-compile-test-single,-post-compile-test-single" name=
"compile-test-single"/>
1284 =======================
1285 TEST EXECUTION SECTION
1286 =======================
1288 <target depends=
"init" if=
"have.tests" name=
"-pre-test-run">
1289 <mkdir dir=
"${build.test.results.dir}"/>
1291 <target depends=
"init,compile-test,-pre-test-run" if=
"have.tests" name=
"-do-test-run">
1292 <j2seproject3:test includes=
"${includes}" testincludes=
"**/*Test.java"/>
1294 <target depends=
"init,compile-test,-pre-test-run,-do-test-run" if=
"have.tests" name=
"-post-test-run">
1295 <fail if=
"tests.failed" unless=
"ignore.failing.tests">Some tests failed; see details above.
</fail>
1297 <target depends=
"init" if=
"have.tests" name=
"test-report"/>
1298 <target depends=
"init" if=
"netbeans.home+have.tests" name=
"-test-browse"/>
1299 <target depends=
"init,compile-test,-pre-test-run,-do-test-run,test-report,-post-test-run,-test-browse" description=
"Run unit tests." name=
"test"/>
1300 <target depends=
"init" if=
"have.tests" name=
"-pre-test-run-single">
1301 <mkdir dir=
"${build.test.results.dir}"/>
1303 <target depends=
"init,compile-test-single,-pre-test-run-single" if=
"have.tests" name=
"-do-test-run-single">
1304 <fail unless=
"test.includes">Must select some files in the IDE or set test.includes
</fail>
1305 <j2seproject3:test excludes=
"" includes=
"${test.includes}" testincludes=
"${test.includes}"/>
1307 <target depends=
"init,compile-test-single,-pre-test-run-single,-do-test-run-single" if=
"have.tests" name=
"-post-test-run-single">
1308 <fail if=
"tests.failed" unless=
"ignore.failing.tests">Some tests failed; see details above.
</fail>
1310 <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"/>
1311 <target depends=
"init,compile-test-single,-pre-test-run-single" if=
"have.tests" name=
"-do-test-run-single-method">
1312 <fail unless=
"test.class">Must select some files in the IDE or set test.class
</fail>
1313 <fail unless=
"test.method">Must select some method in the IDE or set test.method
</fail>
1314 <j2seproject3:test excludes=
"" includes=
"${javac.includes}" testincludes=
"${test.class}" testmethods=
"${test.method}"/>
1316 <target depends=
"init,compile-test-single,-pre-test-run-single,-do-test-run-single-method" if=
"have.tests" name=
"-post-test-run-single-method">
1317 <fail if=
"tests.failed" unless=
"ignore.failing.tests">Some tests failed; see details above.
</fail>
1319 <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"/>
1321 =======================
1322 TEST DEBUGGING SECTION
1323 =======================
1325 <target depends=
"init,compile-test-single,-pre-test-run-single" if=
"have.tests" name=
"-debug-start-debuggee-test">
1326 <fail unless=
"test.class">Must select one file in the IDE or set test.class
</fail>
1327 <j2seproject3:test-debug excludes=
"" includes=
"${javac.includes}" testClass=
"${test.class}" testincludes=
"${javac.includes}"/>
1329 <target depends=
"init,compile-test-single,-pre-test-run-single" if=
"have.tests" name=
"-debug-start-debuggee-test-method">
1330 <fail unless=
"test.class">Must select one file in the IDE or set test.class
</fail>
1331 <fail unless=
"test.method">Must select some method in the IDE or set test.method
</fail>
1332 <j2seproject3:test-debug excludes=
"" includes=
"${javac.includes}" testClass=
"${test.class}" testMethod=
"${test.method}" testincludes=
"${test.class}" testmethods=
"${test.method}"/>
1334 <target depends=
"init,compile-test" if=
"netbeans.home+have.tests" name=
"-debug-start-debugger-test">
1335 <j2seproject1:nbjpdastart classpath=
"${debug.test.classpath}" name=
"${test.class}"/>
1337 <target depends=
"init,compile-test-single,-debug-start-debugger-test,-debug-start-debuggee-test" name=
"debug-test"/>
1338 <target depends=
"init,compile-test-single,-debug-start-debugger-test,-debug-start-debuggee-test-method" name=
"debug-test-method"/>
1339 <target depends=
"init,-pre-debug-fix,compile-test-single" if=
"netbeans.home" name=
"-do-debug-fix-test">
1340 <j2seproject1:nbjpdareload dir=
"${build.test.classes.dir}"/>
1342 <target depends=
"init,-pre-debug-fix,-do-debug-fix-test" if=
"netbeans.home" name=
"debug-fix-test"/>
1344 =========================
1345 APPLET EXECUTION SECTION
1346 =========================
1348 <target depends=
"init,compile-single" name=
"run-applet">
1349 <fail unless=
"applet.url">Must select one file in the IDE or set applet.url
</fail>
1350 <j2seproject1:java classname=
"sun.applet.AppletViewer">
1352 <arg value=
"${applet.url}"/>
1354 </j2seproject1:java>
1357 =========================
1358 APPLET DEBUGGING SECTION
1359 =========================
1361 <target depends=
"init,compile-single" if=
"netbeans.home" name=
"-debug-start-debuggee-applet">
1362 <fail unless=
"applet.url">Must select one file in the IDE or set applet.url
</fail>
1363 <j2seproject3:debug classname=
"sun.applet.AppletViewer">
1365 <arg value=
"${applet.url}"/>
1367 </j2seproject3:debug>
1369 <target depends=
"init,compile-single,-debug-start-debugger,-debug-start-debuggee-applet" if=
"netbeans.home" name=
"debug-applet"/>
1375 <target name=
"-deps-clean-init" unless=
"built-clean.properties">
1376 <property location=
"${build.dir}/built-clean.properties" name=
"built-clean.properties"/>
1377 <delete file=
"${built-clean.properties}" quiet=
"true"/>
1379 <target if=
"already.built.clean.${basedir}" name=
"-warn-already-built-clean">
1380 <echo level=
"warn" message=
"Cycle detected: SummerOfCode was already built"/>
1382 <target depends=
"init,-deps-clean-init" name=
"deps-clean" unless=
"no.deps">
1383 <mkdir dir=
"${build.dir}"/>
1384 <touch file=
"${built-clean.properties}" verbose=
"false"/>
1385 <property file=
"${built-clean.properties}" prefix=
"already.built.clean."/>
1386 <antcall target=
"-warn-already-built-clean"/>
1387 <propertyfile file=
"${built-clean.properties}">
1388 <entry key=
"${basedir}" value=
""/>
1391 <target depends=
"init" name=
"-do-clean">
1392 <delete dir=
"${build.dir}"/>
1393 <delete dir=
"${dist.dir}" followsymlinks=
"false" includeemptydirs=
"true"/>
1395 <target name=
"-post-clean">
1396 <!-- Empty placeholder for easier customization. -->
1397 <!-- You can override this target in the ../build.xml file. -->
1399 <target depends=
"init,deps-clean,-do-clean,-post-clean" description=
"Clean build products." name=
"clean"/>
1400 <target name=
"-check-call-dep">
1401 <property file=
"${call.built.properties}" prefix=
"already.built."/>
1402 <condition property=
"should.call.dep">
1405 <isset property=
"already.built.${call.subproject}"/>
1407 <available file=
"${call.script}"/>
1411 <target depends=
"-check-call-dep" if=
"should.call.dep" name=
"-maybe-call-dep">
1412 <ant antfile=
"${call.script}" inheritall=
"false" target=
"${call.target}">
1414 <propertyref prefix=
"transfer."/>
1415 <mapper from=
"transfer.*" to=
"*" type=
"glob"/>