@ -12,19 +12,19 @@ is divided into following sections:
- execution
- execution
- debugging
- debugging
- javadoc
- javadoc
- juni t compilation
- tes t compilation
- juni t execution
- tes t execution
- juni t debugging
- tes t debugging
- applet
- applet
- cleanup
- cleanup
-->
-->
<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= "jMonkeyEngine3-impl" >
<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= "jMonkeyEngine3-impl" >
<import file= "jnlp-impl.xml" />
<import file= "jnlp-impl.xml" />
<fail message= "Please build using Ant 1.7.1 or higher." >
<fail message= "Please build using Ant 1.8.0 or higher." >
<condition >
<condition >
<not >
<not >
<antversion atleast= "1.7.1 " />
<antversion atleast= "1.8.0 " />
</not>
</not>
</condition>
</condition>
</fail>
</fail>
@ -201,6 +201,7 @@ is divided into following sections:
</and>
</and>
</condition>
</condition>
<property name= "run.jvmargs" value= "" />
<property name= "run.jvmargs" value= "" />
<property name= "run.jvmargs.ide" value= "" />
<property name= "javac.compilerargs" value= "" />
<property name= "javac.compilerargs" value= "" />
<property name= "work.dir" value= "${basedir}" />
<property name= "work.dir" value= "${basedir}" />
<condition property= "no.deps" >
<condition property= "no.deps" >
@ -243,7 +244,29 @@ is divided into following sections:
<property name= "javac.fork" value= "${jdkBug6558476}" />
<property name= "javac.fork" value= "${jdkBug6558476}" />
<property name= "jar.index" value= "false" />
<property name= "jar.index" value= "false" />
<property name= "jar.index.metainf" value= "${jar.index}" />
<property name= "jar.index.metainf" value= "${jar.index}" />
<property name= "copylibs.rebase" value= "true" />
<available file= "${meta.inf.dir}/persistence.xml" property= "has.persistence.xml" />
<available file= "${meta.inf.dir}/persistence.xml" property= "has.persistence.xml" />
<condition property= "junit.available" >
<or >
<available classname= "org.junit.Test" classpath= "${run.test.classpath}" />
<available classname= "junit.framework.Test" classpath= "${run.test.classpath}" />
</or>
</condition>
<condition property= "testng.available" >
<available classname= "org.testng.annotations.Test" classpath= "${run.test.classpath}" />
</condition>
<condition property= "junit+testng.available" >
<and >
<istrue value= "${junit.available}" />
<istrue value= "${testng.available}" />
</and>
</condition>
<condition else= "testng" property= "testng.mode" value= "mixed" >
<istrue value= "${junit+testng.available}" />
</condition>
<condition else= "" property= "testng.debug.mode" value= "-mixed" >
<istrue value= "${junit+testng.available}" />
</condition>
</target>
</target>
<target name= "-post-init" >
<target name= "-post-init" >
<!-- Empty placeholder for easier customization. -->
<!-- Empty placeholder for easier customization. -->
@ -395,11 +418,52 @@ is divided into following sections:
</sequential>
</sequential>
</macrodef>
</macrodef>
</target>
</target>
<target name= "-init-macrodef-junit" >
<target if= "${junit.available}" name= "-init-macrodef-junit-init" >
<condition else= "false" property= "nb.junit.batch" value= "true" >
<and >
<istrue value= "${junit.available}" />
<not >
<isset property= "test.method" />
</not>
</and>
</condition>
<condition else= "false" property= "nb.junit.single" value= "true" >
<and >
<istrue value= "${junit.available}" />
<isset property= "test.method" />
</and>
</condition>
</target>
<target if= "${nb.junit.single}" name= "-init-macrodef-junit-single" unless= "${nb.junit.batch}" >
<macrodef name= "junit" uri= "http://www.netbeans.org/ns/j2se-project/3" >
<attribute default= "${includes}" name= "includes" />
<attribute default= "${excludes}" name= "excludes" />
<attribute default= "**" name= "testincludes" />
<attribute default= "" name= "testmethods" />
<element name= "customize" optional= "true" />
<sequential >
<property name= "junit.forkmode" value= "perTest" />
<junit dir= "${work.dir}" errorproperty= "tests.failed" failureproperty= "tests.failed" fork= "true" forkmode= "${junit.forkmode}" showoutput= "true" tempdir= "${build.dir}" >
<test methods= "@{testmethods}" name= "@{testincludes}" todir= "${build.test.results.dir}" />
<syspropertyset >
<propertyref prefix= "test-sys-prop." />
<mapper from= "test-sys-prop.*" to= "*" type= "glob" />
</syspropertyset>
<formatter type= "brief" usefile= "false" />
<formatter type= "xml" />
<jvmarg value= "-ea" />
<customize />
</junit>
</sequential>
</macrodef>
</target>
<target if= "${nb.junit.batch}" name= "-init-macrodef-junit-batch" unless= "${nb.junit.single}" >
<macrodef name= "junit" uri= "http://www.netbeans.org/ns/j2se-project/3" >
<macrodef name= "junit" uri= "http://www.netbeans.org/ns/j2se-project/3" >
<attribute default= "${includes}" name= "includes" />
<attribute default= "${includes}" name= "includes" />
<attribute default= "${excludes}" name= "excludes" />
<attribute default= "${excludes}" name= "excludes" />
<attribute default= "**" name= "testincludes" />
<attribute default= "**" name= "testincludes" />
<attribute default= "" name= "testmethods" />
<element name= "customize" optional= "true" />
<sequential >
<sequential >
<property name= "junit.forkmode" value= "perTest" />
<property name= "junit.forkmode" value= "perTest" />
<junit dir= "${work.dir}" errorproperty= "tests.failed" failureproperty= "tests.failed" fork= "true" forkmode= "${junit.forkmode}" showoutput= "true" tempdir= "${build.dir}" >
<junit dir= "${work.dir}" errorproperty= "tests.failed" failureproperty= "tests.failed" fork= "true" forkmode= "${junit.forkmode}" showoutput= "true" tempdir= "${build.dir}" >
@ -408,32 +472,270 @@ is divided into following sections:
<filename name= "@{testincludes}" />
<filename name= "@{testincludes}" />
</fileset>
</fileset>
</batchtest>
</batchtest>
<classpath >
<path path= "${run.test.classpath}" />
</classpath>
<syspropertyset >
<syspropertyset >
<propertyref prefix= "test-sys-prop." />
<propertyref prefix= "test-sys-prop." />
<mapper from= "test-sys-prop.*" to= "*" type= "glob" />
<mapper from= "test-sys-prop.*" to= "*" type= "glob" />
</syspropertyset>
</syspropertyset>
<formatter type= "brief" usefile= "false" />
<formatter type= "brief" usefile= "false" />
<formatter type= "xml" />
<formatter type= "xml" />
<jvmarg line= "${endorsed.classpath.cmd.line.arg}" />
<jvmarg value= "-ea" />
<jvmarg value= "-ea" />
<jvmarg line= "${run.jvmargs}" />
<customize />
</junit>
</sequential>
</macrodef>
</target>
<target depends= "-init-macrodef-junit-init,-init-macrodef-junit-single, -init-macrodef-junit-batch" if= "${junit.available}" name= "-init-macrodef-junit" />
<target if= "${testng.available}" name= "-init-macrodef-testng" >
<macrodef name= "testng" uri= "http://www.netbeans.org/ns/j2se-project/3" >
<attribute default= "${includes}" name= "includes" />
<attribute default= "${excludes}" name= "excludes" />
<attribute default= "**" name= "testincludes" />
<attribute default= "" name= "testmethods" />
<element name= "customize" optional= "true" />
<sequential >
<condition else= "" property= "testng.methods.arg" value= "@{testincludes}.@{testmethods}" >
<isset property= "test.method" />
</condition>
<union id= "test.set" >
<fileset dir= "${test.test.dir}" excludes= "@{excludes},**/*.xml,${excludes}" includes= "@{includes}" >
<filename name= "@{testincludes}" />
</fileset>
</union>
<taskdef classname= "org.testng.TestNGAntTask" classpath= "${run.test.classpath}" name= "testng" />
<testng classfilesetref= "test.set" failureProperty= "tests.failed" methods= "${testng.methods.arg}" mode= "${testng.mode}" outputdir= "${build.test.results.dir}" suitename= "jMonkeyEngine3" testname= "TestNG tests" workingDir= "${work.dir}" >
<xmlfileset dir= "${build.test.classes.dir}" includes= "@{testincludes}" />
<propertyset >
<propertyref prefix= "test-sys-prop." />
<mapper from= "test-sys-prop.*" to= "*" type= "glob" />
</propertyset>
<customize />
</testng>
</sequential>
</macrodef>
</target>
<target name= "-init-macrodef-test-impl" >
<macrodef name= "test-impl" uri= "http://www.netbeans.org/ns/j2se-project/3" >
<attribute default= "${includes}" name= "includes" />
<attribute default= "${excludes}" name= "excludes" />
<attribute default= "**" name= "testincludes" />
<attribute default= "" name= "testmethods" />
<element implicit= "true" name= "customize" optional= "true" />
<sequential >
<echo > No tests executed.</echo>
</sequential>
</macrodef>
</target>
<target depends= "-init-macrodef-junit" if= "${junit.available}" name= "-init-macrodef-junit-impl" >
<macrodef name= "test-impl" uri= "http://www.netbeans.org/ns/j2se-project/3" >
<attribute default= "${includes}" name= "includes" />
<attribute default= "${excludes}" name= "excludes" />
<attribute default= "**" name= "testincludes" />
<attribute default= "" name= "testmethods" />
<element implicit= "true" name= "customize" optional= "true" />
<sequential >
<j2seproject3:junit excludes= "@{excludes}" includes= "@{includes}" testincludes= "@{testincludes}" testmethods= "@{testmethods}" >
<customize />
</j2seproject3:junit>
</sequential>
</macrodef>
</target>
<target depends= "-init-macrodef-testng" if= "${testng.available}" name= "-init-macrodef-testng-impl" >
<macrodef name= "test-impl" uri= "http://www.netbeans.org/ns/j2se-project/3" >
<attribute default= "${includes}" name= "includes" />
<attribute default= "${excludes}" name= "excludes" />
<attribute default= "**" name= "testincludes" />
<attribute default= "" name= "testmethods" />
<element implicit= "true" name= "customize" optional= "true" />
<sequential >
<j2seproject3:testng excludes= "@{excludes}" includes= "@{includes}" testincludes= "@{testincludes}" testmethods= "@{testmethods}" >
<customize />
</j2seproject3:testng>
</sequential>
</macrodef>
</target>
<target depends= "-init-macrodef-test-impl,-init-macrodef-junit-impl,-init-macrodef-testng-impl" name= "-init-macrodef-test" >
<macrodef name= "test" uri= "http://www.netbeans.org/ns/j2se-project/3" >
<attribute default= "${includes}" name= "includes" />
<attribute default= "${excludes}" name= "excludes" />
<attribute default= "**" name= "testincludes" />
<attribute default= "" name= "testmethods" />
<sequential >
<j2seproject3:test-impl excludes= "@{excludes}" includes= "@{includes}" testincludes= "@{testincludes}" testmethods= "@{testmethods}" >
<customize >
<classpath >
<path path= "${run.test.classpath}" />
</classpath>
<jvmarg line= "${endorsed.classpath.cmd.line.arg}" />
<jvmarg line= "${run.jvmargs}" />
<jvmarg line= "${run.jvmargs.ide}" />
</customize>
</j2seproject3:test-impl>
</sequential>
</macrodef>
</target>
<target if= "${junit.available}" name= "-init-macrodef-junit-debug" unless= "${nb.junit.batch}" >
<macrodef name= "junit-debug" uri= "http://www.netbeans.org/ns/j2se-project/3" >
<attribute default= "${includes}" name= "includes" />
<attribute default= "${excludes}" name= "excludes" />
<attribute default= "**" name= "testincludes" />
<attribute default= "" name= "testmethods" />
<element name= "customize" optional= "true" />
<sequential >
<property name= "junit.forkmode" value= "perTest" />
<junit dir= "${work.dir}" errorproperty= "tests.failed" failureproperty= "tests.failed" fork= "true" forkmode= "${junit.forkmode}" showoutput= "true" tempdir= "${build.dir}" >
<test methods= "@{testmethods}" name= "@{testincludes}" todir= "${build.test.results.dir}" />
<syspropertyset >
<propertyref prefix= "test-sys-prop." />
<mapper from= "test-sys-prop.*" to= "*" type= "glob" />
</syspropertyset>
<formatter type= "brief" usefile= "false" />
<formatter type= "xml" />
<jvmarg value= "-ea" />
<jvmarg line= "${debug-args-line}" />
<jvmarg value= "-Xrunjdwp:transport=${debug-transport},address=${jpda.address}" />
<customize />
</junit>
</junit>
</sequential>
</sequential>
</macrodef>
</macrodef>
</target>
</target>
<target depends= "-profile-pre-init, init, -profile-post-init, -profile-init-macrodef-profile, -profile-init-check" name= "profile-init" />
<target if= "${nb.junit.batch}" name= "-init-macrodef-junit-debug-batch" >
<target name= "-profile-pre-init" >
<macrodef name= "junit-debug" uri= "http://www.netbeans.org/ns/j2se-project/3" >
<attribute default= "${includes}" name= "includes" />
<attribute default= "${excludes}" name= "excludes" />
<attribute default= "**" name= "testincludes" />
<attribute default= "" name= "testmethods" />
<element name= "customize" optional= "true" />
<sequential >
<property name= "junit.forkmode" value= "perTest" />
<junit dir= "${work.dir}" errorproperty= "tests.failed" failureproperty= "tests.failed" fork= "true" forkmode= "${junit.forkmode}" showoutput= "true" tempdir= "${build.dir}" >
<batchtest todir= "${build.test.results.dir}" >
<fileset dir= "${test.test.dir}" excludes= "@{excludes},${excludes}" includes= "@{includes}" >
<filename name= "@{testincludes}" />
</fileset>
</batchtest>
<syspropertyset >
<propertyref prefix= "test-sys-prop." />
<mapper from= "test-sys-prop.*" to= "*" type= "glob" />
</syspropertyset>
<formatter type= "brief" usefile= "false" />
<formatter type= "xml" />
<jvmarg value= "-ea" />
<jvmarg line= "${debug-args-line}" />
<jvmarg value= "-Xrunjdwp:transport=${debug-transport},address=${jpda.address}" />
<customize />
</junit>
</sequential>
</macrodef>
</target>
<target depends= "-init-macrodef-junit-debug,-init-macrodef-junit-debug-batch" if= "${junit.available}" name= "-init-macrodef-junit-debug-impl" >
<macrodef name= "test-debug-impl" uri= "http://www.netbeans.org/ns/j2se-project/3" >
<attribute default= "${includes}" name= "includes" />
<attribute default= "${excludes}" name= "excludes" />
<attribute default= "**" name= "testincludes" />
<attribute default= "" name= "testmethods" />
<element implicit= "true" name= "customize" optional= "true" />
<sequential >
<j2seproject3:junit-debug excludes= "@{excludes}" includes= "@{includes}" testincludes= "@{testincludes}" testmethods= "@{testmethods}" >
<customize />
</j2seproject3:junit-debug>
</sequential>
</macrodef>
</target>
<target if= "${testng.available}" name= "-init-macrodef-testng-debug" >
<macrodef name= "testng-debug" uri= "http://www.netbeans.org/ns/j2se-project/3" >
<attribute default= "${main.class}" name= "testClass" />
<attribute default= "" name= "testMethod" />
<element name= "customize2" optional= "true" />
<sequential >
<condition else= "-testclass @{testClass}" property= "test.class.or.method" value= "-methods @{testClass}.@{testMethod}" >
<isset property= "test.method" />
</condition>
<condition else= "-suitename jMonkeyEngine3 -testname @{testClass} ${test.class.or.method}" property= "testng.cmd.args" value= "@{testClass}" >
<matches pattern= ".*\.xml" string= "@{testClass}" />
</condition>
<delete dir= "${build.test.results.dir}" quiet= "true" />
<mkdir dir= "${build.test.results.dir}" />
<j2seproject3:debug classname= "org.testng.TestNG" classpath= "${debug.test.classpath}" >
<customize >
<customize2 />
<jvmarg value= "-ea" />
<arg line= "${testng.debug.mode}" />
<arg line= "-d ${build.test.results.dir}" />
<arg line= "-listener org.testng.reporters.VerboseReporter" />
<arg line= "${testng.cmd.args}" />
</customize>
</j2seproject3:debug>
</sequential>
</macrodef>
</target>
<target depends= "-init-macrodef-testng-debug" if= "${testng.available}" name= "-init-macrodef-testng-debug-impl" >
<macrodef name= "testng-debug-impl" uri= "http://www.netbeans.org/ns/j2se-project/3" >
<attribute default= "${main.class}" name= "testClass" />
<attribute default= "" name= "testMethod" />
<element implicit= "true" name= "customize2" optional= "true" />
<sequential >
<j2seproject3:testng-debug testClass= "@{testClass}" testMethod= "@{testMethod}" >
<customize2 />
</j2seproject3:testng-debug>
</sequential>
</macrodef>
</target>
<target depends= "-init-macrodef-junit-debug-impl" if= "${junit.available}" name= "-init-macrodef-test-debug-junit" >
<macrodef name= "test-debug" uri= "http://www.netbeans.org/ns/j2se-project/3" >
<attribute default= "${includes}" name= "includes" />
<attribute default= "${excludes}" name= "excludes" />
<attribute default= "**" name= "testincludes" />
<attribute default= "" name= "testmethods" />
<attribute default= "${main.class}" name= "testClass" />
<attribute default= "" name= "testMethod" />
<sequential >
<j2seproject3:test-debug-impl excludes= "@{excludes}" includes= "@{includes}" testincludes= "@{testincludes}" testmethods= "@{testmethods}" >
<customize >
<classpath >
<path path= "${run.test.classpath}" />
</classpath>
<jvmarg line= "${endorsed.classpath.cmd.line.arg}" />
<jvmarg line= "${run.jvmargs}" />
<jvmarg line= "${run.jvmargs.ide}" />
</customize>
</j2seproject3:test-debug-impl>
</sequential>
</macrodef>
</target>
<target depends= "-init-macrodef-testng-debug-impl" if= "${testng.available}" name= "-init-macrodef-test-debug-testng" >
<macrodef name= "test-debug" uri= "http://www.netbeans.org/ns/j2se-project/3" >
<attribute default= "${includes}" name= "includes" />
<attribute default= "${excludes}" name= "excludes" />
<attribute default= "**" name= "testincludes" />
<attribute default= "" name= "testmethods" />
<attribute default= "${main.class}" name= "testClass" />
<attribute default= "" name= "testMethod" />
<sequential >
<j2seproject3:testng-debug-impl testClass= "@{testClass}" testMethod= "@{testMethod}" >
<customize2 >
<syspropertyset >
<propertyref prefix= "test-sys-prop." />
<mapper from= "test-sys-prop.*" to= "*" type= "glob" />
</syspropertyset>
</customize2>
</j2seproject3:testng-debug-impl>
</sequential>
</macrodef>
</target>
<target depends= "-init-macrodef-test-debug-junit,-init-macrodef-test-debug-testng" name= "-init-macrodef-test-debug" />
<!--
pre NB7.2 profiling section; consider it deprecated
-->
<target depends= "-profile-pre-init, init, -profile-post-init, -profile-init-macrodef-profile, -profile-init-check" if= "profiler.info.jvmargs.agent" name= "profile-init" />
<target if= "profiler.info.jvmargs.agent" name= "-profile-pre-init" >
<!-- Empty placeholder for easier customization. -->
<!-- Empty placeholder for easier customization. -->
<!-- You can override this target in the ../build.xml file. -->
<!-- You can override this target in the ../build.xml file. -->
</target>
</target>
<target name= "-profile-post-init" >
<target if= "profiler.info.jvmargs.agent" name= "-profile-post-init" >
<!-- Empty placeholder for easier customization. -->
<!-- Empty placeholder for easier customization. -->
<!-- You can override this target in the ../build.xml file. -->
<!-- You can override this target in the ../build.xml file. -->
</target>
</target>
<target name= "-profile-init-macrodef-profile" >
<target if= "profiler.info.jvmargs.agent" name= "-profile-init-macrodef-profile" >
<macrodef name= "resolve" >
<macrodef name= "resolve" >
<attribute name= "name" />
<attribute name= "name" />
<attribute name= "value" />
<attribute name= "value" />
@ -448,6 +750,7 @@ is divided into following sections:
<property environment= "env" />
<property environment= "env" />
<resolve name= "profiler.current.path" value= "${profiler.info.pathvar}" />
<resolve name= "profiler.current.path" value= "${profiler.info.pathvar}" />
<java classname= "@{classname}" dir= "${profiler.info.dir}" fork= "true" jvm= "${profiler.info.jvm}" >
<java classname= "@{classname}" dir= "${profiler.info.dir}" fork= "true" jvm= "${profiler.info.jvm}" >
<jvmarg line= "${endorsed.classpath.cmd.line.arg}" />
<jvmarg value= "${profiler.info.jvmargs.agent}" />
<jvmarg value= "${profiler.info.jvmargs.agent}" />
<jvmarg line= "${profiler.info.jvmargs}" />
<jvmarg line= "${profiler.info.jvmargs}" />
<env key= "${profiler.info.pathvar}" path= "${profiler.info.agentpath}:${profiler.current.path}" />
<env key= "${profiler.info.pathvar}" path= "${profiler.info.agentpath}:${profiler.current.path}" />
@ -464,10 +767,13 @@ is divided into following sections:
</sequential>
</sequential>
</macrodef>
</macrodef>
</target>
</target>
<target depends= "-profile-pre-init, init, -profile-post-init, -profile-init-macrodef-profile" name= "-profile-init-check" >
<target depends= "-profile-pre-init, init, -profile-post-init, -profile-init-macrodef-profile" if= "profiler.info.jvmargs.agent" name= "-profile-init-check" >
<fail unless= "profiler.info.jvm" > Must set JVM to use for profiling in profiler.info.jvm</fail>
<fail unless= "profiler.info.jvm" > Must set JVM to use for profiling in profiler.info.jvm</fail>
<fail unless= "profiler.info.jvmargs.agent" > Must set profiler agent JVM arguments in profiler.info.jvmargs.agent</fail>
<fail unless= "profiler.info.jvmargs.agent" > Must set profiler agent JVM arguments in profiler.info.jvmargs.agent</fail>
</target>
</target>
<!--
end of pre NB7.2 profiling section
-->
<target depends= "-init-debug-args" name= "-init-macrodef-nbjpda" >
<target depends= "-init-debug-args" name= "-init-macrodef-nbjpda" >
<macrodef name= "nbjpdastart" uri= "http://www.netbeans.org/ns/j2se-project/1" >
<macrodef name= "nbjpdastart" uri= "http://www.netbeans.org/ns/j2se-project/1" >
<attribute default= "${main.class}" name= "name" />
<attribute default= "${main.class}" name= "name" />
@ -525,6 +831,7 @@ is divided into following sections:
<jvmarg value= "-Dfile.encoding=${runtime.encoding}" />
<jvmarg value= "-Dfile.encoding=${runtime.encoding}" />
<redirector errorencoding= "${runtime.encoding}" inputencoding= "${runtime.encoding}" outputencoding= "${runtime.encoding}" />
<redirector errorencoding= "${runtime.encoding}" inputencoding= "${runtime.encoding}" outputencoding= "${runtime.encoding}" />
<jvmarg line= "${run.jvmargs}" />
<jvmarg line= "${run.jvmargs}" />
<jvmarg line= "${run.jvmargs.ide}" />
<classpath >
<classpath >
<path path= "@{classpath}" />
<path path= "@{classpath}" />
</classpath>
</classpath>
@ -541,6 +848,7 @@ is divided into following sections:
<macrodef name= "java" uri= "http://www.netbeans.org/ns/j2se-project/1" >
<macrodef name= "java" uri= "http://www.netbeans.org/ns/j2se-project/1" >
<attribute default= "${main.class}" name= "classname" />
<attribute default= "${main.class}" name= "classname" />
<attribute default= "${run.classpath}" name= "classpath" />
<attribute default= "${run.classpath}" name= "classpath" />
<attribute default= "jvm" name= "jvm" />
<element name= "customize" optional= "true" />
<element name= "customize" optional= "true" />
<sequential >
<sequential >
<java classname= "@{classname}" dir= "${work.dir}" fork= "true" >
<java classname= "@{classname}" dir= "${work.dir}" fork= "true" >
@ -548,6 +856,7 @@ is divided into following sections:
<jvmarg value= "-Dfile.encoding=${runtime.encoding}" />
<jvmarg value= "-Dfile.encoding=${runtime.encoding}" />
<redirector errorencoding= "${runtime.encoding}" inputencoding= "${runtime.encoding}" outputencoding= "${runtime.encoding}" />
<redirector errorencoding= "${runtime.encoding}" inputencoding= "${runtime.encoding}" outputencoding= "${runtime.encoding}" />
<jvmarg line= "${run.jvmargs}" />
<jvmarg line= "${run.jvmargs}" />
<jvmarg line= "${run.jvmargs.ide}" />
<classpath >
<classpath >
<path path= "@{classpath}" />
<path path= "@{classpath}" />
</classpath>
</classpath>
@ -574,11 +883,14 @@ is divided into following sections:
<path path= "${run.classpath.without.build.classes.dir}" />
<path path= "${run.classpath.without.build.classes.dir}" />
<chainedmapper >
<chainedmapper >
<flattenmapper />
<flattenmapper />
<filtermapper >
<replacestring from= " " to= "%20" />
</filtermapper>
<globmapper from= "*" to= "lib/*" />
<globmapper from= "*" to= "lib/*" />
</chainedmapper>
</chainedmapper>
</pathconvert>
</pathconvert>
<taskdef classname= "org.netbeans.modules.java.j2seproject.copylibstask.CopyLibs" classpath= "${libs.CopyLibs.classpath}" name= "copylibs" />
<taskdef classname= "org.netbeans.modules.java.j2seproject.copylibstask.CopyLibs" classpath= "${libs.CopyLibs.classpath}" name= "copylibs" />
<copylibs compress= "${jar.compress}" index= "${jar.index}" indexMetaInf= "${jar.index.metainf}" jarfile= "${dist.jar}" manifest= "@{manifest}" runtimeclasspath= "${run.classpath.without.build.classes.dir}" >
<copylibs compress= "${jar.compress}" index= "${jar.index}" indexMetaInf= "${jar.index.metainf}" jarfile= "${dist.jar}" manifest= "@{manifest}" rebase= "${copylibs.rebase}" r untimeclasspath= "${run.classpath.without.build.classes.dir}" >
<fileset dir= "${build.classes.dir}" />
<fileset dir= "${build.classes.dir}" />
<manifest >
<manifest >
<attribute name= "Class-Path" value= "${jar.classpath}" />
<attribute name= "Class-Path" value= "${jar.classpath}" />
@ -619,7 +931,7 @@ is divided into following sections:
<target depends= "-init-ap-cmdline-properties,-init-ap-cmdline-supported" name= "-init-ap-cmdline" >
<target depends= "-init-ap-cmdline-properties,-init-ap-cmdline-supported" name= "-init-ap-cmdline" >
<property name= "ap.cmd.line.internal" value= "" />
<property name= "ap.cmd.line.internal" value= "" />
</target>
</target>
<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-junit ,-init-macrodef-nbjpda,-init-macrodef-debug,-init-macrodef-java,-init-presetdef-jar,-init-ap-cmdline" name= "init" />
<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" />
<!--
<!--
===================
===================
COMPILATION SECTION
COMPILATION SECTION
@ -854,7 +1166,11 @@ is divided into following sections:
PROFILING SECTION
PROFILING SECTION
=================
=================
-->
-->
<target depends= "profile-init,compile" description= "Profile a project in the IDE." if= "netbeans.home" name= "profile" >
<!--
pre NB7.2 profiler integration
-->
<target depends= "profile-init,compile" description= "Profile a project in the IDE." if= "profiler.info.jvmargs.agent" name= "-profile-pre72" >
<fail unless= "netbeans.home" > This target only works when run from inside the NetBeans IDE.</fail>
<nbprofiledirect >
<nbprofiledirect >
<classpath >
<classpath >
<path path= "${run.classpath}" />
<path path= "${run.classpath}" />
@ -862,8 +1178,9 @@ is divided into following sections:
</nbprofiledirect>
</nbprofiledirect>
<profile />
<profile />
</target>
</target>
<target depends= "profile-init,compile-single" description= "Profile a selected class in the IDE." if= "netbeans.home " name= "profile-single" >
<target depends= "profile-init,compile-single" description= "Profile a selected class in the IDE." if= "profiler.info.jvmargs.agent " name= "- profile-single-pre72 " >
<fail unless= "profile.class" > Must select one file in the IDE or set profile.class</fail>
<fail unless= "profile.class" > Must select one file in the IDE or set profile.class</fail>
<fail unless= "netbeans.home" > This target only works when run from inside the NetBeans IDE.</fail>
<nbprofiledirect >
<nbprofiledirect >
<classpath >
<classpath >
<path path= "${run.classpath}" />
<path path= "${run.classpath}" />
@ -871,12 +1188,8 @@ is divided into following sections:
</nbprofiledirect>
</nbprofiledirect>
<profile classname= "${profile.class}" />
<profile classname= "${profile.class}" />
</target>
</target>
<!--
<target depends= "profile-init,compile-single" if= "profiler.info.jvmargs.agent" name= "-profile-applet-pre72" >
=========================
<fail unless= "netbeans.home" > This target only works when run from inside the NetBeans IDE.</fail>
APPLET PROFILING SECTION
=========================
-->
<target depends= "profile-init,compile-single" if= "netbeans.home" name= "profile-applet" >
<nbprofiledirect >
<nbprofiledirect >
<classpath >
<classpath >
<path path= "${run.classpath}" />
<path path= "${run.classpath}" />
@ -888,12 +1201,8 @@ is divided into following sections:
</customize>
</customize>
</profile>
</profile>
</target>
</target>
<!--
<target depends= "profile-init,compile-test-single" if= "profiler.info.jvmargs.agent" name= "-profile-test-single-pre72" >
=========================
<fail unless= "netbeans.home" > This target only works when run from inside the NetBeans IDE.</fail>
TESTS PROFILING SECTION
=========================
-->
<target depends= "profile-init,compile-test-single" if= "netbeans.home" name= "profile-test-single" >
<nbprofiledirect >
<nbprofiledirect >
<classpath >
<classpath >
<path path= "${run.test.classpath}" />
<path path= "${run.test.classpath}" />
@ -915,6 +1224,42 @@ is divided into following sections:
<formatter type= "xml" />
<formatter type= "xml" />
</junit>
</junit>
</target>
</target>
<!--
end of pre NB72 profiling section
-->
<target if= "netbeans.home" name= "-profile-check" >
<condition property= "profiler.configured" >
<or >
<contains casesensitive= "true" string= "${run.jvmargs.ide}" substring= "-agentpath:" />
<contains casesensitive= "true" string= "${run.jvmargs.ide}" substring= "-javaagent:" />
</or>
</condition>
</target>
<target depends= "-profile-check,-profile-pre72" description= "Profile a project in the IDE." if= "profiler.configured" name= "profile" unless= "profiler.info.jvmargs.agent" >
<startprofiler />
<antcall target= "run" />
</target>
<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" >
<fail unless= "run.class" > Must select one file in the IDE or set run.class</fail>
<startprofiler />
<antcall target= "run-single" />
</target>
<target depends= "-profile-test-single-pre72" description= "Profile a selected test in the IDE." name= "profile-test-single" />
<target depends= "-profile-check" description= "Profile a selected test in the IDE." if= "profiler.configured" name= "profile-test" unless= "profiler.info.jvmargs" >
<fail unless= "test.includes" > Must select some files in the IDE or set test.includes</fail>
<startprofiler />
<antcall target= "test-single" />
</target>
<target depends= "-profile-check" description= "Profile a selected class in the IDE." if= "profiler.configured" name= "profile-test-with-main" >
<fail unless= "run.class" > Must select one file in the IDE or set run.class</fail>
<startprofiler />
<antcal target= "run-test-with-main" />
</target>
<target depends= "-profile-check,-profile-applet-pre72" if= "profiler.configured" name= "profile-applet" unless= "profiler.info.jvmargs.agent" >
<fail unless= "applet.url" > Must select one file in the IDE or set applet.url</fail>
<startprofiler />
<antcall target= "run-applet" />
</target>
<!--
<!--
===============
===============
JAVADOC SECTION
JAVADOC SECTION
@ -922,6 +1267,14 @@ is divided into following sections:
-->
-->
<target depends= "init" if= "have.sources" name= "-javadoc-build" >
<target depends= "init" if= "have.sources" name= "-javadoc-build" >
<mkdir dir= "${dist.javadoc.dir}" />
<mkdir dir= "${dist.javadoc.dir}" />
<condition else= "" property= "javadoc.endorsed.classpath.cmd.line.arg" value= "-J${endorsed.classpath.cmd.line.arg}" >
<and >
<isset property= "endorsed.classpath.cmd.line.arg" />
<not >
<equals arg1= "${endorsed.classpath.cmd.line.arg}" arg2= "" />
</not>
</and>
</condition>
<javadoc additionalparam= "${javadoc.additionalparam}" author= "${javadoc.author}" charset= "UTF-8" destdir= "${dist.javadoc.dir}" docencoding= "UTF-8" encoding= "${javadoc.encoding.used}" failonerror= "true" noindex= "${javadoc.noindex}" nonavbar= "${javadoc.nonavbar}" notree= "${javadoc.notree}" private= "${javadoc.private}" source= "${javac.source}" splitindex= "${javadoc.splitindex}" use= "${javadoc.use}" useexternalfile= "true" version= "${javadoc.version}" windowtitle= "${javadoc.windowtitle}" >
<javadoc additionalparam= "${javadoc.additionalparam}" author= "${javadoc.author}" charset= "UTF-8" destdir= "${dist.javadoc.dir}" docencoding= "UTF-8" encoding= "${javadoc.encoding.used}" failonerror= "true" noindex= "${javadoc.noindex}" nonavbar= "${javadoc.nonavbar}" notree= "${javadoc.notree}" private= "${javadoc.private}" source= "${javac.source}" splitindex= "${javadoc.splitindex}" use= "${javadoc.use}" useexternalfile= "true" version= "${javadoc.version}" windowtitle= "${javadoc.windowtitle}" >
<classpath >
<classpath >
<path path= "${javac.classpath}" />
<path path= "${javac.classpath}" />
@ -990,6 +1343,7 @@ is divided into following sections:
<include name= "**/*.java" />
<include name= "**/*.java" />
<exclude name= "*.java" />
<exclude name= "*.java" />
</fileset>
</fileset>
<arg line= "${javadoc.endorsed.classpath.cmd.line.arg}" />
</javadoc>
</javadoc>
<copy todir= "${dist.javadoc.dir}" >
<copy todir= "${dist.javadoc.dir}" >
<fileset dir= "${src.core.dir}" excludes= "${excludes}" includes= "${includes}" >
<fileset dir= "${src.core.dir}" excludes= "${excludes}" includes= "${includes}" >
@ -1063,7 +1417,7 @@ is divided into following sections:
<target depends= "init,-javadoc-build,-javadoc-browse" description= "Build Javadoc." name= "javadoc" />
<target depends= "init,-javadoc-build,-javadoc-browse" description= "Build Javadoc." name= "javadoc" />
<!--
<!--
=========================
=========================
JUNI T COMPILATION SECTION
TES T COMPILATION SECTION
=========================
=========================
-->
-->
<target depends= "init,compile" if= "have.tests" name= "-pre-pre-compile-test" >
<target depends= "init,compile" if= "have.tests" name= "-pre-pre-compile-test" >
@ -1106,14 +1460,14 @@ is divided into following sections:
<target depends= "init,compile,-pre-pre-compile-test,-pre-compile-test-single,-do-compile-test-single,-post-compile-test-single" name= "compile-test-single" />
<target depends= "init,compile,-pre-pre-compile-test,-pre-compile-test-single,-do-compile-test-single,-post-compile-test-single" name= "compile-test-single" />
<!--
<!--
=======================
=======================
JUNI T EXECUTION SECTION
TES T EXECUTION SECTION
=======================
=======================
-->
-->
<target depends= "init" if= "have.tests" name= "-pre-test-run" >
<target depends= "init" if= "have.tests" name= "-pre-test-run" >
<mkdir dir= "${build.test.results.dir}" />
<mkdir dir= "${build.test.results.dir}" />
</target>
</target>
<target depends= "init,compile-test,-pre-test-run" if= "have.tests" name= "-do-test-run" >
<target depends= "init,compile-test,-pre-test-run" if= "have.tests" name= "-do-test-run" >
<j2seproject3:juni t testincludes= "**/*Test.java" />
<j2seproject3:tes t testincludes= "**/*Test.java" />
</target>
</target>
<target depends= "init,compile-test,-pre-test-run,-do-test-run" if= "have.tests" name= "-post-test-run" >
<target depends= "init,compile-test,-pre-test-run,-do-test-run" if= "have.tests" name= "-post-test-run" >
<fail if= "tests.failed" unless= "ignore.failing.tests" > Some tests failed; see details above.</fail>
<fail if= "tests.failed" unless= "ignore.failing.tests" > Some tests failed; see details above.</fail>
@ -1126,39 +1480,40 @@ is divided into following sections:
</target>
</target>
<target depends= "init,compile-test-single,-pre-test-run-single" if= "have.tests" name= "-do-test-run-single" >
<target depends= "init,compile-test-single,-pre-test-run-single" if= "have.tests" name= "-do-test-run-single" >
<fail unless= "test.includes" > Must select some files in the IDE or set test.includes</fail>
<fail unless= "test.includes" > Must select some files in the IDE or set test.includes</fail>
<j2seproject3:juni t excludes= "" includes= "${test.includes}" />
<j2seproject3:tes t excludes= "" includes= "${test.includes}" test includes="${test.includes}" />
</target>
</target>
<target depends= "init,compile-test-single,-pre-test-run-single,-do-test-run-single" if= "have.tests" name= "-post-test-run-single" >
<target depends= "init,compile-test-single,-pre-test-run-single,-do-test-run-single" if= "have.tests" name= "-post-test-run-single" >
<fail if= "tests.failed" unless= "ignore.failing.tests" > Some tests failed; see details above.</fail>
<fail if= "tests.failed" unless= "ignore.failing.tests" > Some tests failed; see details above.</fail>
</target>
</target>
<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" />
<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" />
<target depends= "init,compile-test-single,-pre-test-run-single" if= "have.tests" name= "-do-test-run-single-method" >
<fail unless= "test.class" > Must select some files in the IDE or set test.class</fail>
<fail unless= "test.method" > Must select some method in the IDE or set test.method</fail>
<j2seproject3:test excludes= "" includes= "${javac.includes}" testincludes= "${test.class}" testmethods= "${test.method}" />
</target>
<target depends= "init,compile-test-single,-pre-test-run-single,-do-test-run-single-method" if= "have.tests" name= "-post-test-run-single-method" >
<fail if= "tests.failed" unless= "ignore.failing.tests" > Some tests failed; see details above.</fail>
</target>
<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" />
<!--
<!--
=======================
=======================
JUNIT DEBUGGING SECTION
TES T DEBUGGING SECTION
=======================
=======================
-->
-->
<target depends= "init,compile-test" if= "have.tests" name= "-debug-start-debuggee-test" >
<target depends= "init,compile-test-single,-pre-test-run-single " if= "have.tests" name= "-debug-start-debuggee-test" >
<fail unless= "test.class" > Must select one file in the IDE or set test.class</fail>
<fail unless= "test.class" > Must select one file in the IDE or set test.class</fail>
<property location= "${build.test.results.dir}/TEST-${test.class}.xml" name= "test.report.file" />
<j2seproject3:test-debug excludes= "" includes= "${javac.includes}" testClass= "${test.class}" testincludes= "${javac.includes}" />
<delete file= "${test.report.file}" />
</target>
<mkdir dir= "${build.test.results.dir}" />
<target depends= "init,compile-test-single,-pre-test-run-single" if= "have.tests" name= "-debug-start-debuggee-test-method" >
<j2seproject3:debug classname= "org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner" classpath= "${ant.home}/lib/ant.jar:${ant.home}/lib/ant-junit.jar:${debug.test.classpath}" >
<fail unless= "test.class" > Must select one file in the IDE or set test.class</fail>
<customize >
<fail unless= "test.method" > Must select some method in the IDE or set test.method</fail>
<syspropertyset >
<j2seproject3:test-debug excludes= "" includes= "${javac.includes}" testClass= "${test.class}" testMethod= "${test.method}" testincludes= "${test.class}" testmethods= "${test.method}" />
<propertyref prefix= "test-sys-prop." />
<mapper from= "test-sys-prop.*" to= "*" type= "glob" />
</syspropertyset>
<arg value= "${test.class}" />
<arg value= "showoutput=true" />
<arg value= "formatter=org.apache.tools.ant.taskdefs.optional.junit.BriefJUnitResultFormatter" />
<arg value= "formatter=org.apache.tools.ant.taskdefs.optional.junit.XMLJUnitResultFormatter,${test.report.file}" />
</customize>
</j2seproject3:debug>
</target>
</target>
<target depends= "init,compile-test" if= "netbeans.home+have.tests" name= "-debug-start-debugger-test" >
<target depends= "init,compile-test" if= "netbeans.home+have.tests" name= "-debug-start-debugger-test" >
<j2seproject1:nbjpdastart classpath= "${debug.test.classpath}" name= "${test.class}" />
<j2seproject1:nbjpdastart classpath= "${debug.test.classpath}" name= "${test.class}" />
</target>
</target>
<target depends= "init,compile-test-single,-debug-start-debugger-test,-debug-start-debuggee-test" name= "debug-test" />
<target depends= "init,compile-test-single,-debug-start-debugger-test,-debug-start-debuggee-test" name= "debug-test" />
<target depends= "init,compile-test-single,-debug-start-debugger-test,-debug-start-debuggee-test-method" name= "debug-test-method" />
<target depends= "init,-pre-debug-fix,compile-test-single" if= "netbeans.home" name= "-do-debug-fix-test" >
<target depends= "init,-pre-debug-fix,compile-test-single" if= "netbeans.home" name= "-do-debug-fix-test" >
<j2seproject1:nbjpdareload dir= "${build.test.classes.dir}" />
<j2seproject1:nbjpdareload dir= "${build.test.classes.dir}" />
</target>
</target>
@ -1223,9 +1578,12 @@ is divided into following sections:
<target name= "-check-call-dep" >
<target name= "-check-call-dep" >
<property file= "${call.built.properties}" prefix= "already.built." />
<property file= "${call.built.properties}" prefix= "already.built." />
<condition property= "should.call.dep" >
<condition property= "should.call.dep" >
<not >
<and >
<isset property= "already.built.${call.subproject}" />
<not >
</not>
<isset property= "already.built.${call.subproject}" />
</not>
<available file= "${call.script}" />
</and>
</condition>
</condition>
</target>
</target>
<target depends= "-check-call-dep" if= "should.call.dep" name= "-maybe-call-dep" >
<target depends= "-check-call-dep" if= "should.call.dep" name= "-maybe-call-dep" >