1.1 --- a/samples/stateful/nbproject/build-impl.xml Sun May 02 14:24:43 2010 +0200
1.2 +++ b/samples/stateful/nbproject/build-impl.xml Mon Nov 11 13:17:34 2019 +0100
1.3 @@ -12,18 +12,18 @@
1.4 - execution
1.5 - debugging
1.6 - javadoc
1.7 - - junit compilation
1.8 - - junit execution
1.9 - - junit debugging
1.10 + - test compilation
1.11 + - test execution
1.12 + - test debugging
1.13 - applet
1.14 - cleanup
1.15
1.16 -->
1.17 -<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="stateful-impl">
1.18 - <fail message="Please build using Ant 1.7.1 or higher.">
1.19 +<project xmlns:if="ant:if" xmlns:j2seproject1="http://www.netbeans.org/ns/j2se-project/1" xmlns:j2seproject3="http://www.netbeans.org/ns/j2se-project/3" xmlns:jaxrpc="http://www.netbeans.org/ns/j2se-project/jax-rpc" xmlns:unless="ant:unless" basedir=".." default="default" name="stateful-impl">
1.20 + <fail message="Please build using Ant 1.8.0 or higher.">
1.21 <condition>
1.22 <not>
1.23 - <antversion atleast="1.7.1"/>
1.24 + <antversion atleast="1.8.0"/>
1.25 </not>
1.26 </condition>
1.27 </fail>
1.28 @@ -46,16 +46,89 @@
1.29 <property file="${user.properties.file}"/>
1.30 <!-- The two properties below are usually overridden -->
1.31 <!-- by the active platform. Just a fallback. -->
1.32 - <property name="default.javac.source" value="1.4"/>
1.33 - <property name="default.javac.target" value="1.4"/>
1.34 + <property name="default.javac.source" value="1.6"/>
1.35 + <property name="default.javac.target" value="1.6"/>
1.36 </target>
1.37 <target depends="-pre-init,-init-private,-init-user" name="-init-project">
1.38 <property file="nbproject/configs/${config}.properties"/>
1.39 <property file="nbproject/project.properties"/>
1.40 </target>
1.41 - <target depends="-pre-init,-init-private,-init-user,-init-project,-init-macrodef-property" name="-do-init">
1.42 + <target name="-init-modules-supported">
1.43 + <condition property="modules.supported.internal" value="true">
1.44 + <not>
1.45 + <matches pattern="1\.[0-8](\..*)?" string="${javac.source}"/>
1.46 + </not>
1.47 + </condition>
1.48 + </target>
1.49 + <target depends="-init-modules-supported" if="modules.supported.internal" name="-init-macrodef-modulename">
1.50 + <macrodef name="modulename" uri="http://www.netbeans.org/ns/j2se-project/3">
1.51 + <attribute name="property"/>
1.52 + <attribute name="sourcepath"/>
1.53 + <sequential>
1.54 + <loadresource property="@{property}" quiet="true">
1.55 + <javaresource classpath="@{sourcepath}" name="module-info.java" parentFirst="false"/>
1.56 + <filterchain>
1.57 + <stripjavacomments/>
1.58 + <linecontainsregexp>
1.59 + <regexp pattern="module .* \{"/>
1.60 + </linecontainsregexp>
1.61 + <tokenfilter>
1.62 + <linetokenizer/>
1.63 + <replaceregex flags="s" pattern="(\s*module\s+)(\S*)(\s*\{.*)" replace="\2"/>
1.64 + </tokenfilter>
1.65 + <striplinebreaks/>
1.66 + </filterchain>
1.67 + </loadresource>
1.68 + </sequential>
1.69 + </macrodef>
1.70 + </target>
1.71 + <target depends="-init-modules-supported,-init-macrodef-modulename" if="modules.supported.internal" name="-init-source-module-properties">
1.72 + <fail message="Java 9 support requires Ant 1.10.0 or higher.">
1.73 + <condition>
1.74 + <not>
1.75 + <antversion atleast="1.10.0"/>
1.76 + </not>
1.77 + </condition>
1.78 + </fail>
1.79 + <j2seproject3:modulename property="module.name" sourcepath="${src.dir}"/>
1.80 + <condition property="named.module.internal">
1.81 + <and>
1.82 + <isset property="module.name"/>
1.83 + <length length="0" string="${module.name}" when="greater"/>
1.84 + </and>
1.85 + </condition>
1.86 + <condition property="unnamed.module.internal">
1.87 + <not>
1.88 + <isset property="named.module.internal"/>
1.89 + </not>
1.90 + </condition>
1.91 + <property name="javac.modulepath" value=""/>
1.92 + <property name="run.modulepath" value="${javac.modulepath}"/>
1.93 + <property name="module.build.classes.dir" value="${build.classes.dir}"/>
1.94 + <property name="debug.modulepath" value="${run.modulepath}"/>
1.95 + <property name="javac.upgrademodulepath" value=""/>
1.96 + <property name="run.upgrademodulepath" value="${javac.upgrademodulepath}"/>
1.97 + <condition else="" property="javac.systemmodulepath.cmd.line.arg" value="--system '${javac.systemmodulepath}'">
1.98 + <and>
1.99 + <isset property="javac.systemmodulepath"/>
1.100 + <length length="0" string="${javac.systemmodulepath}" when="greater"/>
1.101 + </and>
1.102 + </condition>
1.103 + <property name="dist.jlink.dir" value="${dist.dir}/jlink"/>
1.104 + <property name="dist.jlink.output" value="${dist.jlink.dir}/${application.title}"/>
1.105 + <property name="module.name" value=""/>
1.106 + </target>
1.107 + <target depends="-pre-init,-init-private,-init-user,-init-project,-init-macrodef-property,-init-modules-supported" name="-do-init">
1.108 + <property name="platform.java" value="${java.home}/bin/java"/>
1.109 <available file="${manifest.file}" property="manifest.available"/>
1.110 - <available file="${application.splash}" property="splashscreen.available"/>
1.111 + <condition property="splashscreen.available">
1.112 + <and>
1.113 + <not>
1.114 + <equals arg1="${application.splash}" arg2="" trim="true"/>
1.115 + </not>
1.116 + <available file="${application.splash}"/>
1.117 + </and>
1.118 + </condition>
1.119 <condition property="main.class.available">
1.120 <and>
1.121 <isset property="main.class"/>
1.122 @@ -64,36 +137,22 @@
1.123 </not>
1.124 </and>
1.125 </condition>
1.126 - <condition property="manifest.available+main.class">
1.127 + <condition property="profile.available">
1.128 <and>
1.129 - <isset property="manifest.available"/>
1.130 - <isset property="main.class.available"/>
1.131 - </and>
1.132 - </condition>
1.133 - <condition property="do.mkdist">
1.134 - <and>
1.135 - <isset property="libs.CopyLibs.classpath"/>
1.136 + <isset property="javac.profile"/>
1.137 + <length length="0" string="${javac.profile}" when="greater"/>
1.138 <not>
1.139 - <istrue value="${mkdist.disabled}"/>
1.140 + <matches pattern="1\.[0-7](\..*)?" string="${javac.source}"/>
1.141 </not>
1.142 </and>
1.143 </condition>
1.144 - <condition property="manifest.available+main.class+mkdist.available">
1.145 - <and>
1.146 - <istrue value="${manifest.available+main.class}"/>
1.147 - <isset property="do.mkdist"/>
1.148 - </and>
1.149 - </condition>
1.150 - <condition property="manifest.available+main.class+mkdist.available+splashscreen.available">
1.151 - <and>
1.152 - <istrue value="${manifest.available+main.class+mkdist.available}"/>
1.153 - <istrue value="${splashscreen.available}"/>
1.154 - </and>
1.155 - </condition>
1.156 <condition property="do.archive">
1.157 - <not>
1.158 - <istrue value="${jar.archive.disabled}"/>
1.159 - </not>
1.160 + <or>
1.161 + <not>
1.162 + <istrue value="${jar.archive.disabled}"/>
1.163 + </not>
1.164 + <istrue value="${not.archive.disabled}"/>
1.165 + </or>
1.166 </condition>
1.167 <condition property="do.archive+manifest.available">
1.168 <and>
1.169 @@ -101,21 +160,21 @@
1.170 <istrue value="${do.archive}"/>
1.171 </and>
1.172 </condition>
1.173 - <condition property="do.archive+manifest.available+main.class">
1.174 + <condition property="do.archive+main.class.available">
1.175 <and>
1.176 - <istrue value="${manifest.available+main.class}"/>
1.177 + <isset property="main.class.available"/>
1.178 <istrue value="${do.archive}"/>
1.179 </and>
1.180 </condition>
1.181 - <condition property="do.archive+manifest.available+main.class+mkdist.available">
1.182 + <condition property="do.archive+splashscreen.available">
1.183 <and>
1.184 - <istrue value="${manifest.available+main.class+mkdist.available}"/>
1.185 + <isset property="splashscreen.available"/>
1.186 <istrue value="${do.archive}"/>
1.187 </and>
1.188 </condition>
1.189 - <condition property="do.archive+manifest.available+main.class+mkdist.available+splashscreen.available">
1.190 + <condition property="do.archive+profile.available">
1.191 <and>
1.192 - <istrue value="${manifest.available+main.class+mkdist.available+splashscreen.available}"/>
1.193 + <isset property="profile.available"/>
1.194 <istrue value="${do.archive}"/>
1.195 </and>
1.196 </condition>
1.197 @@ -142,6 +201,7 @@
1.198 </and>
1.199 </condition>
1.200 <property name="run.jvmargs" value=""/>
1.201 + <property name="run.jvmargs.ide" value=""/>
1.202 <property name="javac.compilerargs" value=""/>
1.203 <property name="work.dir" value="${basedir}"/>
1.204 <condition property="no.deps">
1.205 @@ -154,6 +214,7 @@
1.206 <property name="application.args" value=""/>
1.207 <property name="source.encoding" value="${file.encoding}"/>
1.208 <property name="runtime.encoding" value="${source.encoding}"/>
1.209 + <property name="manifest.encoding" value="${source.encoding}"/>
1.210 <condition property="javadoc.encoding.used" value="${javadoc.encoding}">
1.211 <and>
1.212 <isset property="javadoc.encoding"/>
1.213 @@ -171,11 +232,56 @@
1.214 </condition>
1.215 <path id="endorsed.classpath.path" path="${endorsed.classpath}"/>
1.216 <condition else="" property="endorsed.classpath.cmd.line.arg" value="-Xbootclasspath/p:'${toString:endorsed.classpath.path}'">
1.217 - <length length="0" string="${endorsed.classpath}" when="greater"/>
1.218 + <and>
1.219 + <isset property="endorsed.classpath"/>
1.220 + <not>
1.221 + <equals arg1="${endorsed.classpath}" arg2="" trim="true"/>
1.222 + </not>
1.223 + </and>
1.224 </condition>
1.225 - <property name="javac.fork" value="false"/>
1.226 + <condition else="" property="javac.profile.cmd.line.arg" value="-profile ${javac.profile}">
1.227 + <isset property="profile.available"/>
1.228 + </condition>
1.229 + <condition else="false" property="jdkBug6558476">
1.230 + <and>
1.231 + <matches pattern="1\.[56]" string="${java.specification.version}"/>
1.232 + <not>
1.233 + <os family="unix"/>
1.234 + </not>
1.235 + </and>
1.236 + </condition>
1.237 + <condition else="false" property="javac.fork">
1.238 + <or>
1.239 + <istrue value="${jdkBug6558476}"/>
1.240 + <istrue value="${javac.external.vm}"/>
1.241 + </or>
1.242 + </condition>
1.243 <property name="jar.index" value="false"/>
1.244 + <property name="jar.index.metainf" value="${jar.index}"/>
1.245 + <property name="copylibs.rebase" value="true"/>
1.246 <available file="${meta.inf.dir}/persistence.xml" property="has.persistence.xml"/>
1.247 + <condition property="junit.available">
1.248 + <or>
1.249 + <available classname="org.junit.Test" classpath="${run.test.classpath}"/>
1.250 + <available classname="junit.framework.Test" classpath="${run.test.classpath}"/>
1.251 + </or>
1.252 + </condition>
1.253 + <condition property="testng.available">
1.254 + <available classname="org.testng.annotations.Test" classpath="${run.test.classpath}"/>
1.255 + </condition>
1.256 + <condition property="junit+testng.available">
1.257 + <and>
1.258 + <istrue value="${junit.available}"/>
1.259 + <istrue value="${testng.available}"/>
1.260 + </and>
1.261 + </condition>
1.262 + <condition else="testng" property="testng.mode" value="mixed">
1.263 + <istrue value="${junit+testng.available}"/>
1.264 + </condition>
1.265 + <condition else="" property="testng.debug.mode" value="-mixed">
1.266 + <istrue value="${junit+testng.available}"/>
1.267 + </condition>
1.268 + <property name="java.failonerror" value="true"/>
1.269 </target>
1.270 <target name="-post-init">
1.271 <!-- Empty placeholder for easier customization. -->
1.272 @@ -202,11 +308,80 @@
1.273 </sequential>
1.274 </macrodef>
1.275 </target>
1.276 - <target depends="-init-ap-cmdline-properties" if="ap.supported.internal" name="-init-macrodef-javac-with-processors">
1.277 + <target depends="-init-ap-cmdline-properties,-init-source-module-properties" if="modules.supported.internal" name="-init-macrodef-javac-with-module">
1.278 <macrodef name="javac" uri="http://www.netbeans.org/ns/j2se-project/3">
1.279 <attribute default="${src.dir}" name="srcdir"/>
1.280 <attribute default="${build.classes.dir}" name="destdir"/>
1.281 <attribute default="${javac.classpath}" name="classpath"/>
1.282 + <attribute default="${javac.modulepath}" name="modulepath"/>
1.283 + <attribute default="${javac.upgrademodulepath}" name="upgrademodulepath"/>
1.284 + <attribute default="${javac.processorpath}" name="processorpath"/>
1.285 + <attribute default="${javac.processormodulepath}" name="processormodulepath"/>
1.286 + <attribute default="${build.generated.sources.dir}/ap-source-output" name="apgeneratedsrcdir"/>
1.287 + <attribute default="${includes}" name="includes"/>
1.288 + <attribute default="${excludes}" name="excludes"/>
1.289 + <attribute default="${javac.debug}" name="debug"/>
1.290 + <attribute default="${empty.dir}" name="sourcepath" unless:set="named.module.internal"/>
1.291 + <attribute default="${src.dir}" if:set="named.module.internal" name="sourcepath"/>
1.292 + <attribute default="${empty.dir}" name="gensrcdir"/>
1.293 + <element name="customize" optional="true"/>
1.294 + <sequential>
1.295 + <condition property="warn.excludes.internal">
1.296 + <and>
1.297 + <isset property="named.module.internal"/>
1.298 + <length length="0" string="@{excludes}" trim="true" when="greater"/>
1.299 + </and>
1.300 + </condition>
1.301 + <echo if:set="warn.excludes.internal" level="warning" message="The javac excludes are not supported in the JDK 9 Named Module."/>
1.302 + <property location="${build.dir}/empty" name="empty.dir"/>
1.303 + <mkdir dir="${empty.dir}"/>
1.304 + <mkdir dir="@{apgeneratedsrcdir}"/>
1.305 + <condition property="processormodulepath.set">
1.306 + <resourcecount count="0" when="greater">
1.307 + <path>
1.308 + <pathelement path="@{processormodulepath}"/>
1.309 + </path>
1.310 + </resourcecount>
1.311 + </condition>
1.312 + <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}">
1.313 + <src>
1.314 + <dirset dir="@{gensrcdir}" erroronmissingdir="false">
1.315 + <include name="*"/>
1.316 + </dirset>
1.317 + </src>
1.318 + <classpath>
1.319 + <path path="@{classpath}"/>
1.320 + </classpath>
1.321 + <modulepath>
1.322 + <path path="@{modulepath}"/>
1.323 + </modulepath>
1.324 + <upgrademodulepath>
1.325 + <path path="@{upgrademodulepath}"/>
1.326 + </upgrademodulepath>
1.327 + <compilerarg line="${javac.systemmodulepath.cmd.line.arg}"/>
1.328 + <compilerarg line="${javac.profile.cmd.line.arg}"/>
1.329 + <compilerarg line="${javac.compilerargs}"/>
1.330 + <compilerarg if:set="processormodulepath.set" value="--processor-module-path"/>
1.331 + <compilerarg if:set="processormodulepath.set" path="@{processormodulepath}"/>
1.332 + <compilerarg unless:set="processormodulepath.set" value="-processorpath"/>
1.333 + <compilerarg path="@{processorpath}:${empty.dir}" unless:set="processormodulepath.set"/>
1.334 + <compilerarg line="${ap.processors.internal}"/>
1.335 + <compilerarg line="${annotation.processing.processor.options}"/>
1.336 + <compilerarg value="-s"/>
1.337 + <compilerarg path="@{apgeneratedsrcdir}"/>
1.338 + <compilerarg line="${ap.proc.none.internal}"/>
1.339 + <customize/>
1.340 + </javac>
1.341 + </sequential>
1.342 + </macrodef>
1.343 + </target>
1.344 + <target depends="-init-ap-cmdline-properties,-init-source-module-properties" if="ap.supported.internal" name="-init-macrodef-javac-with-processors" unless="modules.supported.internal">
1.345 + <macrodef name="javac" uri="http://www.netbeans.org/ns/j2se-project/3">
1.346 + <attribute default="${src.dir}" name="srcdir"/>
1.347 + <attribute default="${build.classes.dir}" name="destdir"/>
1.348 + <attribute default="${javac.classpath}" name="classpath"/>
1.349 + <attribute default="${javac.modulepath}" name="modulepath"/>
1.350 + <attribute default="${javac.upgrademodulepath}" name="upgrademodulepath"/>
1.351 <attribute default="${javac.processorpath}" name="processorpath"/>
1.352 <attribute default="${build.generated.sources.dir}/ap-source-output" name="apgeneratedsrcdir"/>
1.353 <attribute default="${includes}" name="includes"/>
1.354 @@ -229,9 +404,10 @@
1.355 <path path="@{classpath}"/>
1.356 </classpath>
1.357 <compilerarg line="${endorsed.classpath.cmd.line.arg}"/>
1.358 + <compilerarg line="${javac.profile.cmd.line.arg}"/>
1.359 <compilerarg line="${javac.compilerargs}"/>
1.360 <compilerarg value="-processorpath"/>
1.361 - <compilerarg path="@{processorpath}"/>
1.362 + <compilerarg path="@{processorpath}:${empty.dir}"/>
1.363 <compilerarg line="${ap.processors.internal}"/>
1.364 <compilerarg line="${annotation.processing.processor.options}"/>
1.365 <compilerarg value="-s"/>
1.366 @@ -242,11 +418,13 @@
1.367 </sequential>
1.368 </macrodef>
1.369 </target>
1.370 - <target depends="-init-ap-cmdline-properties" name="-init-macrodef-javac-without-processors" unless="ap.supported.internal">
1.371 + <target depends="-init-ap-cmdline-properties,-init-source-module-properties" name="-init-macrodef-javac-without-processors" unless="ap.supported.internal">
1.372 <macrodef name="javac" uri="http://www.netbeans.org/ns/j2se-project/3">
1.373 <attribute default="${src.dir}" name="srcdir"/>
1.374 <attribute default="${build.classes.dir}" name="destdir"/>
1.375 <attribute default="${javac.classpath}" name="classpath"/>
1.376 + <attribute default="${javac.modulepath}" name="modulepath"/>
1.377 + <attribute default="${javac.upgrademodulepath}" name="upgrademodulepath"/>
1.378 <attribute default="${javac.processorpath}" name="processorpath"/>
1.379 <attribute default="${build.generated.sources.dir}/ap-source-output" name="apgeneratedsrcdir"/>
1.380 <attribute default="${includes}" name="includes"/>
1.381 @@ -268,13 +446,14 @@
1.382 <path path="@{classpath}"/>
1.383 </classpath>
1.384 <compilerarg line="${endorsed.classpath.cmd.line.arg}"/>
1.385 + <compilerarg line="${javac.profile.cmd.line.arg}"/>
1.386 <compilerarg line="${javac.compilerargs}"/>
1.387 <customize/>
1.388 </javac>
1.389 </sequential>
1.390 </macrodef>
1.391 </target>
1.392 - <target depends="-init-macrodef-javac-with-processors,-init-macrodef-javac-without-processors" name="-init-macrodef-javac">
1.393 + <target depends="-init-macrodef-javac-with-module,-init-macrodef-javac-with-processors,-init-macrodef-javac-without-processors" name="-init-macrodef-javac">
1.394 <macrodef name="depend" uri="http://www.netbeans.org/ns/j2se-project/3">
1.395 <attribute default="${src.dir}" name="srcdir"/>
1.396 <attribute default="${build.classes.dir}" name="destdir"/>
1.397 @@ -291,52 +470,383 @@
1.398 <attribute default="${build.classes.dir}" name="destdir"/>
1.399 <sequential>
1.400 <fail unless="javac.includes">Must set javac.includes</fail>
1.401 - <pathconvert pathsep="," property="javac.includes.binary">
1.402 + <pathconvert pathsep="${line.separator}" property="javac.includes.binary">
1.403 <path>
1.404 <filelist dir="@{destdir}" files="${javac.includes}"/>
1.405 </path>
1.406 <globmapper from="*.java" to="*.class"/>
1.407 </pathconvert>
1.408 + <tempfile deleteonexit="true" property="javac.includesfile.binary"/>
1.409 + <echo file="${javac.includesfile.binary}" message="${javac.includes.binary}"/>
1.410 <delete>
1.411 - <files includes="${javac.includes.binary}"/>
1.412 + <files includesfile="${javac.includesfile.binary}"/>
1.413 + </delete>
1.414 + <delete>
1.415 + <fileset file="${javac.includesfile.binary}"/>
1.416 </delete>
1.417 </sequential>
1.418 </macrodef>
1.419 </target>
1.420 - <target name="-init-macrodef-junit">
1.421 + <target if="${junit.available}" name="-init-macrodef-junit-init">
1.422 + <condition else="false" property="nb.junit.batch" value="true">
1.423 + <and>
1.424 + <istrue value="${junit.available}"/>
1.425 + <not>
1.426 + <isset property="test.method"/>
1.427 + </not>
1.428 + </and>
1.429 + </condition>
1.430 + <condition else="false" property="nb.junit.single" value="true">
1.431 + <and>
1.432 + <istrue value="${junit.available}"/>
1.433 + <isset property="test.method"/>
1.434 + </and>
1.435 + </condition>
1.436 + </target>
1.437 + <target name="-init-test-properties">
1.438 + <property name="test.binaryincludes" value="<nothing>"/>
1.439 + <property name="test.binarytestincludes" value=""/>
1.440 + <property name="test.binaryexcludes" value=""/>
1.441 + </target>
1.442 + <target depends="-init-modules-supported" if="modules.supported.internal" name="-init-macrodef-junit-prototype-with-module">
1.443 + <macrodef name="junit-prototype" uri="http://www.netbeans.org/ns/j2se-project/3">
1.444 + <attribute default="${includes}" name="includes"/>
1.445 + <attribute default="${excludes}" name="excludes"/>
1.446 + <element name="customizePrototype" optional="true"/>
1.447 + <sequential>
1.448 + <property name="junit.forkmode" value="perTest"/>
1.449 + <junit dir="${work.dir}" errorproperty="tests.failed" failureproperty="tests.failed" fork="true" forkmode="${junit.forkmode}" showoutput="true" tempdir="${build.dir}">
1.450 + <syspropertyset>
1.451 + <propertyref prefix="test-sys-prop."/>
1.452 + <mapper from="test-sys-prop.*" to="*" type="glob"/>
1.453 + </syspropertyset>
1.454 + <classpath>
1.455 + <path path="${run.test.classpath}"/>
1.456 + </classpath>
1.457 + <modulepath>
1.458 + <path path="${run.test.modulepath}"/>
1.459 + </modulepath>
1.460 + <formatter type="brief" usefile="false"/>
1.461 + <formatter type="xml"/>
1.462 + <jvmarg line="${endorsed.classpath.cmd.line.arg}"/>
1.463 + <jvmarg value="-ea"/>
1.464 + <jvmarg line="${run.test.jvmargs}"/>
1.465 + <customizePrototype/>
1.466 + </junit>
1.467 + </sequential>
1.468 + </macrodef>
1.469 + </target>
1.470 + <target depends="-init-modules-supported" name="-init-macrodef-junit-prototype-without-module" unless="modules.supported.internal">
1.471 + <macrodef name="junit-prototype" uri="http://www.netbeans.org/ns/j2se-project/3">
1.472 + <attribute default="${includes}" name="includes"/>
1.473 + <attribute default="${excludes}" name="excludes"/>
1.474 + <element name="customizePrototype" optional="true"/>
1.475 + <sequential>
1.476 + <property name="junit.forkmode" value="perTest"/>
1.477 + <junit dir="${work.dir}" errorproperty="tests.failed" failureproperty="tests.failed" fork="true" forkmode="${junit.forkmode}" showoutput="true" tempdir="${build.dir}">
1.478 + <syspropertyset>
1.479 + <propertyref prefix="test-sys-prop."/>
1.480 + <mapper from="test-sys-prop.*" to="*" type="glob"/>
1.481 + </syspropertyset>
1.482 + <classpath>
1.483 + <path path="${run.test.classpath}"/>
1.484 + </classpath>
1.485 + <formatter type="brief" usefile="false"/>
1.486 + <formatter type="xml"/>
1.487 + <jvmarg line="${endorsed.classpath.cmd.line.arg}"/>
1.488 + <jvmarg value="-ea"/>
1.489 + <customizePrototype/>
1.490 + </junit>
1.491 + </sequential>
1.492 + </macrodef>
1.493 + </target>
1.494 + <target depends="-init-test-properties,-init-macrodef-junit-prototype-with-module,-init-macrodef-junit-prototype-without-module" if="${nb.junit.single}" name="-init-macrodef-junit-single" unless="${nb.junit.batch}">
1.495 <macrodef name="junit" uri="http://www.netbeans.org/ns/j2se-project/3">
1.496 <attribute default="${includes}" name="includes"/>
1.497 <attribute default="${excludes}" name="excludes"/>
1.498 <attribute default="**" name="testincludes"/>
1.499 + <attribute default="" name="testmethods"/>
1.500 + <element name="customize" optional="true"/>
1.501 <sequential>
1.502 - <junit dir="${work.dir}" errorproperty="tests.failed" failureproperty="tests.failed" fork="true" showoutput="true" tempdir="${build.dir}">
1.503 - <batchtest todir="${build.test.results.dir}">
1.504 - <fileset dir="${test.src.dir}" excludes="@{excludes},${excludes}" includes="@{includes}">
1.505 - <filename name="@{testincludes}"/>
1.506 - </fileset>
1.507 - </batchtest>
1.508 + <j2seproject3:junit-prototype>
1.509 + <customizePrototype>
1.510 + <test methods="@{testmethods}" name="@{testincludes}" todir="${build.test.results.dir}"/>
1.511 + <customize/>
1.512 + </customizePrototype>
1.513 + </j2seproject3:junit-prototype>
1.514 + </sequential>
1.515 + </macrodef>
1.516 + </target>
1.517 + <target depends="-init-test-properties,-init-macrodef-junit-prototype-with-module,-init-macrodef-junit-prototype-without-module" if="${nb.junit.batch}" name="-init-macrodef-junit-batch" unless="${nb.junit.single}">
1.518 + <macrodef name="junit" uri="http://www.netbeans.org/ns/j2se-project/3">
1.519 + <attribute default="${includes}" name="includes"/>
1.520 + <attribute default="${excludes}" name="excludes"/>
1.521 + <attribute default="**" name="testincludes"/>
1.522 + <attribute default="" name="testmethods"/>
1.523 + <element name="customize" optional="true"/>
1.524 + <sequential>
1.525 + <j2seproject3:junit-prototype>
1.526 + <customizePrototype>
1.527 + <batchtest todir="${build.test.results.dir}">
1.528 + <fileset dir="${test.src.dir}" excludes="@{excludes},${excludes}" includes="@{includes}">
1.529 + <filename name="@{testincludes}"/>
1.530 + </fileset>
1.531 + <fileset dir="${build.test.classes.dir}" excludes="@{excludes},${excludes},${test.binaryexcludes}" includes="${test.binaryincludes}">
1.532 + <filename name="${test.binarytestincludes}"/>
1.533 + </fileset>
1.534 + </batchtest>
1.535 + <customize/>
1.536 + </customizePrototype>
1.537 + </j2seproject3:junit-prototype>
1.538 + </sequential>
1.539 + </macrodef>
1.540 + </target>
1.541 + <target depends="-init-macrodef-junit-init,-init-macrodef-junit-single, -init-macrodef-junit-batch" if="${junit.available}" name="-init-macrodef-junit"/>
1.542 + <target if="${testng.available}" name="-init-macrodef-testng">
1.543 + <macrodef name="testng" uri="http://www.netbeans.org/ns/j2se-project/3">
1.544 + <attribute default="${includes}" name="includes"/>
1.545 + <attribute default="${excludes}" name="excludes"/>
1.546 + <attribute default="**" name="testincludes"/>
1.547 + <attribute default="" name="testmethods"/>
1.548 + <element name="customize" optional="true"/>
1.549 + <sequential>
1.550 + <condition else="" property="testng.methods.arg" value="@{testincludes}.@{testmethods}">
1.551 + <isset property="test.method"/>
1.552 + </condition>
1.553 + <union id="test.set">
1.554 + <fileset dir="${test.src.dir}" excludes="@{excludes},**/*.xml,${excludes}" includes="@{includes}">
1.555 + <filename name="@{testincludes}"/>
1.556 + </fileset>
1.557 + </union>
1.558 + <taskdef classname="org.testng.TestNGAntTask" classpath="${run.test.classpath}" name="testng"/>
1.559 + <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="stateful" testname="TestNG tests" workingDir="${work.dir}">
1.560 + <xmlfileset dir="${build.test.classes.dir}" includes="@{testincludes}"/>
1.561 + <propertyset>
1.562 + <propertyref prefix="test-sys-prop."/>
1.563 + <mapper from="test-sys-prop.*" to="*" type="glob"/>
1.564 + </propertyset>
1.565 <classpath>
1.566 <path path="${run.test.classpath}"/>
1.567 </classpath>
1.568 - <syspropertyset>
1.569 - <propertyref prefix="test-sys-prop."/>
1.570 - <mapper from="test-sys-prop.*" to="*" type="glob"/>
1.571 - </syspropertyset>
1.572 - <formatter type="brief" usefile="false"/>
1.573 - <formatter type="xml"/>
1.574 <jvmarg line="${endorsed.classpath.cmd.line.arg}"/>
1.575 - <jvmarg line="${run.jvmargs}"/>
1.576 - </junit>
1.577 + <customize/>
1.578 + </testng>
1.579 </sequential>
1.580 </macrodef>
1.581 </target>
1.582 + <target name="-init-macrodef-test-impl">
1.583 + <macrodef name="test-impl" uri="http://www.netbeans.org/ns/j2se-project/3">
1.584 + <attribute default="${includes}" name="includes"/>
1.585 + <attribute default="${excludes}" name="excludes"/>
1.586 + <attribute default="**" name="testincludes"/>
1.587 + <attribute default="" name="testmethods"/>
1.588 + <element implicit="true" name="customize" optional="true"/>
1.589 + <sequential>
1.590 + <echo>No tests executed.</echo>
1.591 + </sequential>
1.592 + </macrodef>
1.593 + </target>
1.594 + <target depends="-init-macrodef-junit" if="${junit.available}" name="-init-macrodef-junit-impl">
1.595 + <macrodef name="test-impl" uri="http://www.netbeans.org/ns/j2se-project/3">
1.596 + <attribute default="${includes}" name="includes"/>
1.597 + <attribute default="${excludes}" name="excludes"/>
1.598 + <attribute default="**" name="testincludes"/>
1.599 + <attribute default="" name="testmethods"/>
1.600 + <element implicit="true" name="customize" optional="true"/>
1.601 + <sequential>
1.602 + <j2seproject3:junit excludes="@{excludes}" includes="@{includes}" testincludes="@{testincludes}" testmethods="@{testmethods}">
1.603 + <customize/>
1.604 + </j2seproject3:junit>
1.605 + </sequential>
1.606 + </macrodef>
1.607 + </target>
1.608 + <target depends="-init-macrodef-testng" if="${testng.available}" name="-init-macrodef-testng-impl">
1.609 + <macrodef name="test-impl" uri="http://www.netbeans.org/ns/j2se-project/3">
1.610 + <attribute default="${includes}" name="includes"/>
1.611 + <attribute default="${excludes}" name="excludes"/>
1.612 + <attribute default="**" name="testincludes"/>
1.613 + <attribute default="" name="testmethods"/>
1.614 + <element implicit="true" name="customize" optional="true"/>
1.615 + <sequential>
1.616 + <j2seproject3:testng excludes="@{excludes}" includes="@{includes}" testincludes="@{testincludes}" testmethods="@{testmethods}">
1.617 + <customize/>
1.618 + </j2seproject3:testng>
1.619 + </sequential>
1.620 + </macrodef>
1.621 + </target>
1.622 + <target depends="-init-macrodef-test-impl,-init-macrodef-junit-impl,-init-macrodef-testng-impl" name="-init-macrodef-test">
1.623 + <macrodef name="test" uri="http://www.netbeans.org/ns/j2se-project/3">
1.624 + <attribute default="${includes}" name="includes"/>
1.625 + <attribute default="${excludes}" name="excludes"/>
1.626 + <attribute default="**" name="testincludes"/>
1.627 + <attribute default="" name="testmethods"/>
1.628 + <sequential>
1.629 + <j2seproject3:test-impl excludes="@{excludes}" includes="@{includes}" testincludes="@{testincludes}" testmethods="@{testmethods}">
1.630 + <customize>
1.631 + <jvmarg line="${run.jvmargs}"/>
1.632 + <jvmarg line="${run.jvmargs.ide}"/>
1.633 + </customize>
1.634 + </j2seproject3:test-impl>
1.635 + </sequential>
1.636 + </macrodef>
1.637 + </target>
1.638 + <target depends="-init-macrodef-junit" if="${junit.available}" name="-init-macrodef-junit-debug-impl">
1.639 + <macrodef name="test-debug-impl" uri="http://www.netbeans.org/ns/j2se-project/3">
1.640 + <attribute default="${includes}" name="includes"/>
1.641 + <attribute default="${excludes}" name="excludes"/>
1.642 + <attribute default="**" name="testincludes"/>
1.643 + <attribute default="" name="testmethods"/>
1.644 + <element name="customizeDebuggee" optional="true"/>
1.645 + <sequential>
1.646 + <j2seproject3:junit excludes="@{excludes}" includes="@{includes}" testincludes="@{testincludes}" testmethods="@{testmethods}">
1.647 + <customize>
1.648 + <jvmarg value="-agentlib:jdwp=transport=${debug-transport},address=${jpda.address}"/>
1.649 + <customizeDebuggee/>
1.650 + </customize>
1.651 + </j2seproject3:junit>
1.652 + </sequential>
1.653 + </macrodef>
1.654 + </target>
1.655 + <target if="${testng.available}" name="-init-macrodef-testng-debug">
1.656 + <macrodef name="testng-debug" uri="http://www.netbeans.org/ns/j2se-project/3">
1.657 + <attribute default="${main.class}" name="testClass"/>
1.658 + <attribute default="" name="testMethod"/>
1.659 + <element name="customize2" optional="true"/>
1.660 + <sequential>
1.661 + <condition else="-testclass @{testClass}" property="test.class.or.method" value="-methods @{testClass}.@{testMethod}">
1.662 + <isset property="test.method"/>
1.663 + </condition>
1.664 + <condition else="-suitename stateful -testname @{testClass} ${test.class.or.method}" property="testng.cmd.args" value="@{testClass}">
1.665 + <matches pattern=".*\.xml" string="@{testClass}"/>
1.666 + </condition>
1.667 + <delete dir="${build.test.results.dir}" quiet="true"/>
1.668 + <mkdir dir="${build.test.results.dir}"/>
1.669 + <j2seproject3:debug classname="org.testng.TestNG" classpath="${debug.test.classpath}">
1.670 + <customizeDebuggee>
1.671 + <customize2/>
1.672 + <jvmarg value="-ea"/>
1.673 + <arg line="${testng.debug.mode}"/>
1.674 + <arg line="-d ${build.test.results.dir}"/>
1.675 + <arg line="-listener org.testng.reporters.VerboseReporter"/>
1.676 + <arg line="${testng.cmd.args}"/>
1.677 + </customizeDebuggee>
1.678 + </j2seproject3:debug>
1.679 + </sequential>
1.680 + </macrodef>
1.681 + </target>
1.682 + <target depends="-init-macrodef-testng-debug" if="${testng.available}" name="-init-macrodef-testng-debug-impl">
1.683 + <macrodef name="testng-debug-impl" uri="http://www.netbeans.org/ns/j2se-project/3">
1.684 + <attribute default="${main.class}" name="testClass"/>
1.685 + <attribute default="" name="testMethod"/>
1.686 + <element implicit="true" name="customize2" optional="true"/>
1.687 + <sequential>
1.688 + <j2seproject3:testng-debug testClass="@{testClass}" testMethod="@{testMethod}">
1.689 + <customize2/>
1.690 + </j2seproject3:testng-debug>
1.691 + </sequential>
1.692 + </macrodef>
1.693 + </target>
1.694 + <target depends="-init-macrodef-junit-debug-impl" if="${junit.available}" name="-init-macrodef-test-debug-junit">
1.695 + <macrodef name="test-debug" uri="http://www.netbeans.org/ns/j2se-project/3">
1.696 + <attribute default="${includes}" name="includes"/>
1.697 + <attribute default="${excludes}" name="excludes"/>
1.698 + <attribute default="**" name="testincludes"/>
1.699 + <attribute default="" name="testmethods"/>
1.700 + <attribute default="${main.class}" name="testClass"/>
1.701 + <attribute default="" name="testMethod"/>
1.702 + <sequential>
1.703 + <j2seproject3:test-debug-impl excludes="@{excludes}" includes="@{includes}" testincludes="@{testincludes}" testmethods="@{testmethods}">
1.704 + <customizeDebuggee>
1.705 + <jvmarg line="${run.jvmargs}"/>
1.706 + <jvmarg line="${run.jvmargs.ide}"/>
1.707 + </customizeDebuggee>
1.708 + </j2seproject3:test-debug-impl>
1.709 + </sequential>
1.710 + </macrodef>
1.711 + </target>
1.712 + <target depends="-init-macrodef-testng-debug-impl" if="${testng.available}" name="-init-macrodef-test-debug-testng">
1.713 + <macrodef name="test-debug" uri="http://www.netbeans.org/ns/j2se-project/3">
1.714 + <attribute default="${includes}" name="includes"/>
1.715 + <attribute default="${excludes}" name="excludes"/>
1.716 + <attribute default="**" name="testincludes"/>
1.717 + <attribute default="" name="testmethods"/>
1.718 + <attribute default="${main.class}" name="testClass"/>
1.719 + <attribute default="" name="testMethod"/>
1.720 + <sequential>
1.721 + <j2seproject3:testng-debug-impl testClass="@{testClass}" testMethod="@{testMethod}">
1.722 + <customize2>
1.723 + <syspropertyset>
1.724 + <propertyref prefix="test-sys-prop."/>
1.725 + <mapper from="test-sys-prop.*" to="*" type="glob"/>
1.726 + </syspropertyset>
1.727 + </customize2>
1.728 + </j2seproject3:testng-debug-impl>
1.729 + </sequential>
1.730 + </macrodef>
1.731 + </target>
1.732 + <target depends="-init-macrodef-test-debug-junit,-init-macrodef-test-debug-testng" name="-init-macrodef-test-debug"/>
1.733 + <!--
1.734 + pre NB7.2 profiling section; consider it deprecated
1.735 + -->
1.736 + <target depends="-profile-pre-init, init, -profile-post-init, -profile-init-macrodef-profile, -profile-init-check" if="profiler.info.jvmargs.agent" name="profile-init"/>
1.737 + <target if="profiler.info.jvmargs.agent" name="-profile-pre-init">
1.738 + <!-- Empty placeholder for easier customization. -->
1.739 + <!-- You can override this target in the ../build.xml file. -->
1.740 + </target>
1.741 + <target if="profiler.info.jvmargs.agent" name="-profile-post-init">
1.742 + <!-- Empty placeholder for easier customization. -->
1.743 + <!-- You can override this target in the ../build.xml file. -->
1.744 + </target>
1.745 + <target if="profiler.info.jvmargs.agent" name="-profile-init-macrodef-profile">
1.746 + <macrodef name="resolve">
1.747 + <attribute name="name"/>
1.748 + <attribute name="value"/>
1.749 + <sequential>
1.750 + <property name="@{name}" value="${env.@{value}}"/>
1.751 + </sequential>
1.752 + </macrodef>
1.753 + <macrodef name="profile">
1.754 + <attribute default="${main.class}" name="classname"/>
1.755 + <element name="customize" optional="true"/>
1.756 + <sequential>
1.757 + <property environment="env"/>
1.758 + <resolve name="profiler.current.path" value="${profiler.info.pathvar}"/>
1.759 + <java classname="@{classname}" dir="${profiler.info.dir}" failonerror="${java.failonerror}" fork="true" jvm="${profiler.info.jvm}">
1.760 + <jvmarg line="${endorsed.classpath.cmd.line.arg}"/>
1.761 + <jvmarg value="${profiler.info.jvmargs.agent}"/>
1.762 + <jvmarg line="${profiler.info.jvmargs}"/>
1.763 + <env key="${profiler.info.pathvar}" path="${profiler.info.agentpath}:${profiler.current.path}"/>
1.764 + <arg line="${application.args}"/>
1.765 + <classpath>
1.766 + <path path="${run.classpath}"/>
1.767 + </classpath>
1.768 + <syspropertyset>
1.769 + <propertyref prefix="run-sys-prop."/>
1.770 + <mapper from="run-sys-prop.*" to="*" type="glob"/>
1.771 + </syspropertyset>
1.772 + <customize/>
1.773 + </java>
1.774 + </sequential>
1.775 + </macrodef>
1.776 + </target>
1.777 + <target depends="-profile-pre-init, init, -profile-post-init, -profile-init-macrodef-profile" if="profiler.info.jvmargs.agent" name="-profile-init-check">
1.778 + <fail unless="profiler.info.jvm">Must set JVM to use for profiling in profiler.info.jvm</fail>
1.779 + <fail unless="profiler.info.jvmargs.agent">Must set profiler agent JVM arguments in profiler.info.jvmargs.agent</fail>
1.780 + </target>
1.781 + <!--
1.782 + end of pre NB7.2 profiling section
1.783 + -->
1.784 <target depends="-init-debug-args" name="-init-macrodef-nbjpda">
1.785 <macrodef name="nbjpdastart" uri="http://www.netbeans.org/ns/j2se-project/1">
1.786 <attribute default="${main.class}" name="name"/>
1.787 + <attribute default="${debug.modulepath}" name="modulepath"/>
1.788 <attribute default="${debug.classpath}" name="classpath"/>
1.789 <attribute default="" name="stopclassname"/>
1.790 <sequential>
1.791 <nbjpdastart addressproperty="jpda.address" name="@{name}" stopclassname="@{stopclassname}" transport="${debug-transport}">
1.792 + <modulepath>
1.793 + <path path="@{modulepath}"/>
1.794 + </modulepath>
1.795 <classpath>
1.796 <path path="@{classpath}"/>
1.797 </classpath>
1.798 @@ -355,18 +865,6 @@
1.799 </macrodef>
1.800 </target>
1.801 <target name="-init-debug-args">
1.802 - <property name="version-output" value="java version "${ant.java.version}"/>
1.803 - <condition property="have-jdk-older-than-1.4">
1.804 - <or>
1.805 - <contains string="${version-output}" substring="java version "1.0"/>
1.806 - <contains string="${version-output}" substring="java version "1.1"/>
1.807 - <contains string="${version-output}" substring="java version "1.2"/>
1.808 - <contains string="${version-output}" substring="java version "1.3"/>
1.809 - </or>
1.810 - </condition>
1.811 - <condition else="-Xdebug" property="debug-args-line" value="-Xdebug -Xnoagent -Djava.compiler=none">
1.812 - <istrue value="${have-jdk-older-than-1.4}"/>
1.813 - </condition>
1.814 <condition else="dt_socket" property="debug-transport-by-os" value="dt_shmem">
1.815 <os family="windows"/>
1.816 </condition>
1.817 @@ -376,17 +874,103 @@
1.818 </target>
1.819 <target depends="-init-debug-args" name="-init-macrodef-debug">
1.820 <macrodef name="debug" uri="http://www.netbeans.org/ns/j2se-project/3">
1.821 + <attribute default="${module.name}" name="modulename"/>
1.822 <attribute default="${main.class}" name="classname"/>
1.823 + <attribute default="${debug.modulepath}" name="modulepath"/>
1.824 <attribute default="${debug.classpath}" name="classpath"/>
1.825 + <element name="customizeDebuggee" optional="true"/>
1.826 + <sequential>
1.827 + <j2seproject1:java classname="@{classname}" classpath="@{classpath}" modulename="@{modulename}" modulepath="@{modulepath}">
1.828 + <customize>
1.829 + <jvmarg value="-agentlib:jdwp=transport=${debug-transport},address=${jpda.address}"/>
1.830 + <customizeDebuggee/>
1.831 + </customize>
1.832 + </j2seproject1:java>
1.833 + </sequential>
1.834 + </macrodef>
1.835 + </target>
1.836 + <target depends="-init-source-module-properties" if="named.module.internal" name="-init-macrodef-java-with-module">
1.837 + <macrodef name="java" uri="http://www.netbeans.org/ns/j2se-project/1">
1.838 + <attribute default="${module.name}" name="modulename"/>
1.839 + <attribute default="${main.class}" name="classname"/>
1.840 + <attribute default="${run.modulepath}" name="modulepath"/>
1.841 + <attribute default="${run.upgrademodulepath}" name="upgrademodulepath"/>
1.842 + <attribute default="${run.classpath}" name="classpath"/>
1.843 + <attribute default="jvm" name="jvm"/>
1.844 <element name="customize" optional="true"/>
1.845 <sequential>
1.846 - <java classname="@{classname}" dir="${work.dir}" fork="true">
1.847 - <jvmarg line="${endorsed.classpath.cmd.line.arg}"/>
1.848 - <jvmarg line="${debug-args-line}"/>
1.849 - <jvmarg value="-Xrunjdwp:transport=${debug-transport},address=${jpda.address}"/>
1.850 + <java classname="@{classname}" dir="${work.dir}" failonerror="${java.failonerror}" fork="true" module="@{modulename}">
1.851 + <classpath>
1.852 + <path path="@{classpath}"/>
1.853 + </classpath>
1.854 + <modulepath>
1.855 + <pathelement path="@{modulepath}"/>
1.856 + <pathelement location="${module.build.classes.dir}"/>
1.857 + </modulepath>
1.858 + <upgrademodulepath>
1.859 + <path path="@{upgrademodulepath}"/>
1.860 + </upgrademodulepath>
1.861 <jvmarg value="-Dfile.encoding=${runtime.encoding}"/>
1.862 <redirector errorencoding="${runtime.encoding}" inputencoding="${runtime.encoding}" outputencoding="${runtime.encoding}"/>
1.863 <jvmarg line="${run.jvmargs}"/>
1.864 + <jvmarg line="${run.jvmargs.ide}"/>
1.865 + <syspropertyset>
1.866 + <propertyref prefix="run-sys-prop."/>
1.867 + <mapper from="run-sys-prop.*" to="*" type="glob"/>
1.868 + </syspropertyset>
1.869 + <customize/>
1.870 + </java>
1.871 + </sequential>
1.872 + </macrodef>
1.873 + </target>
1.874 + <target depends="-init-source-module-properties" if="unnamed.module.internal" name="-init-macrodef-java-with-unnamed-module">
1.875 + <macrodef name="java" uri="http://www.netbeans.org/ns/j2se-project/1">
1.876 + <attribute default="" name="modulename"/>
1.877 + <attribute default="${main.class}" name="classname"/>
1.878 + <attribute default="${run.modulepath}" name="modulepath"/>
1.879 + <attribute default="${run.upgrademodulepath}" name="upgrademodulepath"/>
1.880 + <attribute default="${run.classpath}" name="classpath"/>
1.881 + <attribute default="jvm" name="jvm"/>
1.882 + <element name="customize" optional="true"/>
1.883 + <sequential>
1.884 + <java classname="@{classname}" dir="${work.dir}" failonerror="${java.failonerror}" fork="true">
1.885 + <classpath>
1.886 + <path path="@{classpath}"/>
1.887 + </classpath>
1.888 + <modulepath>
1.889 + <path path="@{modulepath}"/>
1.890 + </modulepath>
1.891 + <upgrademodulepath>
1.892 + <path path="@{upgrademodulepath}"/>
1.893 + </upgrademodulepath>
1.894 + <jvmarg value="-Dfile.encoding=${runtime.encoding}"/>
1.895 + <redirector errorencoding="${runtime.encoding}" inputencoding="${runtime.encoding}" outputencoding="${runtime.encoding}"/>
1.896 + <jvmarg line="${run.jvmargs}"/>
1.897 + <jvmarg line="${run.jvmargs.ide}"/>
1.898 + <syspropertyset>
1.899 + <propertyref prefix="run-sys-prop."/>
1.900 + <mapper from="run-sys-prop.*" to="*" type="glob"/>
1.901 + </syspropertyset>
1.902 + <customize/>
1.903 + </java>
1.904 + </sequential>
1.905 + </macrodef>
1.906 + </target>
1.907 + <target depends="-init-source-module-properties" name="-init-macrodef-java-without-module" unless="modules.supported.internal">
1.908 + <macrodef name="java" uri="http://www.netbeans.org/ns/j2se-project/1">
1.909 + <attribute default="" name="modulename"/>
1.910 + <attribute default="${main.class}" name="classname"/>
1.911 + <attribute default="" name="modulepath"/>
1.912 + <attribute default="${run.classpath}" name="classpath"/>
1.913 + <attribute default="jvm" name="jvm"/>
1.914 + <element name="customize" optional="true"/>
1.915 + <sequential>
1.916 + <java classname="@{classname}" dir="${work.dir}" failonerror="${java.failonerror}" fork="true">
1.917 + <jvmarg line="${endorsed.classpath.cmd.line.arg}"/>
1.918 + <jvmarg value="-Dfile.encoding=${runtime.encoding}"/>
1.919 + <redirector errorencoding="${runtime.encoding}" inputencoding="${runtime.encoding}" outputencoding="${runtime.encoding}"/>
1.920 + <jvmarg line="${run.jvmargs}"/>
1.921 + <jvmarg line="${run.jvmargs.ide}"/>
1.922 <classpath>
1.923 <path path="@{classpath}"/>
1.924 </classpath>
1.925 @@ -399,31 +983,10 @@
1.926 </sequential>
1.927 </macrodef>
1.928 </target>
1.929 - <target name="-init-macrodef-java">
1.930 - <macrodef name="java" uri="http://www.netbeans.org/ns/j2se-project/1">
1.931 - <attribute default="${main.class}" name="classname"/>
1.932 - <attribute default="${run.classpath}" name="classpath"/>
1.933 - <element name="customize" optional="true"/>
1.934 - <sequential>
1.935 - <java classname="@{classname}" dir="${work.dir}" fork="true">
1.936 - <jvmarg line="${endorsed.classpath.cmd.line.arg}"/>
1.937 - <jvmarg value="-Dfile.encoding=${runtime.encoding}"/>
1.938 - <redirector errorencoding="${runtime.encoding}" inputencoding="${runtime.encoding}" outputencoding="${runtime.encoding}"/>
1.939 - <jvmarg line="${run.jvmargs}"/>
1.940 - <classpath>
1.941 - <path path="@{classpath}"/>
1.942 - </classpath>
1.943 - <syspropertyset>
1.944 - <propertyref prefix="run-sys-prop."/>
1.945 - <mapper from="run-sys-prop.*" to="*" type="glob"/>
1.946 - </syspropertyset>
1.947 - <customize/>
1.948 - </java>
1.949 - </sequential>
1.950 - </macrodef>
1.951 - </target>
1.952 + <target depends="-init-macrodef-java-with-module, -init-macrodef-java-with-unnamed-module, -init-macrodef-java-without-module" name="-init-macrodef-java"/>
1.953 <target name="-init-macrodef-copylibs">
1.954 <macrodef name="copylibs" uri="http://www.netbeans.org/ns/j2se-project/3">
1.955 + <attribute default="${manifest.file}" name="manifest"/>
1.956 <element name="customize" optional="true"/>
1.957 <sequential>
1.958 <property location="${build.classes.dir}" name="build.classes.dir.resolved"/>
1.959 @@ -435,12 +998,15 @@
1.960 <path path="${run.classpath.without.build.classes.dir}"/>
1.961 <chainedmapper>
1.962 <flattenmapper/>
1.963 + <filtermapper>
1.964 + <replacestring from=" " to="%20"/>
1.965 + </filtermapper>
1.966 <globmapper from="*" to="lib/*"/>
1.967 </chainedmapper>
1.968 </pathconvert>
1.969 <taskdef classname="org.netbeans.modules.java.j2seproject.copylibstask.CopyLibs" classpath="${libs.CopyLibs.classpath}" name="copylibs"/>
1.970 - <copylibs compress="${jar.compress}" index="${jar.index}" jarfile="${dist.jar}" manifest="${manifest.file}" runtimeclasspath="${run.classpath.without.build.classes.dir}">
1.971 - <fileset dir="${build.classes.dir}"/>
1.972 + <copylibs compress="${jar.compress}" excludeFromCopy="${copylibs.excludes}" index="${jar.index}" indexMetaInf="${jar.index.metainf}" jarfile="${dist.jar}" manifest="@{manifest}" manifestencoding="UTF-8" rebase="${copylibs.rebase}" runtimeclasspath="${run.classpath.without.build.classes.dir}">
1.973 + <fileset dir="${build.classes.dir}" excludes="${dist.archive.excludes}"/>
1.974 <manifest>
1.975 <attribute name="Class-Path" value="${jar.classpath}"/>
1.976 <customize/>
1.977 @@ -451,8 +1017,8 @@
1.978 </target>
1.979 <target name="-init-presetdef-jar">
1.980 <presetdef name="jar" uri="http://www.netbeans.org/ns/j2se-project/1">
1.981 - <jar compress="${jar.compress}" index="${jar.index}" jarfile="${dist.jar}">
1.982 - <j2seproject1:fileset dir="${build.classes.dir}"/>
1.983 + <jar compress="${jar.compress}" index="${jar.index}" jarfile="${dist.jar}" manifestencoding="UTF-8">
1.984 + <j2seproject1:fileset dir="${build.classes.dir}" excludes="${dist.archive.excludes}"/>
1.985 </jar>
1.986 </presetdef>
1.987 </target>
1.988 @@ -480,7 +1046,7 @@
1.989 <target depends="-init-ap-cmdline-properties,-init-ap-cmdline-supported" name="-init-ap-cmdline">
1.990 <property name="ap.cmd.line.internal" value=""/>
1.991 </target>
1.992 - <target depends="-pre-init,-init-private,-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"/>
1.993 + <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"/>
1.994 <!--
1.995 ===================
1.996 COMPILATION SECTION
1.997 @@ -507,7 +1073,9 @@
1.998 <available file="${build.classes.dir}/.netbeans_automatic_build" property="netbeans.automatic.build"/>
1.999 </target>
1.1000 <target depends="init" if="netbeans.automatic.build" name="-clean-after-automatic-build">
1.1001 - <antcall target="clean"/>
1.1002 + <antcall target="clean">
1.1003 + <param name="no.dependencies" value="true"/>
1.1004 + </antcall>
1.1005 </target>
1.1006 <target depends="init,deps-jar" name="-pre-pre-compile">
1.1007 <mkdir dir="${build.classes.dir}"/>
1.1008 @@ -533,7 +1101,7 @@
1.1009 <target if="has.persistence.xml" name="-copy-persistence-xml">
1.1010 <mkdir dir="${build.classes.dir}/META-INF"/>
1.1011 <copy todir="${build.classes.dir}/META-INF">
1.1012 - <fileset dir="${meta.inf.dir}" includes="persistence.xml"/>
1.1013 + <fileset dir="${meta.inf.dir}" includes="persistence.xml orm.xml"/>
1.1014 </copy>
1.1015 </target>
1.1016 <target name="-post-compile">
1.1017 @@ -548,7 +1116,7 @@
1.1018 <target depends="init,deps-jar,-pre-pre-compile" name="-do-compile-single">
1.1019 <fail unless="javac.includes">Must select some files in the IDE or set javac.includes</fail>
1.1020 <j2seproject3:force-recompile/>
1.1021 - <j2seproject3:javac excludes="" gensrcdir="${build.generated.sources.dir}" includes="${javac.includes}" sourcepath="${src.dir}"/>
1.1022 + <j2seproject3:javac excludes="" gensrcdir="${build.generated.sources.dir}" includes="${javac.includes}, module-info.java" sourcepath="${src.dir}"/>
1.1023 </target>
1.1024 <target name="-post-compile-single">
1.1025 <!-- Empty placeholder for easier customization. -->
1.1026 @@ -568,56 +1136,191 @@
1.1027 <!-- Empty placeholder for easier customization. -->
1.1028 <!-- You can override this target in the ../build.xml file. -->
1.1029 </target>
1.1030 - <target depends="init,compile,-pre-pre-jar,-pre-jar" if="do.archive" name="-do-jar-without-manifest" unless="manifest.available">
1.1031 - <j2seproject1:jar/>
1.1032 + <target depends="init,compile" name="-check-module-main-class">
1.1033 + <pathconvert property="main.class.file">
1.1034 + <string value="${main.class}"/>
1.1035 + <unpackagemapper from="*" to="*.class"/>
1.1036 + </pathconvert>
1.1037 + <condition property="do.module.main.class">
1.1038 + <and>
1.1039 + <isset property="main.class.available"/>
1.1040 + <available file="${build.classes.dir}/module-info.class"/>
1.1041 + <available file="${build.classes.dir}/${main.class.file}"/>
1.1042 + <isset property="libs.CopyLibs.classpath"/>
1.1043 + <available classname="org.netbeans.modules.java.j2seproject.moduletask.ModuleMainClass" classpath="${libs.CopyLibs.classpath}"/>
1.1044 + </and>
1.1045 + </condition>
1.1046 </target>
1.1047 - <target depends="init,compile,-pre-pre-jar,-pre-jar" if="do.archive+manifest.available" name="-do-jar-with-manifest" unless="manifest.available+main.class">
1.1048 - <j2seproject1:jar manifest="${manifest.file}"/>
1.1049 + <target depends="-check-module-main-class" if="do.module.main.class" name="-set-module-main-class">
1.1050 + <taskdef classname="org.netbeans.modules.java.j2seproject.moduletask.ModuleMainClass" classpath="${libs.CopyLibs.classpath}" name="modulemainclass"/>
1.1051 + <modulemainclass failonerror="false" mainclass="${main.class}" moduleinfo="${build.classes.dir}/module-info.class"/>
1.1052 </target>
1.1053 - <target depends="init,compile,-pre-pre-jar,-pre-jar" if="do.archive+manifest.available+main.class" name="-do-jar-with-mainclass" unless="manifest.available+main.class+mkdist.available">
1.1054 - <j2seproject1:jar manifest="${manifest.file}">
1.1055 - <j2seproject1:manifest>
1.1056 - <j2seproject1:attribute name="Main-Class" value="${main.class}"/>
1.1057 - </j2seproject1:manifest>
1.1058 - </j2seproject1:jar>
1.1059 - <echo>To run this application from the command line without Ant, try:</echo>
1.1060 - <property location="${build.classes.dir}" name="build.classes.dir.resolved"/>
1.1061 - <property location="${dist.jar}" name="dist.jar.resolved"/>
1.1062 - <pathconvert property="run.classpath.with.dist.jar">
1.1063 - <path path="${run.classpath}"/>
1.1064 - <map from="${build.classes.dir.resolved}" to="${dist.jar.resolved}"/>
1.1065 - </pathconvert>
1.1066 - <echo>java -cp "${run.classpath.with.dist.jar}" ${main.class}</echo>
1.1067 + <target depends="init" if="do.archive" name="-do-jar-create-manifest" unless="manifest.available">
1.1068 + <tempfile deleteonexit="true" destdir="${build.dir}" property="tmp.manifest.file"/>
1.1069 + <touch file="${tmp.manifest.file}" verbose="false"/>
1.1070 </target>
1.1071 - <target depends="init,compile,-pre-pre-jar,-pre-jar,-init-macrodef-copylibs" if="do.archive+manifest.available+main.class+mkdist.available+splashscreen.available" name="-do-jar-with-libraries-and-splashscreen">
1.1072 + <target depends="init" if="do.archive+manifest.available" name="-do-jar-copy-manifest">
1.1073 + <tempfile deleteonexit="true" destdir="${build.dir}" property="tmp.manifest.file"/>
1.1074 + <copy encoding="${manifest.encoding}" file="${manifest.file}" outputencoding="UTF-8" tofile="${tmp.manifest.file}"/>
1.1075 + </target>
1.1076 + <target depends="init,-do-jar-create-manifest,-do-jar-copy-manifest" if="do.archive+main.class.available" name="-do-jar-set-mainclass">
1.1077 + <manifest encoding="UTF-8" file="${tmp.manifest.file}" mode="update">
1.1078 + <attribute name="Main-Class" value="${main.class}"/>
1.1079 + </manifest>
1.1080 + </target>
1.1081 + <target depends="init,-do-jar-create-manifest,-do-jar-copy-manifest" if="do.archive+profile.available" name="-do-jar-set-profile">
1.1082 + <manifest encoding="UTF-8" file="${tmp.manifest.file}" mode="update">
1.1083 + <attribute name="Profile" value="${javac.profile}"/>
1.1084 + </manifest>
1.1085 + </target>
1.1086 + <target depends="init,-do-jar-create-manifest,-do-jar-copy-manifest" if="do.archive+splashscreen.available" name="-do-jar-set-splashscreen">
1.1087 <basename file="${application.splash}" property="splashscreen.basename"/>
1.1088 <mkdir dir="${build.classes.dir}/META-INF"/>
1.1089 <copy failonerror="false" file="${application.splash}" todir="${build.classes.dir}/META-INF"/>
1.1090 - <j2seproject3:copylibs>
1.1091 - <customize>
1.1092 - <attribute name="Main-Class" value="${main.class}"/>
1.1093 - <attribute name="SplashScreen-Image" value="META-INF/${splashscreen.basename}"/>
1.1094 - </customize>
1.1095 - </j2seproject3:copylibs>
1.1096 - <echo>To run this application from the command line without Ant, try:</echo>
1.1097 + <manifest encoding="UTF-8" file="${tmp.manifest.file}" mode="update">
1.1098 + <attribute name="SplashScreen-Image" value="META-INF/${splashscreen.basename}"/>
1.1099 + </manifest>
1.1100 + </target>
1.1101 + <target depends="init,compile" name="-check-do-mkdist">
1.1102 + <condition property="do.mkdist">
1.1103 + <and>
1.1104 + <isset property="do.archive"/>
1.1105 + <isset property="libs.CopyLibs.classpath"/>
1.1106 + <not>
1.1107 + <istrue value="${mkdist.disabled}"/>
1.1108 + </not>
1.1109 + <not>
1.1110 + <available file="${build.classes.dir}/module-info.class"/>
1.1111 + </not>
1.1112 + </and>
1.1113 + </condition>
1.1114 + </target>
1.1115 + <target depends="init,-init-macrodef-copylibs,compile,-pre-pre-jar,-pre-jar,-do-jar-create-manifest,-do-jar-copy-manifest,-do-jar-set-mainclass,-do-jar-set-profile,-do-jar-set-splashscreen,-check-do-mkdist" if="do.mkdist" name="-do-jar-copylibs">
1.1116 + <j2seproject3:copylibs manifest="${tmp.manifest.file}"/>
1.1117 + <echo level="info">To run this application from the command line without Ant, try:</echo>
1.1118 <property location="${dist.jar}" name="dist.jar.resolved"/>
1.1119 - <echo>java -jar "${dist.jar.resolved}"</echo>
1.1120 + <echo level="info">java -jar "${dist.jar.resolved}"</echo>
1.1121 </target>
1.1122 - <target depends="init,compile,-pre-pre-jar,-pre-jar,-init-macrodef-copylibs" if="do.archive+manifest.available+main.class+mkdist.available" name="-do-jar-with-libraries" unless="splashscreen.available">
1.1123 - <j2seproject3:copylibs>
1.1124 - <customize>
1.1125 - <attribute name="Main-Class" value="${main.class}"/>
1.1126 - </customize>
1.1127 - </j2seproject3:copylibs>
1.1128 - <echo>To run this application from the command line without Ant, try:</echo>
1.1129 + <target depends="init,compile,-pre-pre-jar,-pre-jar,-do-jar-create-manifest,-do-jar-copy-manifest,-do-jar-set-mainclass,-do-jar-set-profile,-do-jar-set-splashscreen,-check-do-mkdist" if="do.archive" name="-do-jar-jar" unless="do.mkdist">
1.1130 + <j2seproject1:jar manifest="${tmp.manifest.file}"/>
1.1131 + <property location="${build.classes.dir}" name="build.classes.dir.resolved"/>
1.1132 <property location="${dist.jar}" name="dist.jar.resolved"/>
1.1133 - <echo>java -jar "${dist.jar.resolved}"</echo>
1.1134 + <condition else="${dist.jar.resolved}" property="jar.usage.message.class.path.replacement" value="">
1.1135 + <isset property="named.module.internal"/>
1.1136 + </condition>
1.1137 + <pathconvert property="run.classpath.with.dist.jar">
1.1138 + <path path="${run.classpath}"/>
1.1139 + <map from="${build.classes.dir.resolved}" to="${jar.usage.message.class.path.replacement}"/>
1.1140 + </pathconvert>
1.1141 + <pathconvert property="run.modulepath.with.dist.jar">
1.1142 + <path location="${dist.jar.resolved}"/>
1.1143 + <path path="${run.modulepath}"/>
1.1144 + <map from="${build.classes.dir.resolved}" to="${dist.jar.resolved}"/>
1.1145 + </pathconvert>
1.1146 + <condition else="${run.modulepath}" property="jar.usage.message.run.modulepath.with.dist.jar" value="${run.modulepath.with.dist.jar}">
1.1147 + <isset property="named.module.internal"/>
1.1148 + </condition>
1.1149 + <condition else="" property="jar.usage.message.module.path" value=" -p ${jar.usage.message.run.modulepath.with.dist.jar}">
1.1150 + <and>
1.1151 + <isset property="modules.supported.internal"/>
1.1152 + <length length="0" string="${jar.usage.message.run.modulepath.with.dist.jar}" when="greater"/>
1.1153 + </and>
1.1154 + </condition>
1.1155 + <condition else="" property="jar.usage.message.class.path" value=" -cp ${run.classpath.with.dist.jar}">
1.1156 + <length length="0" string="${run.classpath.with.dist.jar}" when="greater"/>
1.1157 + </condition>
1.1158 + <condition else="/${main.class}" property="jar.usage.message.main.class.class.selector" value="">
1.1159 + <isset property="do.module.main.class"/>
1.1160 + </condition>
1.1161 + <condition else=" ${main.class}" property="jar.usage.message.main.class" value=" -m ${module.name}${jar.usage.message.main.class.class.selector}">
1.1162 + <isset property="named.module.internal"/>
1.1163 + </condition>
1.1164 + <condition else="" property="jar.usage.message" value="To run this application from the command line without Ant, try:${line.separator}${platform.java}${jar.usage.message.module.path}${jar.usage.message.class.path}${jar.usage.message.main.class}">
1.1165 + <isset property="main.class.available"/>
1.1166 + </condition>
1.1167 + <condition else="debug" property="jar.usage.level" value="info">
1.1168 + <isset property="main.class.available"/>
1.1169 + </condition>
1.1170 + <echo level="${jar.usage.level}" message="${jar.usage.message}"/>
1.1171 </target>
1.1172 + <target depends="-do-jar-copylibs" if="do.archive" name="-do-jar-delete-manifest">
1.1173 + <delete>
1.1174 + <fileset file="${tmp.manifest.file}"/>
1.1175 + </delete>
1.1176 + </target>
1.1177 + <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"/>
1.1178 + <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"/>
1.1179 <target name="-post-jar">
1.1180 <!-- Empty placeholder for easier customization. -->
1.1181 <!-- You can override this target in the ../build.xml file. -->
1.1182 </target>
1.1183 - <target depends="init,compile,-pre-jar,-do-jar-with-manifest,-do-jar-without-manifest,-do-jar-with-mainclass,-do-jar-with-libraries-and-splashscreen,-do-jar-with-libraries,-post-jar" description="Build JAR." name="jar"/>
1.1184 + <target depends="init,compile,-pre-jar,-set-module-main-class,-do-jar-without-libraries,-do-jar-with-libraries,-post-jar" name="-do-jar"/>
1.1185 + <target depends="init,compile,-pre-jar,-do-jar,-post-jar,deploy" description="Build JAR." name="jar"/>
1.1186 + <!--
1.1187 + =================
1.1188 + DEPLOY SECTION
1.1189 + =================
1.1190 + -->
1.1191 + <target name="-pre-deploy">
1.1192 + <!-- Empty placeholder for easier customization. -->
1.1193 + <!-- You can override this target in the ../build.xml file. -->
1.1194 + </target>
1.1195 + <target depends="init" name="-check-jlink">
1.1196 + <condition property="do.jlink.internal">
1.1197 + <and>
1.1198 + <istrue value="${do.jlink}"/>
1.1199 + <isset property="do.archive"/>
1.1200 + <isset property="named.module.internal"/>
1.1201 + </and>
1.1202 + </condition>
1.1203 + </target>
1.1204 + <target depends="init,-do-jar,-post-jar,-pre-deploy,-check-jlink" if="do.jlink.internal" name="-do-deploy">
1.1205 + <delete dir="${dist.jlink.dir}" failonerror="false" quiet="true"/>
1.1206 + <property name="jlink.launcher.name" value="${application.title}"/>
1.1207 + <condition else="${module.name}" property="jlink.add.modules" value="${module.name},${jlink.additionalmodules}">
1.1208 + <and>
1.1209 + <isset property="jlink.additionalmodules"/>
1.1210 + <length length="0" string="${jlink.additionalmodules}" when="greater"/>
1.1211 + </and>
1.1212 + </condition>
1.1213 + <condition property="jlink.do.strip.internal">
1.1214 + <and>
1.1215 + <isset property="jlink.strip"/>
1.1216 + <istrue value="${jlink.strip}"/>
1.1217 + </and>
1.1218 + </condition>
1.1219 + <condition property="jlink.do.additionalparam.internal">
1.1220 + <and>
1.1221 + <isset property="jlink.additionalparam"/>
1.1222 + <length length="0" string="${jlink.additionalparam}" when="greater"/>
1.1223 + </and>
1.1224 + </condition>
1.1225 + <condition property="jlink.do.launcher.internal">
1.1226 + <and>
1.1227 + <istrue value="${jlink.launcher}"/>
1.1228 + <isset property="main.class.available"/>
1.1229 + </and>
1.1230 + </condition>
1.1231 + <property name="platform.jlink" value="${jdk.home}/bin/jlink"/>
1.1232 + <property name="jlink.systemmodules.internal" value="${jdk.home}/jmods"/>
1.1233 + <exec executable="${platform.jlink}">
1.1234 + <arg value="--module-path"/>
1.1235 + <arg path="${jlink.systemmodules.internal}:${run.modulepath}:${dist.jar}"/>
1.1236 + <arg value="--add-modules"/>
1.1237 + <arg value="${jlink.add.modules}"/>
1.1238 + <arg if:set="jlink.do.strip.internal" value="--strip-debug"/>
1.1239 + <arg if:set="jlink.do.launcher.internal" value="--launcher"/>
1.1240 + <arg if:set="jlink.do.launcher.internal" value="${jlink.launcher.name}=${module.name}/${main.class}"/>
1.1241 + <arg if:set="jlink.do.additionalparam.internal" line="${jlink.additionalparam}"/>
1.1242 + <arg value="--output"/>
1.1243 + <arg value="${dist.jlink.output}"/>
1.1244 + </exec>
1.1245 + </target>
1.1246 + <target name="-post-deploy">
1.1247 + <!-- Empty placeholder for easier customization. -->
1.1248 + <!-- You can override this target in the ../build.xml file. -->
1.1249 + </target>
1.1250 + <target depends="-do-jar,-post-jar,-pre-deploy,-do-deploy,-post-deploy" name="deploy"/>
1.1251 <!--
1.1252 =================
1.1253 EXECUTION SECTION
1.1254 @@ -654,9 +1357,9 @@
1.1255 </target>
1.1256 <target depends="init,compile" name="-debug-start-debuggee">
1.1257 <j2seproject3:debug>
1.1258 - <customize>
1.1259 + <customizeDebuggee>
1.1260 <arg line="${application.args}"/>
1.1261 - </customize>
1.1262 + </customizeDebuggee>
1.1263 </j2seproject3:debug>
1.1264 </target>
1.1265 <target depends="init,compile,-debug-start-debugger,-debug-start-debuggee" description="Debug project in IDE." if="netbeans.home" name="debug"/>
1.1266 @@ -683,23 +1386,146 @@
1.1267 </target>
1.1268 <target depends="init,-pre-debug-fix,-do-debug-fix" if="netbeans.home" name="debug-fix"/>
1.1269 <!--
1.1270 + =================
1.1271 + PROFILING SECTION
1.1272 + =================
1.1273 + -->
1.1274 + <!--
1.1275 + pre NB7.2 profiler integration
1.1276 + -->
1.1277 + <target depends="profile-init,compile" description="Profile a project in the IDE." if="profiler.info.jvmargs.agent" name="-profile-pre72">
1.1278 + <fail unless="netbeans.home">This target only works when run from inside the NetBeans IDE.</fail>
1.1279 + <nbprofiledirect>
1.1280 + <classpath>
1.1281 + <path path="${run.classpath}"/>
1.1282 + </classpath>
1.1283 + </nbprofiledirect>
1.1284 + <profile/>
1.1285 + </target>
1.1286 + <target depends="profile-init,compile-single" description="Profile a selected class in the IDE." if="profiler.info.jvmargs.agent" name="-profile-single-pre72">
1.1287 + <fail unless="profile.class">Must select one file in the IDE or set profile.class</fail>
1.1288 + <fail unless="netbeans.home">This target only works when run from inside the NetBeans IDE.</fail>
1.1289 + <nbprofiledirect>
1.1290 + <classpath>
1.1291 + <path path="${run.classpath}"/>
1.1292 + </classpath>
1.1293 + </nbprofiledirect>
1.1294 + <profile classname="${profile.class}"/>
1.1295 + </target>
1.1296 + <target depends="profile-init,compile-single" if="profiler.info.jvmargs.agent" name="-profile-applet-pre72">
1.1297 + <fail unless="netbeans.home">This target only works when run from inside the NetBeans IDE.</fail>
1.1298 + <nbprofiledirect>
1.1299 + <classpath>
1.1300 + <path path="${run.classpath}"/>
1.1301 + </classpath>
1.1302 + </nbprofiledirect>
1.1303 + <profile classname="sun.applet.AppletViewer">
1.1304 + <customize>
1.1305 + <arg value="${applet.url}"/>
1.1306 + </customize>
1.1307 + </profile>
1.1308 + </target>
1.1309 + <target depends="-init-macrodef-junit,profile-init,compile-test-single" if="profiler.info.jvmargs.agent" name="-profile-test-single-pre72">
1.1310 + <fail unless="netbeans.home">This target only works when run from inside the NetBeans IDE.</fail>
1.1311 + <nbprofiledirect>
1.1312 + <classpath>
1.1313 + <path path="${run.test.classpath}"/>
1.1314 + </classpath>
1.1315 + </nbprofiledirect>
1.1316 + <j2seproject3:junit excludes="${excludes}" includes="${includes}" testincludes="${profile.class}" testmethods="">
1.1317 + <customize>
1.1318 + <jvmarg value="-agentlib:jdwp=transport=${debug-transport},address=${jpda.address}"/>
1.1319 + <env key="${profiler.info.pathvar}" path="${profiler.info.agentpath}:${profiler.current.path}"/>
1.1320 + <jvmarg value="${profiler.info.jvmargs.agent}"/>
1.1321 + <jvmarg line="${profiler.info.jvmargs}"/>
1.1322 + <classpath>
1.1323 + <path path="${run.test.classpath}"/>
1.1324 + </classpath>
1.1325 + </customize>
1.1326 + </j2seproject3:junit>
1.1327 + </target>
1.1328 + <!--
1.1329 + end of pre NB72 profiling section
1.1330 + -->
1.1331 + <target if="netbeans.home" name="-profile-check">
1.1332 + <condition property="profiler.configured">
1.1333 + <or>
1.1334 + <contains casesensitive="true" string="${run.jvmargs.ide}" substring="-agentpath:"/>
1.1335 + <contains casesensitive="true" string="${run.jvmargs.ide}" substring="-javaagent:"/>
1.1336 + </or>
1.1337 + </condition>
1.1338 + </target>
1.1339 + <target depends="-profile-check,-profile-pre72" description="Profile a project in the IDE." if="profiler.configured" name="profile" unless="profiler.info.jvmargs.agent">
1.1340 + <startprofiler/>
1.1341 + <antcall target="run"/>
1.1342 + </target>
1.1343 + <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">
1.1344 + <fail unless="run.class">Must select one file in the IDE or set run.class</fail>
1.1345 + <startprofiler/>
1.1346 + <antcall target="run-single"/>
1.1347 + </target>
1.1348 + <target depends="-profile-test-single-pre72" description="Profile a selected test in the IDE." name="profile-test-single"/>
1.1349 + <target depends="-profile-check" description="Profile a selected test in the IDE." if="profiler.configured" name="profile-test" unless="profiler.info.jvmargs">
1.1350 + <fail unless="test.includes">Must select some files in the IDE or set test.includes</fail>
1.1351 + <startprofiler/>
1.1352 + <antcall target="test-single"/>
1.1353 + </target>
1.1354 + <target depends="-profile-check" description="Profile a selected class in the IDE." if="profiler.configured" name="profile-test-with-main">
1.1355 + <fail unless="run.class">Must select one file in the IDE or set run.class</fail>
1.1356 + <startprofiler/>
1.1357 + <antcall target="run-test-with-main"/>
1.1358 + </target>
1.1359 + <target depends="-profile-check,-profile-applet-pre72" if="profiler.configured" name="profile-applet" unless="profiler.info.jvmargs.agent">
1.1360 + <fail unless="applet.url">Must select one file in the IDE or set applet.url</fail>
1.1361 + <startprofiler/>
1.1362 + <antcall target="run-applet"/>
1.1363 + </target>
1.1364 + <!--
1.1365 ===============
1.1366 JAVADOC SECTION
1.1367 ===============
1.1368 -->
1.1369 <target depends="init" if="have.sources" name="-javadoc-build">
1.1370 <mkdir dir="${dist.javadoc.dir}"/>
1.1371 - <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}">
1.1372 + <condition else="" property="javadoc.endorsed.classpath.cmd.line.arg" value="-J${endorsed.classpath.cmd.line.arg}">
1.1373 + <and>
1.1374 + <isset property="endorsed.classpath.cmd.line.arg"/>
1.1375 + <not>
1.1376 + <equals arg1="${endorsed.classpath.cmd.line.arg}" arg2=""/>
1.1377 + </not>
1.1378 + </and>
1.1379 + </condition>
1.1380 + <condition else="" property="bug5101868workaround" value="*.java">
1.1381 + <matches pattern="1\.[56](\..*)?" string="${java.version}"/>
1.1382 + </condition>
1.1383 + <condition else="" property="javadoc.html5.cmd.line.arg" value="-html5">
1.1384 + <and>
1.1385 + <isset property="javadoc.html5"/>
1.1386 + <available file="${jdk.home}${file.separator}lib${file.separator}jrt-fs.jar"/>
1.1387 + </and>
1.1388 + </condition>
1.1389 + <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}">
1.1390 <classpath>
1.1391 <path path="${javac.classpath}"/>
1.1392 </classpath>
1.1393 - <fileset dir="${src.dir}" excludes="${excludes}" includes="${includes}">
1.1394 + <fileset dir="${src.dir}" excludes="${bug5101868workaround},${excludes}" includes="${includes}">
1.1395 <filename name="**/*.java"/>
1.1396 </fileset>
1.1397 <fileset dir="${build.generated.sources.dir}" erroronmissingdir="false">
1.1398 <include name="**/*.java"/>
1.1399 + <exclude name="*.java"/>
1.1400 </fileset>
1.1401 + <arg line="${javadoc.endorsed.classpath.cmd.line.arg}"/>
1.1402 + <arg line="${javadoc.html5.cmd.line.arg}"/>
1.1403 </javadoc>
1.1404 + <copy todir="${dist.javadoc.dir}">
1.1405 + <fileset dir="${src.dir}" excludes="${excludes}" includes="${includes}">
1.1406 + <filename name="**/doc-files/**"/>
1.1407 + </fileset>
1.1408 + <fileset dir="${build.generated.sources.dir}" erroronmissingdir="false">
1.1409 + <include name="**/doc-files/**"/>
1.1410 + </fileset>
1.1411 + </copy>
1.1412 </target>
1.1413 <target depends="init,-javadoc-build" if="netbeans.home" name="-javadoc-browse" unless="no.javadoc.preview">
1.1414 <nbbrowse file="${dist.javadoc.dir}/index.html"/>
1.1415 @@ -707,7 +1533,7 @@
1.1416 <target depends="init,-javadoc-build,-javadoc-browse" description="Build Javadoc." name="javadoc"/>
1.1417 <!--
1.1418 =========================
1.1419 - JUNIT COMPILATION SECTION
1.1420 + TEST COMPILATION SECTION
1.1421 =========================
1.1422 -->
1.1423 <target depends="init,compile" if="have.tests" name="-pre-pre-compile-test">
1.1424 @@ -717,11 +1543,63 @@
1.1425 <!-- Empty placeholder for easier customization. -->
1.1426 <!-- You can override this target in the ../build.xml file. -->
1.1427 </target>
1.1428 + <target depends="-init-source-module-properties" if="named.module.internal" name="-init-test-javac-module-properties-with-module">
1.1429 + <j2seproject3:modulename property="test.module.name" sourcepath="${test.src.dir}"/>
1.1430 + <condition else="${empty.dir}" property="javac.test.sourcepath" value="${test.src.dir}">
1.1431 + <and>
1.1432 + <isset property="test.module.name"/>
1.1433 + <length length="0" string="${test.module.name}" when="greater"/>
1.1434 + </and>
1.1435 + </condition>
1.1436 + <condition else="--patch-module ${module.name}=${test.src.dir} --add-reads ${module.name}=ALL-UNNAMED" property="javac.test.compilerargs" value="--add-reads ${test.module.name}=ALL-UNNAMED">
1.1437 + <and>
1.1438 + <isset property="test.module.name"/>
1.1439 + <length length="0" string="${test.module.name}" when="greater"/>
1.1440 + </and>
1.1441 + </condition>
1.1442 + </target>
1.1443 + <target depends="-init-source-module-properties" if="named.module.internal" name="-init-test-run-module-properties">
1.1444 + <condition else="${module.name}" property="run.test.addexport.source.module.internal" value="${test.module.name}">
1.1445 + <and>
1.1446 + <isset property="test.module.name"/>
1.1447 + <length length="0" string="${test.module.name}" when="greater"/>
1.1448 + </and>
1.1449 + </condition>
1.1450 + <fileset dir="${build.test.classes.dir}" id="run.test.packages.internal" includes="**/*.class"/>
1.1451 + <property location="${build.test.classes.dir}" name="build.test.classes.dir.abs.internal"/>
1.1452 + <pathconvert pathsep=" " property="run.test.addexports.internal" refid="run.test.packages.internal">
1.1453 + <chainedmapper>
1.1454 + <regexpmapper from="^(.*)\Q${file.separator}\E.*\.class$$" to="\1"/>
1.1455 + <filtermapper>
1.1456 + <uniqfilter/>
1.1457 + <replacestring from="${build.test.classes.dir.abs.internal}" to=""/>
1.1458 + </filtermapper>
1.1459 + <cutdirsmapper dirs="1"/>
1.1460 + <packagemapper from="*" to="--add-exports ${run.test.addexport.source.module.internal}/*=ALL-UNNAMED"/>
1.1461 + </chainedmapper>
1.1462 + </pathconvert>
1.1463 + <condition else="--patch-module ${module.name}=${build.test.classes.dir} --add-modules ${module.name} --add-reads ${module.name}=ALL-UNNAMED ${run.test.addexports.internal}" property="run.test.jvmargs" value="--add-modules ${test.module.name} --add-reads ${test.module.name}=ALL-UNNAMED ${run.test.addexports.internal}">
1.1464 + <and>
1.1465 + <isset property="test.module.name"/>
1.1466 + <length length="0" string="${test.module.name}" when="greater"/>
1.1467 + </and>
1.1468 + </condition>
1.1469 + </target>
1.1470 + <target depends="-init-source-module-properties" name="-init-test-module-properties-without-module" unless="named.module.internal">
1.1471 + <property name="javac.test.sourcepath" value="${empty.dir}"/>
1.1472 + <property name="javac.test.compilerargs" value=""/>
1.1473 + <property name="run.test.jvmargs" value=""/>
1.1474 + </target>
1.1475 + <target depends="-init-test-javac-module-properties-with-module,-init-test-module-properties-without-module" name="-init-test-module-properties"/>
1.1476 <target if="do.depend.true" name="-compile-test-depend">
1.1477 <j2seproject3:depend classpath="${javac.test.classpath}" destdir="${build.test.classes.dir}" srcdir="${test.src.dir}"/>
1.1478 </target>
1.1479 - <target depends="init,compile,-pre-pre-compile-test,-pre-compile-test,-compile-test-depend" if="have.tests" name="-do-compile-test">
1.1480 - <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}"/>
1.1481 + <target depends="init,deps-jar,compile,-init-test-module-properties,-pre-pre-compile-test,-pre-compile-test,-compile-test-depend" if="have.tests" name="-do-compile-test">
1.1482 + <j2seproject3:javac apgeneratedsrcdir="${build.test.classes.dir}" classpath="${javac.test.classpath}" debug="true" destdir="${build.test.classes.dir}" modulepath="${javac.test.modulepath}" processorpath="${javac.test.processorpath}" sourcepath="${javac.test.sourcepath}" srcdir="${test.src.dir}">
1.1483 + <customize>
1.1484 + <compilerarg line="${javac.test.compilerargs}"/>
1.1485 + </customize>
1.1486 + </j2seproject3:javac>
1.1487 <copy todir="${build.test.classes.dir}">
1.1488 <fileset dir="${test.src.dir}" excludes="${build.classes.excludes},${excludes}" includes="${includes}"/>
1.1489 </copy>
1.1490 @@ -735,10 +1613,14 @@
1.1491 <!-- Empty placeholder for easier customization. -->
1.1492 <!-- You can override this target in the ../build.xml file. -->
1.1493 </target>
1.1494 - <target depends="init,compile,-pre-pre-compile-test,-pre-compile-test-single" if="have.tests" name="-do-compile-test-single">
1.1495 + <target depends="init,deps-jar,compile,-init-test-module-properties,-pre-pre-compile-test,-pre-compile-test-single" if="have.tests" name="-do-compile-test-single">
1.1496 <fail unless="javac.includes">Must select some files in the IDE or set javac.includes</fail>
1.1497 <j2seproject3:force-recompile destdir="${build.test.classes.dir}"/>
1.1498 - <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}"/>
1.1499 + <j2seproject3:javac apgeneratedsrcdir="${build.test.classes.dir}" classpath="${javac.test.classpath}" debug="true" destdir="${build.test.classes.dir}" excludes="" includes="${javac.includes}, module-info.java" modulepath="${javac.test.modulepath}" processorpath="${javac.test.processorpath}" sourcepath="${test.src.dir}" srcdir="${test.src.dir}">
1.1500 + <customize>
1.1501 + <compilerarg line="${javac.test.compilerargs}"/>
1.1502 + </customize>
1.1503 + </j2seproject3:javac>
1.1504 <copy todir="${build.test.classes.dir}">
1.1505 <fileset dir="${test.src.dir}" excludes="${build.classes.excludes},${excludes}" includes="${includes}"/>
1.1506 </copy>
1.1507 @@ -750,14 +1632,14 @@
1.1508 <target depends="init,compile,-pre-pre-compile-test,-pre-compile-test-single,-do-compile-test-single,-post-compile-test-single" name="compile-test-single"/>
1.1509 <!--
1.1510 =======================
1.1511 - JUNIT EXECUTION SECTION
1.1512 + TEST EXECUTION SECTION
1.1513 =======================
1.1514 -->
1.1515 <target depends="init" if="have.tests" name="-pre-test-run">
1.1516 <mkdir dir="${build.test.results.dir}"/>
1.1517 </target>
1.1518 - <target depends="init,compile-test,-pre-test-run" if="have.tests" name="-do-test-run">
1.1519 - <j2seproject3:junit testincludes="**/*Test.java"/>
1.1520 + <target depends="init,compile-test,-init-test-run-module-properties,-pre-test-run" if="have.tests" name="-do-test-run">
1.1521 + <j2seproject3:test includes="${includes}" testincludes="**/*Test.java"/>
1.1522 </target>
1.1523 <target depends="init,compile-test,-pre-test-run,-do-test-run" if="have.tests" name="-post-test-run">
1.1524 <fail if="tests.failed" unless="ignore.failing.tests">Some tests failed; see details above.</fail>
1.1525 @@ -768,41 +1650,42 @@
1.1526 <target depends="init" if="have.tests" name="-pre-test-run-single">
1.1527 <mkdir dir="${build.test.results.dir}"/>
1.1528 </target>
1.1529 - <target depends="init,compile-test-single,-pre-test-run-single" if="have.tests" name="-do-test-run-single">
1.1530 + <target depends="init,compile-test-single,-init-test-run-module-properties,-pre-test-run-single" if="have.tests" name="-do-test-run-single">
1.1531 <fail unless="test.includes">Must select some files in the IDE or set test.includes</fail>
1.1532 - <j2seproject3:junit excludes="" includes="${test.includes}"/>
1.1533 + <j2seproject3:test excludes="" includes="${test.includes}" testincludes="${test.includes}"/>
1.1534 </target>
1.1535 <target depends="init,compile-test-single,-pre-test-run-single,-do-test-run-single" if="have.tests" name="-post-test-run-single">
1.1536 <fail if="tests.failed" unless="ignore.failing.tests">Some tests failed; see details above.</fail>
1.1537 </target>
1.1538 - <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"/>
1.1539 + <target depends="init,compile-test-single,-init-test-run-module-properties,-pre-test-run-single,-do-test-run-single,-post-test-run-single" description="Run single unit test." name="test-single"/>
1.1540 + <target depends="init,compile-test-single,-pre-test-run-single" if="have.tests" name="-do-test-run-single-method">
1.1541 + <fail unless="test.class">Must select some files in the IDE or set test.class</fail>
1.1542 + <fail unless="test.method">Must select some method in the IDE or set test.method</fail>
1.1543 + <j2seproject3:test excludes="" includes="${javac.includes}" testincludes="${test.class}" testmethods="${test.method}"/>
1.1544 + </target>
1.1545 + <target depends="init,compile-test-single,-pre-test-run-single,-do-test-run-single-method" if="have.tests" name="-post-test-run-single-method">
1.1546 + <fail if="tests.failed" unless="ignore.failing.tests">Some tests failed; see details above.</fail>
1.1547 + </target>
1.1548 + <target depends="init,compile-test-single,-init-test-run-module-properties,-pre-test-run-single,-do-test-run-single-method,-post-test-run-single-method" description="Run single unit test." name="test-single-method"/>
1.1549 <!--
1.1550 =======================
1.1551 - JUNIT DEBUGGING SECTION
1.1552 + TEST DEBUGGING SECTION
1.1553 =======================
1.1554 -->
1.1555 - <target depends="init,compile-test" if="have.tests" name="-debug-start-debuggee-test">
1.1556 + <target depends="init,compile-test-single,-pre-test-run-single" if="have.tests" name="-debug-start-debuggee-test">
1.1557 <fail unless="test.class">Must select one file in the IDE or set test.class</fail>
1.1558 - <property location="${build.test.results.dir}/TEST-${test.class}.xml" name="test.report.file"/>
1.1559 - <delete file="${test.report.file}"/>
1.1560 - <mkdir dir="${build.test.results.dir}"/>
1.1561 - <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}">
1.1562 - <customize>
1.1563 - <syspropertyset>
1.1564 - <propertyref prefix="test-sys-prop."/>
1.1565 - <mapper from="test-sys-prop.*" to="*" type="glob"/>
1.1566 - </syspropertyset>
1.1567 - <arg value="${test.class}"/>
1.1568 - <arg value="showoutput=true"/>
1.1569 - <arg value="formatter=org.apache.tools.ant.taskdefs.optional.junit.BriefJUnitResultFormatter"/>
1.1570 - <arg value="formatter=org.apache.tools.ant.taskdefs.optional.junit.XMLJUnitResultFormatter,${test.report.file}"/>
1.1571 - </customize>
1.1572 - </j2seproject3:debug>
1.1573 + <j2seproject3:test-debug excludes="" includes="${javac.includes}" testClass="${test.class}" testincludes="${javac.includes}"/>
1.1574 + </target>
1.1575 + <target depends="init,compile-test-single,-pre-test-run-single" if="have.tests" name="-debug-start-debuggee-test-method">
1.1576 + <fail unless="test.class">Must select one file in the IDE or set test.class</fail>
1.1577 + <fail unless="test.method">Must select some method in the IDE or set test.method</fail>
1.1578 + <j2seproject3:test-debug excludes="" includes="${javac.includes}" testClass="${test.class}" testMethod="${test.method}" testincludes="${test.class}" testmethods="${test.method}"/>
1.1579 </target>
1.1580 <target depends="init,compile-test" if="netbeans.home+have.tests" name="-debug-start-debugger-test">
1.1581 <j2seproject1:nbjpdastart classpath="${debug.test.classpath}" name="${test.class}"/>
1.1582 </target>
1.1583 - <target depends="init,compile-test-single,-debug-start-debugger-test,-debug-start-debuggee-test" name="debug-test"/>
1.1584 + <target depends="init,compile-test-single,-init-test-run-module-properties,-debug-start-debugger-test,-debug-start-debuggee-test" name="debug-test"/>
1.1585 + <target depends="init,compile-test-single,-init-test-run-module-properties,-debug-start-debugger-test,-debug-start-debuggee-test-method" name="debug-test-method"/>
1.1586 <target depends="init,-pre-debug-fix,compile-test-single" if="netbeans.home" name="-do-debug-fix-test">
1.1587 <j2seproject1:nbjpdareload dir="${build.test.classes.dir}"/>
1.1588 </target>
1.1589 @@ -828,9 +1711,9 @@
1.1590 <target depends="init,compile-single" if="netbeans.home" name="-debug-start-debuggee-applet">
1.1591 <fail unless="applet.url">Must select one file in the IDE or set applet.url</fail>
1.1592 <j2seproject3:debug classname="sun.applet.AppletViewer">
1.1593 - <customize>
1.1594 + <customizeDebuggee>
1.1595 <arg value="${applet.url}"/>
1.1596 - </customize>
1.1597 + </customizeDebuggee>
1.1598 </j2seproject3:debug>
1.1599 </target>
1.1600 <target depends="init,compile-single,-debug-start-debugger,-debug-start-debuggee-applet" if="netbeans.home" name="debug-applet"/>
1.1601 @@ -857,6 +1740,7 @@
1.1602 </target>
1.1603 <target depends="init" name="-do-clean">
1.1604 <delete dir="${build.dir}"/>
1.1605 + <delete dir="${dist.jlink.output}"/>
1.1606 <delete dir="${dist.dir}" followsymlinks="false" includeemptydirs="true"/>
1.1607 </target>
1.1608 <target name="-post-clean">
1.1609 @@ -867,9 +1751,12 @@
1.1610 <target name="-check-call-dep">
1.1611 <property file="${call.built.properties}" prefix="already.built."/>
1.1612 <condition property="should.call.dep">
1.1613 - <not>
1.1614 - <isset property="already.built.${call.subproject}"/>
1.1615 - </not>
1.1616 + <and>
1.1617 + <not>
1.1618 + <isset property="already.built.${call.subproject}"/>
1.1619 + </not>
1.1620 + <available file="${call.script}"/>
1.1621 + </and>
1.1622 </condition>
1.1623 </target>
1.1624 <target depends="-check-call-dep" if="should.call.dep" name="-maybe-call-dep">