Changeset 15434


Ignore:
Timestamp:
10/29/20 16:54:25 (3 years ago)
Author:
Mark Evenson
Message:

netbeans: update artifacts for Netbeans 12.1

Older versions of these artifacts have been archived under
<fule:netbeans/older>.

Location:
trunk/abcl/nbproject
Files:
5 added
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/abcl/nbproject/build-impl.xml

    r14890 r15434  
    2020
    2121        -->
    22 <project xmlns:j2seproject1="http://www.netbeans.org/ns/j2se-project/1" xmlns:j2seproject3="http://www.netbeans.org/ns/j2se-project/3" xmlns:jaxrpc="http://www.netbeans.org/ns/j2se-project/jax-rpc" basedir=".." default="default" name="abcl-impl">
     22<project xmlns:if="ant:if" xmlns:j2seproject1="http://www.netbeans.org/ns/j2se-project/1" xmlns:j2seproject3="http://www.netbeans.org/ns/j2se-project/3" xmlns:jaxrpc="http://www.netbeans.org/ns/j2se-project/jax-rpc" xmlns:unless="ant:unless" basedir=".." default="default" name="abcl-impl">
    2323    <fail message="Please build using Ant 1.8.0 or higher.">
    2424        <condition>
     
    5454        <property file="nbproject/project.properties"/>
    5555    </target>
    56     <target depends="-pre-init,-init-private,-init-user,-init-project,-init-macrodef-property" name="-do-init">
     56    <target name="-init-modules-supported">
     57        <condition property="modules.supported.internal" value="true">
     58            <not>
     59                <matches pattern="1\.[0-8](\..*)?" string="${javac.source}"/>
     60            </not>
     61        </condition>
     62    </target>
     63    <target depends="-init-modules-supported" if="modules.supported.internal" name="-init-macrodef-modulename">
     64        <macrodef name="modulename" uri="http://www.netbeans.org/ns/j2se-project/3">
     65            <attribute name="property"/>
     66            <attribute name="sourcepath"/>
     67            <sequential>
     68                <loadresource property="@{property}" quiet="true">
     69                    <javaresource classpath="@{sourcepath}" name="module-info.java" parentFirst="false"/>
     70                    <filterchain>
     71                        <stripjavacomments/>
     72                        <linecontainsregexp>
     73                            <regexp pattern="module .* \{"/>
     74                        </linecontainsregexp>
     75                        <tokenfilter>
     76                            <linetokenizer/>
     77                            <replaceregex flags="s" pattern="(\s*module\s+)(\S*)(\s*\{.*)" replace="\2"/>
     78                        </tokenfilter>
     79                        <striplinebreaks/>
     80                    </filterchain>
     81                </loadresource>
     82            </sequential>
     83        </macrodef>
     84    </target>
     85    <target depends="-init-modules-supported,-init-macrodef-modulename" if="modules.supported.internal" name="-init-source-module-properties">
     86        <fail message="Java 9 support requires Ant 1.10.0 or higher.">
     87            <condition>
     88                <not>
     89                    <antversion atleast="1.10.0"/>
     90                </not>
     91            </condition>
     92        </fail>
     93        <j2seproject3:modulename property="module.name" sourcepath="${src.dir}"/>
     94        <condition property="named.module.internal">
     95            <and>
     96                <isset property="module.name"/>
     97                <length length="0" string="${module.name}" when="greater"/>
     98            </and>
     99        </condition>
     100        <condition property="unnamed.module.internal">
     101            <not>
     102                <isset property="named.module.internal"/>
     103            </not>
     104        </condition>
     105        <property name="javac.modulepath" value=""/>
     106        <property name="run.modulepath" value="${javac.modulepath}"/>
     107        <property name="module.build.classes.dir" value="${build.classes.dir}"/>
     108        <property name="debug.modulepath" value="${run.modulepath}"/>
     109        <property name="javac.upgrademodulepath" value=""/>
     110        <property name="run.upgrademodulepath" value="${javac.upgrademodulepath}"/>
     111        <condition else="" property="javac.systemmodulepath.cmd.line.arg" value="--system '${javac.systemmodulepath}'">
     112            <and>
     113                <isset property="javac.systemmodulepath"/>
     114                <length length="0" string="${javac.systemmodulepath}" when="greater"/>
     115            </and>
     116        </condition>
     117        <property name="dist.jlink.dir" value="${dist.dir}/jlink"/>
     118        <property name="dist.jlink.output" value="${dist.jlink.dir}/${application.title}"/>
     119        <property name="module.name" value=""/>
     120    </target>
     121    <target depends="-pre-init,-init-private,-init-user,-init-project,-init-macrodef-property,-init-modules-supported" name="-do-init">
    57122        <property name="platform.java" value="${java.home}/bin/java"/>
    58123        <available file="${manifest.file}" property="manifest.available"/>
     
    77142                <isset property="javac.profile"/>
    78143                <length length="0" string="${javac.profile}" when="greater"/>
    79                 <matches pattern="((1\.[89])|9)(\..*)?" string="${javac.source}"/>
     144                <not>
     145                    <matches pattern="1\.[0-7](\..*)?" string="${javac.source}"/>
     146                </not>
    80147            </and>
    81148        </condition>
     
    87154                <istrue value="${not.archive.disabled}"/>
    88155            </or>
    89         </condition>
    90         <condition property="do.mkdist">
    91             <and>
    92                 <isset property="do.archive"/>
    93                 <isset property="libs.CopyLibs.classpath"/>
    94                 <not>
    95                     <istrue value="${mkdist.disabled}"/>
    96                 </not>
    97             </and>
    98156        </condition>
    99157        <condition property="do.archive+manifest.available">
     
    251309        </macrodef>
    252310    </target>
    253     <target depends="-init-ap-cmdline-properties" if="ap.supported.internal" name="-init-macrodef-javac-with-processors">
     311    <target depends="-init-ap-cmdline-properties,-init-source-module-properties" if="modules.supported.internal" name="-init-macrodef-javac-with-module">
    254312        <macrodef name="javac" uri="http://www.netbeans.org/ns/j2se-project/3">
    255313            <attribute default="${src.dir}" name="srcdir"/>
    256314            <attribute default="${build.classes.dir}" name="destdir"/>
    257315            <attribute default="${javac.classpath}" name="classpath"/>
     316            <attribute default="${javac.modulepath}" name="modulepath"/>
     317            <attribute default="${javac.upgrademodulepath}" name="upgrademodulepath"/>
     318            <attribute default="${javac.processorpath}" name="processorpath"/>
     319            <attribute default="${javac.processormodulepath}" name="processormodulepath"/>
     320            <attribute default="${build.generated.sources.dir}/ap-source-output" name="apgeneratedsrcdir"/>
     321            <attribute default="${includes}" name="includes"/>
     322            <attribute default="${excludes}" name="excludes"/>
     323            <attribute default="${javac.debug}" name="debug"/>
     324            <attribute default="${empty.dir}" name="sourcepath" unless:set="named.module.internal"/>
     325            <attribute default="${src.dir}" if:set="named.module.internal" name="sourcepath"/>
     326            <attribute default="${empty.dir}" name="gensrcdir"/>
     327            <element name="customize" optional="true"/>
     328            <sequential>
     329                <condition property="warn.excludes.internal">
     330                    <and>
     331                        <isset property="named.module.internal"/>
     332                        <length length="0" string="@{excludes}" trim="true" when="greater"/>
     333                    </and>
     334                </condition>
     335                <echo if:set="warn.excludes.internal" level="warning" message="The javac excludes are not supported in the JDK 9 Named Module."/>
     336                <property location="${build.dir}/empty" name="empty.dir"/>
     337                <mkdir dir="${empty.dir}"/>
     338                <mkdir dir="@{apgeneratedsrcdir}"/>
     339                <condition property="processormodulepath.set">
     340                    <resourcecount count="0" when="greater">
     341                        <path>
     342                            <pathelement path="@{processormodulepath}"/>
     343                        </path>
     344                    </resourcecount>
     345                </condition>
     346                <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}">
     347                    <src>
     348                        <dirset dir="@{gensrcdir}" erroronmissingdir="false">
     349                            <include name="*"/>
     350                        </dirset>
     351                    </src>
     352                    <classpath>
     353                        <path path="@{classpath}"/>
     354                    </classpath>
     355                    <modulepath>
     356                        <path path="@{modulepath}"/>
     357                    </modulepath>
     358                    <upgrademodulepath>
     359                        <path path="@{upgrademodulepath}"/>
     360                    </upgrademodulepath>
     361                    <compilerarg line="${javac.systemmodulepath.cmd.line.arg}"/>
     362                    <compilerarg line="${javac.profile.cmd.line.arg}"/>
     363                    <compilerarg line="${javac.compilerargs}"/>
     364                    <compilerarg if:set="processormodulepath.set" value="--processor-module-path"/>
     365                    <compilerarg if:set="processormodulepath.set" path="@{processormodulepath}"/>
     366                    <compilerarg unless:set="processormodulepath.set" value="-processorpath"/>
     367                    <compilerarg path="@{processorpath}:${empty.dir}" unless:set="processormodulepath.set"/>
     368                    <compilerarg line="${ap.processors.internal}"/>
     369                    <compilerarg line="${annotation.processing.processor.options}"/>
     370                    <compilerarg value="-s"/>
     371                    <compilerarg path="@{apgeneratedsrcdir}"/>
     372                    <compilerarg line="${ap.proc.none.internal}"/>
     373                    <customize/>
     374                </javac>
     375            </sequential>
     376        </macrodef>
     377    </target>
     378    <target depends="-init-ap-cmdline-properties,-init-source-module-properties" if="ap.supported.internal" name="-init-macrodef-javac-with-processors" unless="modules.supported.internal">
     379        <macrodef name="javac" uri="http://www.netbeans.org/ns/j2se-project/3">
     380            <attribute default="${src.dir}" name="srcdir"/>
     381            <attribute default="${build.classes.dir}" name="destdir"/>
     382            <attribute default="${javac.classpath}" name="classpath"/>
     383            <attribute default="${javac.modulepath}" name="modulepath"/>
     384            <attribute default="${javac.upgrademodulepath}" name="upgrademodulepath"/>
    258385            <attribute default="${javac.processorpath}" name="processorpath"/>
    259386            <attribute default="${build.generated.sources.dir}/ap-source-output" name="apgeneratedsrcdir"/>
     
    292419        </macrodef>
    293420    </target>
    294     <target depends="-init-ap-cmdline-properties" name="-init-macrodef-javac-without-processors" unless="ap.supported.internal">
     421    <target depends="-init-ap-cmdline-properties,-init-source-module-properties" name="-init-macrodef-javac-without-processors" unless="ap.supported.internal">
    295422        <macrodef name="javac" uri="http://www.netbeans.org/ns/j2se-project/3">
    296423            <attribute default="${src.dir}" name="srcdir"/>
    297424            <attribute default="${build.classes.dir}" name="destdir"/>
    298425            <attribute default="${javac.classpath}" name="classpath"/>
     426            <attribute default="${javac.modulepath}" name="modulepath"/>
     427            <attribute default="${javac.upgrademodulepath}" name="upgrademodulepath"/>
    299428            <attribute default="${javac.processorpath}" name="processorpath"/>
    300429            <attribute default="${build.generated.sources.dir}/ap-source-output" name="apgeneratedsrcdir"/>
     
    325454        </macrodef>
    326455    </target>
    327     <target depends="-init-macrodef-javac-with-processors,-init-macrodef-javac-without-processors" name="-init-macrodef-javac">
     456    <target depends="-init-macrodef-javac-with-module,-init-macrodef-javac-with-processors,-init-macrodef-javac-without-processors" name="-init-macrodef-javac">
    328457        <macrodef name="depend" uri="http://www.netbeans.org/ns/j2se-project/3">
    329458            <attribute default="${src.dir}" name="srcdir"/>
     
    380509        <property name="test.binaryexcludes" value=""/>
    381510    </target>
    382     <target if="${nb.junit.single}" name="-init-macrodef-junit-single" unless="${nb.junit.batch}">
     511    <target depends="-init-modules-supported" if="modules.supported.internal" name="-init-macrodef-junit-prototype-with-module">
     512        <macrodef name="junit-prototype" uri="http://www.netbeans.org/ns/j2se-project/3">
     513            <attribute default="${includes}" name="includes"/>
     514            <attribute default="${excludes}" name="excludes"/>
     515            <element name="customizePrototype" optional="true"/>
     516            <sequential>
     517                <property name="junit.forkmode" value="perTest"/>
     518                <junit dir="${work.dir}" errorproperty="tests.failed" failureproperty="tests.failed" fork="true" forkmode="${junit.forkmode}" showoutput="true" tempdir="${build.dir}">
     519                    <syspropertyset>
     520                        <propertyref prefix="test-sys-prop."/>
     521                        <mapper from="test-sys-prop.*" to="*" type="glob"/>
     522                    </syspropertyset>
     523                    <classpath>
     524                        <path path="${run.test.classpath}"/>
     525                    </classpath>
     526                    <modulepath>
     527                        <path path="${run.test.modulepath}"/>
     528                    </modulepath>
     529                    <formatter type="brief" usefile="false"/>
     530                    <formatter type="xml"/>
     531                    <jvmarg line="${endorsed.classpath.cmd.line.arg}"/>
     532                    <jvmarg value="-ea"/>
     533                    <jvmarg line="${run.test.jvmargs}"/>
     534                    <customizePrototype/>
     535                </junit>
     536            </sequential>
     537        </macrodef>
     538    </target>
     539    <target depends="-init-modules-supported" name="-init-macrodef-junit-prototype-without-module" unless="modules.supported.internal">
     540        <macrodef name="junit-prototype" uri="http://www.netbeans.org/ns/j2se-project/3">
     541            <attribute default="${includes}" name="includes"/>
     542            <attribute default="${excludes}" name="excludes"/>
     543            <element name="customizePrototype" optional="true"/>
     544            <sequential>
     545                <property name="junit.forkmode" value="perTest"/>
     546                <junit dir="${work.dir}" errorproperty="tests.failed" failureproperty="tests.failed" fork="true" forkmode="${junit.forkmode}" showoutput="true" tempdir="${build.dir}">
     547                    <syspropertyset>
     548                        <propertyref prefix="test-sys-prop."/>
     549                        <mapper from="test-sys-prop.*" to="*" type="glob"/>
     550                    </syspropertyset>
     551                    <classpath>
     552                        <path path="${run.test.classpath}"/>
     553                    </classpath>
     554                    <formatter type="brief" usefile="false"/>
     555                    <formatter type="xml"/>
     556                    <jvmarg line="${endorsed.classpath.cmd.line.arg}"/>
     557                    <jvmarg value="-ea"/>
     558                    <customizePrototype/>
     559                </junit>
     560            </sequential>
     561        </macrodef>
     562    </target>
     563    <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}">
    383564        <macrodef name="junit" uri="http://www.netbeans.org/ns/j2se-project/3">
    384565            <attribute default="${includes}" name="includes"/>
     
    388569            <element name="customize" optional="true"/>
    389570            <sequential>
    390                 <property name="junit.forkmode" value="perTest"/>
    391                 <junit dir="${work.dir}" errorproperty="tests.failed" failureproperty="tests.failed" fork="true" forkmode="${junit.forkmode}" showoutput="true" tempdir="${build.dir}">
    392                     <test methods="@{testmethods}" name="@{testincludes}" todir="${build.test.results.dir}"/>
    393                     <syspropertyset>
    394                         <propertyref prefix="test-sys-prop."/>
    395                         <mapper from="test-sys-prop.*" to="*" type="glob"/>
    396                     </syspropertyset>
    397                     <formatter type="brief" usefile="false"/>
    398                     <formatter type="xml"/>
    399                     <jvmarg value="-ea"/>
    400                     <customize/>
    401                 </junit>
    402             </sequential>
    403         </macrodef>
    404     </target>
    405     <target depends="-init-test-properties" if="${nb.junit.batch}" name="-init-macrodef-junit-batch" unless="${nb.junit.single}">
     571                <j2seproject3:junit-prototype>
     572                    <customizePrototype>
     573                        <test methods="@{testmethods}" name="@{testincludes}" todir="${build.test.results.dir}"/>
     574                        <customize/>
     575                    </customizePrototype>
     576                </j2seproject3:junit-prototype>
     577            </sequential>
     578        </macrodef>
     579    </target>
     580    <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}">
    406581        <macrodef name="junit" uri="http://www.netbeans.org/ns/j2se-project/3">
    407582            <attribute default="${includes}" name="includes"/>
     
    411586            <element name="customize" optional="true"/>
    412587            <sequential>
    413                 <property name="junit.forkmode" value="perTest"/>
    414                 <junit dir="${work.dir}" errorproperty="tests.failed" failureproperty="tests.failed" fork="true" forkmode="${junit.forkmode}" showoutput="true" tempdir="${build.dir}">
    415                     <batchtest todir="${build.test.results.dir}">
    416                         <fileset dir="${test.src.dir}" excludes="@{excludes},${excludes}" includes="@{includes}">
    417                             <filename name="@{testincludes}"/>
    418                         </fileset>
    419                         <fileset dir="${build.test.classes.dir}" excludes="@{excludes},${excludes},${test.binaryexcludes}" includes="${test.binaryincludes}">
    420                             <filename name="${test.binarytestincludes}"/>
    421                         </fileset>
    422                     </batchtest>
    423                     <syspropertyset>
    424                         <propertyref prefix="test-sys-prop."/>
    425                         <mapper from="test-sys-prop.*" to="*" type="glob"/>
    426                     </syspropertyset>
    427                     <formatter type="brief" usefile="false"/>
    428                     <formatter type="xml"/>
    429                     <jvmarg value="-ea"/>
    430                     <customize/>
    431                 </junit>
     588                <j2seproject3:junit-prototype>
     589                    <customizePrototype>
     590                        <batchtest todir="${build.test.results.dir}">
     591                            <fileset dir="${test.src.dir}" excludes="@{excludes},${excludes}" includes="@{includes}">
     592                                <filename name="@{testincludes}"/>
     593                            </fileset>
     594                            <fileset dir="${build.test.classes.dir}" excludes="@{excludes},${excludes},${test.binaryexcludes}" includes="${test.binaryincludes}">
     595                                <filename name="${test.binarytestincludes}"/>
     596                            </fileset>
     597                        </batchtest>
     598                        <customize/>
     599                    </customizePrototype>
     600                </j2seproject3:junit-prototype>
    432601            </sequential>
    433602        </macrodef>
     
    457626                        <mapper from="test-sys-prop.*" to="*" type="glob"/>
    458627                    </propertyset>
     628                    <classpath>
     629                        <path path="${run.test.classpath}"/>
     630                    </classpath>
     631                    <jvmarg line="${endorsed.classpath.cmd.line.arg}"/>
    459632                    <customize/>
    460633                </testng>
     
    511684                <j2seproject3:test-impl excludes="@{excludes}" includes="@{includes}" testincludes="@{testincludes}" testmethods="@{testmethods}">
    512685                    <customize>
    513                         <classpath>
    514                             <path path="${run.test.classpath}"/>
    515                         </classpath>
    516                         <jvmarg line="${endorsed.classpath.cmd.line.arg}"/>
    517686                        <jvmarg line="${run.jvmargs}"/>
    518687                        <jvmarg line="${run.jvmargs.ide}"/>
     
    522691        </macrodef>
    523692    </target>
    524     <target if="${junit.available}" name="-init-macrodef-junit-debug" unless="${nb.junit.batch}">
    525         <macrodef name="junit-debug" uri="http://www.netbeans.org/ns/j2se-project/3">
    526             <attribute default="${includes}" name="includes"/>
    527             <attribute default="${excludes}" name="excludes"/>
    528             <attribute default="**" name="testincludes"/>
    529             <attribute default="" name="testmethods"/>
    530             <element name="customize" optional="true"/>
    531             <sequential>
    532                 <property name="junit.forkmode" value="perTest"/>
    533                 <junit dir="${work.dir}" errorproperty="tests.failed" failureproperty="tests.failed" fork="true" forkmode="${junit.forkmode}" showoutput="true" tempdir="${build.dir}">
    534                     <test methods="@{testmethods}" name="@{testincludes}" todir="${build.test.results.dir}"/>
    535                     <syspropertyset>
    536                         <propertyref prefix="test-sys-prop."/>
    537                         <mapper from="test-sys-prop.*" to="*" type="glob"/>
    538                     </syspropertyset>
    539                     <formatter type="brief" usefile="false"/>
    540                     <formatter type="xml"/>
    541                     <jvmarg value="-ea"/>
    542                     <jvmarg line="${debug-args-line}"/>
    543                     <jvmarg value="-Xrunjdwp:transport=${debug-transport},address=${jpda.address}"/>
    544                     <customize/>
    545                 </junit>
    546             </sequential>
    547         </macrodef>
    548     </target>
    549     <target depends="-init-test-properties" if="${nb.junit.batch}" name="-init-macrodef-junit-debug-batch">
    550         <macrodef name="junit-debug" uri="http://www.netbeans.org/ns/j2se-project/3">
    551             <attribute default="${includes}" name="includes"/>
    552             <attribute default="${excludes}" name="excludes"/>
    553             <attribute default="**" name="testincludes"/>
    554             <attribute default="" name="testmethods"/>
    555             <element name="customize" optional="true"/>
    556             <sequential>
    557                 <property name="junit.forkmode" value="perTest"/>
    558                 <junit dir="${work.dir}" errorproperty="tests.failed" failureproperty="tests.failed" fork="true" forkmode="${junit.forkmode}" showoutput="true" tempdir="${build.dir}">
    559                     <batchtest todir="${build.test.results.dir}">
    560                         <fileset dir="${test.src.dir}" excludes="@{excludes},${excludes}" includes="@{includes}">
    561                             <filename name="@{testincludes}"/>
    562                         </fileset>
    563                         <fileset dir="${build.test.classes.dir}" excludes="@{excludes},${excludes},${test.binaryexcludes}" includes="${test.binaryincludes}">
    564                             <filename name="${test.binarytestincludes}"/>
    565                         </fileset>
    566                     </batchtest>
    567                     <syspropertyset>
    568                         <propertyref prefix="test-sys-prop."/>
    569                         <mapper from="test-sys-prop.*" to="*" type="glob"/>
    570                     </syspropertyset>
    571                     <formatter type="brief" usefile="false"/>
    572                     <formatter type="xml"/>
    573                     <jvmarg value="-ea"/>
    574                     <jvmarg line="${debug-args-line}"/>
    575                     <jvmarg value="-Xrunjdwp:transport=${debug-transport},address=${jpda.address}"/>
    576                     <customize/>
    577                 </junit>
    578             </sequential>
    579         </macrodef>
    580     </target>
    581     <target depends="-init-macrodef-junit-debug,-init-macrodef-junit-debug-batch" if="${junit.available}" name="-init-macrodef-junit-debug-impl">
     693    <target depends="-init-macrodef-junit" if="${junit.available}" name="-init-macrodef-junit-debug-impl">
    582694        <macrodef name="test-debug-impl" uri="http://www.netbeans.org/ns/j2se-project/3">
    583695            <attribute default="${includes}" name="includes"/>
     
    585697            <attribute default="**" name="testincludes"/>
    586698            <attribute default="" name="testmethods"/>
    587             <element implicit="true" name="customize" optional="true"/>
    588             <sequential>
    589                 <j2seproject3:junit-debug excludes="@{excludes}" includes="@{includes}" testincludes="@{testincludes}" testmethods="@{testmethods}">
    590                     <customize/>
    591                 </j2seproject3:junit-debug>
     699            <element name="customizeDebuggee" optional="true"/>
     700            <sequential>
     701                <j2seproject3:junit excludes="@{excludes}" includes="@{includes}" testincludes="@{testincludes}" testmethods="@{testmethods}">
     702                    <customize>
     703                        <jvmarg value="-agentlib:jdwp=transport=${debug-transport},address=${jpda.address}"/>
     704                        <customizeDebuggee/>
     705                    </customize>
     706                </j2seproject3:junit>
    592707            </sequential>
    593708        </macrodef>
     
    608723                <mkdir dir="${build.test.results.dir}"/>
    609724                <j2seproject3:debug classname="org.testng.TestNG" classpath="${debug.test.classpath}">
    610                     <customize>
     725                    <customizeDebuggee>
    611726                        <customize2/>
    612727                        <jvmarg value="-ea"/>
     
    615730                        <arg line="-listener org.testng.reporters.VerboseReporter"/>
    616731                        <arg line="${testng.cmd.args}"/>
    617                     </customize>
     732                    </customizeDebuggee>
    618733                </j2seproject3:debug>
    619734            </sequential>
     
    642757            <sequential>
    643758                <j2seproject3:test-debug-impl excludes="@{excludes}" includes="@{includes}" testincludes="@{testincludes}" testmethods="@{testmethods}">
    644                     <customize>
    645                         <classpath>
    646                             <path path="${run.test.classpath}"/>
    647                         </classpath>
    648                         <jvmarg line="${endorsed.classpath.cmd.line.arg}"/>
     759                    <customizeDebuggee>
    649760                        <jvmarg line="${run.jvmargs}"/>
    650761                        <jvmarg line="${run.jvmargs.ide}"/>
    651                     </customize>
     762                    </customizeDebuggee>
    652763                </j2seproject3:test-debug-impl>
    653764            </sequential>
     
    729840        <macrodef name="nbjpdastart" uri="http://www.netbeans.org/ns/j2se-project/1">
    730841            <attribute default="${main.class}" name="name"/>
     842            <attribute default="${debug.modulepath}" name="modulepath"/>
    731843            <attribute default="${debug.classpath}" name="classpath"/>
    732844            <attribute default="" name="stopclassname"/>
    733845            <sequential>
    734846                <nbjpdastart addressproperty="jpda.address" name="@{name}" stopclassname="@{stopclassname}" transport="${debug-transport}">
     847                    <modulepath>
     848                        <path path="@{modulepath}"/>
     849                    </modulepath>
    735850                    <classpath>
    736851                        <path path="@{classpath}"/>
     
    751866    </target>
    752867    <target name="-init-debug-args">
    753         <property name="version-output" value="java version &quot;${ant.java.version}"/>
    754         <condition property="have-jdk-older-than-1.4">
    755             <or>
    756                 <contains string="${version-output}" substring="java version &quot;1.0"/>
    757                 <contains string="${version-output}" substring="java version &quot;1.1"/>
    758                 <contains string="${version-output}" substring="java version &quot;1.2"/>
    759                 <contains string="${version-output}" substring="java version &quot;1.3"/>
    760             </or>
    761         </condition>
    762         <condition else="-Xdebug" property="debug-args-line" value="-Xdebug -Xnoagent -Djava.compiler=none">
    763             <istrue value="${have-jdk-older-than-1.4}"/>
    764         </condition>
    765868        <condition else="dt_socket" property="debug-transport-by-os" value="dt_shmem">
    766869            <os family="windows"/>
     
    772875    <target depends="-init-debug-args" name="-init-macrodef-debug">
    773876        <macrodef name="debug" uri="http://www.netbeans.org/ns/j2se-project/3">
     877            <attribute default="${module.name}" name="modulename"/>
    774878            <attribute default="${main.class}" name="classname"/>
     879            <attribute default="${debug.modulepath}" name="modulepath"/>
    775880            <attribute default="${debug.classpath}" name="classpath"/>
     881            <element name="customizeDebuggee" optional="true"/>
     882            <sequential>
     883                <j2seproject1:java classname="@{classname}" classpath="@{classpath}" modulename="@{modulename}" modulepath="@{modulepath}">
     884                    <customize>
     885                        <jvmarg value="-agentlib:jdwp=transport=${debug-transport},address=${jpda.address}"/>
     886                        <customizeDebuggee/>
     887                    </customize>
     888                </j2seproject1:java>
     889            </sequential>
     890        </macrodef>
     891    </target>
     892    <target depends="-init-source-module-properties" if="named.module.internal" name="-init-macrodef-java-with-module">
     893        <macrodef name="java" uri="http://www.netbeans.org/ns/j2se-project/1">
     894            <attribute default="${module.name}" name="modulename"/>
     895            <attribute default="${main.class}" name="classname"/>
     896            <attribute default="${run.modulepath}" name="modulepath"/>
     897            <attribute default="${run.upgrademodulepath}" name="upgrademodulepath"/>
     898            <attribute default="${run.classpath}" name="classpath"/>
     899            <attribute default="jvm" name="jvm"/>
    776900            <element name="customize" optional="true"/>
    777901            <sequential>
    778                 <java classname="@{classname}" dir="${work.dir}" failonerror="${java.failonerror}" fork="true">
    779                     <jvmarg line="${endorsed.classpath.cmd.line.arg}"/>
    780                     <jvmarg line="${debug-args-line}"/>
    781                     <jvmarg value="-Xrunjdwp:transport=${debug-transport},address=${jpda.address}"/>
     902                <java classname="@{classname}" dir="${work.dir}" failonerror="${java.failonerror}" fork="true" module="@{modulename}">
     903                    <classpath>
     904                        <path path="@{classpath}"/>
     905                    </classpath>
     906                    <modulepath>
     907                        <pathelement path="@{modulepath}"/>
     908                        <pathelement location="${module.build.classes.dir}"/>
     909                    </modulepath>
     910                    <upgrademodulepath>
     911                        <path path="@{upgrademodulepath}"/>
     912                    </upgrademodulepath>
    782913                    <jvmarg value="-Dfile.encoding=${runtime.encoding}"/>
    783914                    <redirector errorencoding="${runtime.encoding}" inputencoding="${runtime.encoding}" outputencoding="${runtime.encoding}"/>
    784915                    <jvmarg line="${run.jvmargs}"/>
    785916                    <jvmarg line="${run.jvmargs.ide}"/>
    786                     <classpath>
    787                         <path path="@{classpath}"/>
    788                     </classpath>
    789917                    <syspropertyset>
    790918                        <propertyref prefix="run-sys-prop."/>
     
    796924        </macrodef>
    797925    </target>
    798     <target name="-init-macrodef-java">
     926    <target depends="-init-source-module-properties" if="unnamed.module.internal" name="-init-macrodef-java-with-unnamed-module">
    799927        <macrodef name="java" uri="http://www.netbeans.org/ns/j2se-project/1">
     928            <attribute default="" name="modulename"/>
    800929            <attribute default="${main.class}" name="classname"/>
     930            <attribute default="${run.modulepath}" name="modulepath"/>
     931            <attribute default="${run.upgrademodulepath}" name="upgrademodulepath"/>
     932            <attribute default="${run.classpath}" name="classpath"/>
     933            <attribute default="jvm" name="jvm"/>
     934            <element name="customize" optional="true"/>
     935            <sequential>
     936                <java classname="@{classname}" dir="${work.dir}" failonerror="${java.failonerror}" fork="true">
     937                    <classpath>
     938                        <path path="@{classpath}"/>
     939                    </classpath>
     940                    <modulepath>
     941                        <path path="@{modulepath}"/>
     942                    </modulepath>
     943                    <upgrademodulepath>
     944                        <path path="@{upgrademodulepath}"/>
     945                    </upgrademodulepath>
     946                    <jvmarg value="-Dfile.encoding=${runtime.encoding}"/>
     947                    <redirector errorencoding="${runtime.encoding}" inputencoding="${runtime.encoding}" outputencoding="${runtime.encoding}"/>
     948                    <jvmarg line="${run.jvmargs}"/>
     949                    <jvmarg line="${run.jvmargs.ide}"/>
     950                    <syspropertyset>
     951                        <propertyref prefix="run-sys-prop."/>
     952                        <mapper from="run-sys-prop.*" to="*" type="glob"/>
     953                    </syspropertyset>
     954                    <customize/>
     955                </java>
     956            </sequential>
     957        </macrodef>
     958    </target>
     959    <target depends="-init-source-module-properties" name="-init-macrodef-java-without-module" unless="modules.supported.internal">
     960        <macrodef name="java" uri="http://www.netbeans.org/ns/j2se-project/1">
     961            <attribute default="" name="modulename"/>
     962            <attribute default="${main.class}" name="classname"/>
     963            <attribute default="" name="modulepath"/>
    801964            <attribute default="${run.classpath}" name="classpath"/>
    802965            <attribute default="jvm" name="jvm"/>
     
    821984        </macrodef>
    822985    </target>
     986    <target depends="-init-macrodef-java-with-module, -init-macrodef-java-with-unnamed-module, -init-macrodef-java-without-module" name="-init-macrodef-java"/>
    823987    <target name="-init-macrodef-copylibs">
    824988        <macrodef name="copylibs" uri="http://www.netbeans.org/ns/j2se-project/3">
     
    9101074    </target>
    9111075    <target depends="init" if="netbeans.automatic.build" name="-clean-after-automatic-build">
    912         <antcall target="clean"/>
     1076        <antcall target="clean">
     1077            <param name="no.dependencies" value="true"/>
     1078        </antcall>
    9131079    </target>
    9141080    <target depends="init,deps-jar" name="-pre-pre-compile">
     
    9511117        <fail unless="javac.includes">Must select some files in the IDE or set javac.includes</fail>
    9521118        <j2seproject3:force-recompile/>
    953         <j2seproject3:javac excludes="" gensrcdir="${build.generated.sources.dir}" includes="${javac.includes}" sourcepath="${src.dir}"/>
     1119        <j2seproject3:javac excludes="" gensrcdir="${build.generated.sources.dir}" includes="${javac.includes}, module-info.java" sourcepath="${src.dir}"/>
    9541120    </target>
    9551121    <target name="-post-compile-single">
     
    9711137        <!-- You can override this target in the ../build.xml file. -->
    9721138    </target>
     1139    <target depends="init,compile" name="-check-module-main-class">
     1140        <pathconvert property="main.class.file">
     1141            <string value="${main.class}"/>
     1142            <unpackagemapper from="*" to="*.class"/>
     1143        </pathconvert>
     1144        <condition property="do.module.main.class">
     1145            <and>
     1146                <isset property="main.class.available"/>
     1147                <available file="${build.classes.dir}/module-info.class"/>
     1148                <available file="${build.classes.dir}/${main.class.file}"/>
     1149                <isset property="libs.CopyLibs.classpath"/>
     1150                <available classname="org.netbeans.modules.java.j2seproject.moduletask.ModuleMainClass" classpath="${libs.CopyLibs.classpath}"/>
     1151            </and>
     1152        </condition>
     1153    </target>
     1154    <target depends="-check-module-main-class" if="do.module.main.class" name="-set-module-main-class">
     1155        <taskdef classname="org.netbeans.modules.java.j2seproject.moduletask.ModuleMainClass" classpath="${libs.CopyLibs.classpath}" name="modulemainclass"/>
     1156        <modulemainclass failonerror="false" mainclass="${main.class}" moduleinfo="${build.classes.dir}/module-info.class"/>
     1157    </target>
    9731158    <target depends="init" if="do.archive" name="-do-jar-create-manifest" unless="manifest.available">
    9741159        <tempfile deleteonexit="true" destdir="${build.dir}" property="tmp.manifest.file"/>
     
    9971182        </manifest>
    9981183    </target>
    999     <target depends="init,-init-macrodef-copylibs,compile,-pre-pre-jar,-pre-jar,-do-jar-create-manifest,-do-jar-copy-manifest,-do-jar-set-mainclass,-do-jar-set-profile,-do-jar-set-splashscreen" if="do.mkdist" name="-do-jar-copylibs">
     1184    <target depends="init,compile" name="-check-do-mkdist">
     1185        <condition property="do.mkdist">
     1186            <and>
     1187                <isset property="do.archive"/>
     1188                <isset property="libs.CopyLibs.classpath"/>
     1189                <not>
     1190                    <istrue value="${mkdist.disabled}"/>
     1191                </not>
     1192                <not>
     1193                    <available file="${build.classes.dir}/module-info.class"/>
     1194                </not>
     1195            </and>
     1196        </condition>
     1197    </target>
     1198    <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">
    10001199        <j2seproject3:copylibs manifest="${tmp.manifest.file}"/>
    10011200        <echo level="info">To run this application from the command line without Ant, try:</echo>
     
    10031202        <echo level="info">java -jar "${dist.jar.resolved}"</echo>
    10041203    </target>
    1005     <target depends="init,compile,-pre-pre-jar,-pre-jar,-do-jar-create-manifest,-do-jar-copy-manifest,-do-jar-set-mainclass,-do-jar-set-profile,-do-jar-set-splashscreen" if="do.archive" name="-do-jar-jar" unless="do.mkdist">
     1204    <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">
    10061205        <j2seproject1:jar manifest="${tmp.manifest.file}"/>
    10071206        <property location="${build.classes.dir}" name="build.classes.dir.resolved"/>
    10081207        <property location="${dist.jar}" name="dist.jar.resolved"/>
     1208        <condition else="${dist.jar.resolved}" property="jar.usage.message.class.path.replacement" value="">
     1209            <isset property="named.module.internal"/>
     1210        </condition>
    10091211        <pathconvert property="run.classpath.with.dist.jar">
    10101212            <path path="${run.classpath}"/>
     1213            <map from="${build.classes.dir.resolved}" to="${jar.usage.message.class.path.replacement}"/>
     1214        </pathconvert>
     1215        <pathconvert property="run.modulepath.with.dist.jar">
     1216            <path location="${dist.jar.resolved}"/>
     1217            <path path="${run.modulepath}"/>
    10111218            <map from="${build.classes.dir.resolved}" to="${dist.jar.resolved}"/>
    10121219        </pathconvert>
    1013         <condition else="" property="jar.usage.message" value="To run this application from the command line without Ant, try:${line.separator}${platform.java} -cp ${run.classpath.with.dist.jar} ${main.class}">
     1220        <condition else="${run.modulepath}" property="jar.usage.message.run.modulepath.with.dist.jar" value="${run.modulepath.with.dist.jar}">
     1221            <isset property="named.module.internal"/>
     1222        </condition>
     1223        <condition else="" property="jar.usage.message.module.path" value=" -p ${jar.usage.message.run.modulepath.with.dist.jar}">
     1224            <and>
     1225                <isset property="modules.supported.internal"/>
     1226                <length length="0" string="${jar.usage.message.run.modulepath.with.dist.jar}" when="greater"/>
     1227            </and>
     1228        </condition>
     1229        <condition else="" property="jar.usage.message.class.path" value=" -cp ${run.classpath.with.dist.jar}">
     1230            <length length="0" string="${run.classpath.with.dist.jar}" when="greater"/>
     1231        </condition>
     1232        <condition else="/${main.class}" property="jar.usage.message.main.class.class.selector" value="">
     1233            <isset property="do.module.main.class"/>
     1234        </condition>
     1235        <condition else=" ${main.class}" property="jar.usage.message.main.class" value=" -m ${module.name}${jar.usage.message.main.class.class.selector}">
     1236            <isset property="named.module.internal"/>
     1237        </condition>
     1238        <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}">
    10141239            <isset property="main.class.available"/>
    10151240        </condition>
     
    10301255        <!-- You can override this target in the ../build.xml file. -->
    10311256    </target>
    1032     <target depends="init,compile,-pre-jar,-do-jar-without-libraries,-do-jar-with-libraries,-post-jar" name="-do-jar"/>
    1033     <target depends="init,compile,-pre-jar,-do-jar,-post-jar" description="Build JAR." name="jar"/>
     1257    <target depends="init,compile,-pre-jar,-set-module-main-class,-do-jar-without-libraries,-do-jar-with-libraries,-post-jar" name="-do-jar"/>
     1258    <target depends="init,compile,-pre-jar,-do-jar,-post-jar,deploy" description="Build JAR." name="jar"/>
     1259    <!--
     1260                =================
     1261                DEPLOY SECTION
     1262                =================
     1263            -->
     1264    <target name="-pre-deploy">
     1265        <!-- Empty placeholder for easier customization. -->
     1266        <!-- You can override this target in the ../build.xml file. -->
     1267    </target>
     1268    <target depends="init" name="-check-jlink">
     1269        <condition property="do.jlink.internal">
     1270            <and>
     1271                <istrue value="${do.jlink}"/>
     1272                <isset property="do.archive"/>
     1273                <isset property="named.module.internal"/>
     1274            </and>
     1275        </condition>
     1276    </target>
     1277    <target depends="init,-do-jar,-post-jar,-pre-deploy,-check-jlink" if="do.jlink.internal" name="-do-deploy">
     1278        <delete dir="${dist.jlink.dir}" failonerror="false" quiet="true"/>
     1279        <property name="jlink.launcher.name" value="${application.title}"/>
     1280        <condition else="${module.name}" property="jlink.add.modules" value="${module.name},${jlink.additionalmodules}">
     1281            <and>
     1282                <isset property="jlink.additionalmodules"/>
     1283                <length length="0" string="${jlink.additionalmodules}" when="greater"/>
     1284            </and>
     1285        </condition>
     1286        <condition property="jlink.do.strip.internal">
     1287            <and>
     1288                <isset property="jlink.strip"/>
     1289                <istrue value="${jlink.strip}"/>
     1290            </and>
     1291        </condition>
     1292        <condition property="jlink.do.additionalparam.internal">
     1293            <and>
     1294                <isset property="jlink.additionalparam"/>
     1295                <length length="0" string="${jlink.additionalparam}" when="greater"/>
     1296            </and>
     1297        </condition>
     1298        <condition property="jlink.do.launcher.internal">
     1299            <and>
     1300                <istrue value="${jlink.launcher}"/>
     1301                <isset property="main.class.available"/>
     1302            </and>
     1303        </condition>
     1304        <property name="platform.jlink" value="${jdk.home}/bin/jlink"/>
     1305        <property name="jlink.systemmodules.internal" value="${jdk.home}/jmods"/>
     1306        <exec executable="${platform.jlink}">
     1307            <arg value="--module-path"/>
     1308            <arg path="${jlink.systemmodules.internal}:${run.modulepath}:${dist.jar}"/>
     1309            <arg value="--add-modules"/>
     1310            <arg value="${jlink.add.modules}"/>
     1311            <arg if:set="jlink.do.strip.internal" value="--strip-debug"/>
     1312            <arg if:set="jlink.do.launcher.internal" value="--launcher"/>
     1313            <arg if:set="jlink.do.launcher.internal" value="${jlink.launcher.name}=${module.name}/${main.class}"/>
     1314            <arg if:set="jlink.do.additionalparam.internal" line="${jlink.additionalparam}"/>
     1315            <arg value="--output"/>
     1316            <arg value="${dist.jlink.output}"/>
     1317        </exec>
     1318    </target>
     1319    <target name="-post-deploy">
     1320        <!-- Empty placeholder for easier customization. -->
     1321        <!-- You can override this target in the ../build.xml file. -->
     1322    </target>
     1323    <target depends="-do-jar,-post-jar,-pre-deploy,-do-deploy,-post-deploy" name="deploy"/>
    10341324    <!--
    10351325                =================
     
    10681358    <target depends="init,compile" name="-debug-start-debuggee">
    10691359        <j2seproject3:debug>
    1070             <customize>
     1360            <customizeDebuggee>
    10711361                <arg line="${application.args}"/>
    1072             </customize>
     1362            </customizeDebuggee>
    10731363        </j2seproject3:debug>
    10741364    </target>
     
    11361426        </profile>
    11371427    </target>
    1138     <target depends="profile-init,compile-test-single" if="profiler.info.jvmargs.agent" name="-profile-test-single-pre72">
     1428    <target depends="-init-macrodef-junit,profile-init,compile-test-single" if="profiler.info.jvmargs.agent" name="-profile-test-single-pre72">
    11391429        <fail unless="netbeans.home">This target only works when run from inside the NetBeans IDE.</fail>
    11401430        <nbprofiledirect>
     
    11431433            </classpath>
    11441434        </nbprofiledirect>
    1145         <junit dir="${profiler.info.dir}" errorproperty="tests.failed" failureproperty="tests.failed" fork="true" jvm="${profiler.info.jvm}" showoutput="true">
    1146             <env key="${profiler.info.pathvar}" path="${profiler.info.agentpath}:${profiler.current.path}"/>
    1147             <jvmarg value="${profiler.info.jvmargs.agent}"/>
    1148             <jvmarg line="${profiler.info.jvmargs}"/>
    1149             <test name="${profile.class}"/>
    1150             <classpath>
    1151                 <path path="${run.test.classpath}"/>
    1152             </classpath>
    1153             <syspropertyset>
    1154                 <propertyref prefix="test-sys-prop."/>
    1155                 <mapper from="test-sys-prop.*" to="*" type="glob"/>
    1156             </syspropertyset>
    1157             <formatter type="brief" usefile="false"/>
    1158             <formatter type="xml"/>
    1159         </junit>
     1435        <j2seproject3:junit excludes="${excludes}" includes="${includes}" testincludes="${profile.class}" testmethods="">
     1436            <customize>
     1437                <jvmarg value="-agentlib:jdwp=transport=${debug-transport},address=${jpda.address}"/>
     1438                <env key="${profiler.info.pathvar}" path="${profiler.info.agentpath}:${profiler.current.path}"/>
     1439                <jvmarg value="${profiler.info.jvmargs.agent}"/>
     1440                <jvmarg line="${profiler.info.jvmargs}"/>
     1441                <classpath>
     1442                    <path path="${run.test.classpath}"/>
     1443                </classpath>
     1444            </customize>
     1445        </j2seproject3:junit>
    11601446    </target>
    11611447    <!--
     
    12121498        <condition else="" property="bug5101868workaround" value="*.java">
    12131499            <matches pattern="1\.[56](\..*)?" string="${java.version}"/>
     1500        </condition>
     1501        <condition else="" property="javadoc.html5.cmd.line.arg" value="-html5">
     1502            <and>
     1503                <isset property="javadoc.html5"/>
     1504                <available file="${jdk.home}${file.separator}lib${file.separator}jrt-fs.jar"/>
     1505            </and>
    12141506        </condition>
    12151507        <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}">
     
    12251517            </fileset>
    12261518            <arg line="${javadoc.endorsed.classpath.cmd.line.arg}"/>
     1519            <arg line="${javadoc.html5.cmd.line.arg}"/>
    12271520        </javadoc>
    12281521        <copy todir="${dist.javadoc.dir}">
     
    12511544        <!-- You can override this target in the ../build.xml file. -->
    12521545    </target>
     1546    <target depends="-init-source-module-properties" if="named.module.internal" name="-init-test-javac-module-properties-with-module">
     1547        <j2seproject3:modulename property="test.module.name" sourcepath="${test.src.dir}"/>
     1548        <condition else="${empty.dir}" property="javac.test.sourcepath" value="${test.src.dir}">
     1549            <and>
     1550                <isset property="test.module.name"/>
     1551                <length length="0" string="${test.module.name}" when="greater"/>
     1552            </and>
     1553        </condition>
     1554        <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">
     1555            <and>
     1556                <isset property="test.module.name"/>
     1557                <length length="0" string="${test.module.name}" when="greater"/>
     1558            </and>
     1559        </condition>
     1560    </target>
     1561    <target depends="-init-source-module-properties" if="named.module.internal" name="-init-test-run-module-properties">
     1562        <condition else="${module.name}" property="run.test.addexport.source.module.internal" value="${test.module.name}">
     1563            <and>
     1564                <isset property="test.module.name"/>
     1565                <length length="0" string="${test.module.name}" when="greater"/>
     1566            </and>
     1567        </condition>
     1568        <fileset dir="${build.test.classes.dir}" id="run.test.packages.internal" includes="**/*.class"/>
     1569        <property location="${build.test.classes.dir}" name="build.test.classes.dir.abs.internal"/>
     1570        <pathconvert pathsep=" " property="run.test.addexports.internal" refid="run.test.packages.internal">
     1571            <chainedmapper>
     1572                <regexpmapper from="^(.*)\Q${file.separator}\E.*\.class$$" to="\1"/>
     1573                <filtermapper>
     1574                    <uniqfilter/>
     1575                    <replacestring from="${build.test.classes.dir.abs.internal}" to=""/>
     1576                </filtermapper>
     1577                <cutdirsmapper dirs="1"/>
     1578                <packagemapper from="*" to="--add-exports ${run.test.addexport.source.module.internal}/*=ALL-UNNAMED"/>
     1579            </chainedmapper>
     1580        </pathconvert>
     1581        <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}">
     1582            <and>
     1583                <isset property="test.module.name"/>
     1584                <length length="0" string="${test.module.name}" when="greater"/>
     1585            </and>
     1586        </condition>
     1587    </target>
     1588    <target depends="-init-source-module-properties" name="-init-test-module-properties-without-module" unless="named.module.internal">
     1589        <property name="javac.test.sourcepath" value="${empty.dir}"/>
     1590        <property name="javac.test.compilerargs" value=""/>
     1591        <property name="run.test.jvmargs" value=""/>
     1592    </target>
     1593    <target depends="-init-test-javac-module-properties-with-module,-init-test-module-properties-without-module" name="-init-test-module-properties"/>
    12531594    <target if="do.depend.true" name="-compile-test-depend">
    12541595        <j2seproject3:depend classpath="${javac.test.classpath}" destdir="${build.test.classes.dir}" srcdir="${test.src.dir}"/>
    12551596    </target>
    1256     <target depends="init,deps-jar,compile,-pre-pre-compile-test,-pre-compile-test,-compile-test-depend" if="have.tests" name="-do-compile-test">
    1257         <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}"/>
     1597    <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">
     1598        <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}">
     1599            <customize>
     1600                <compilerarg line="${javac.test.compilerargs}"/>
     1601            </customize>
     1602        </j2seproject3:javac>
    12581603        <copy todir="${build.test.classes.dir}">
    12591604            <fileset dir="${test.src.dir}" excludes="${build.classes.excludes},${excludes}" includes="${includes}"/>
     
    12691614        <!-- You can override this target in the ../build.xml file. -->
    12701615    </target>
    1271     <target depends="init,deps-jar,compile,-pre-pre-compile-test,-pre-compile-test-single" if="have.tests" name="-do-compile-test-single">
     1616    <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">
    12721617        <fail unless="javac.includes">Must select some files in the IDE or set javac.includes</fail>
    12731618        <j2seproject3:force-recompile destdir="${build.test.classes.dir}"/>
    1274         <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}"/>
     1619        <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}">
     1620            <customize>
     1621                <compilerarg line="${javac.test.compilerargs}"/>
     1622            </customize>
     1623        </j2seproject3:javac>
    12751624        <copy todir="${build.test.classes.dir}">
    12761625            <fileset dir="${test.src.dir}" excludes="${build.classes.excludes},${excludes}" includes="${includes}"/>
     
    12901639        <mkdir dir="${build.test.results.dir}"/>
    12911640    </target>
    1292     <target depends="init,compile-test,-pre-test-run" if="have.tests" name="-do-test-run">
     1641    <target depends="init,compile-test,-init-test-run-module-properties,-pre-test-run" if="have.tests" name="-do-test-run">
    12931642        <j2seproject3:test includes="${includes}" testincludes="**/*Test.java"/>
    12941643    </target>
     
    13021651        <mkdir dir="${build.test.results.dir}"/>
    13031652    </target>
    1304     <target depends="init,compile-test-single,-pre-test-run-single" if="have.tests" name="-do-test-run-single">
     1653    <target depends="init,compile-test-single,-init-test-run-module-properties,-pre-test-run-single" if="have.tests" name="-do-test-run-single">
    13051654        <fail unless="test.includes">Must select some files in the IDE or set test.includes</fail>
    13061655        <j2seproject3:test excludes="" includes="${test.includes}" testincludes="${test.includes}"/>
     
    13091658        <fail if="tests.failed" unless="ignore.failing.tests">Some tests failed; see details above.</fail>
    13101659    </target>
    1311     <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"/>
     1660    <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"/>
    13121661    <target depends="init,compile-test-single,-pre-test-run-single" if="have.tests" name="-do-test-run-single-method">
    13131662        <fail unless="test.class">Must select some files in the IDE or set test.class</fail>
     
    13181667        <fail if="tests.failed" unless="ignore.failing.tests">Some tests failed; see details above.</fail>
    13191668    </target>
    1320     <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"/>
     1669    <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"/>
    13211670    <!--
    13221671                =======================
     
    13361685        <j2seproject1:nbjpdastart classpath="${debug.test.classpath}" name="${test.class}"/>
    13371686    </target>
    1338     <target depends="init,compile-test-single,-debug-start-debugger-test,-debug-start-debuggee-test" name="debug-test"/>
    1339     <target depends="init,compile-test-single,-debug-start-debugger-test,-debug-start-debuggee-test-method" name="debug-test-method"/>
     1687    <target depends="init,compile-test-single,-init-test-run-module-properties,-debug-start-debugger-test,-debug-start-debuggee-test" name="debug-test"/>
     1688    <target depends="init,compile-test-single,-init-test-run-module-properties,-debug-start-debugger-test,-debug-start-debuggee-test-method" name="debug-test-method"/>
    13401689    <target depends="init,-pre-debug-fix,compile-test-single" if="netbeans.home" name="-do-debug-fix-test">
    13411690        <j2seproject1:nbjpdareload dir="${build.test.classes.dir}"/>
     
    13631712        <fail unless="applet.url">Must select one file in the IDE or set applet.url</fail>
    13641713        <j2seproject3:debug classname="sun.applet.AppletViewer">
    1365             <customize>
     1714            <customizeDebuggee>
    13661715                <arg value="${applet.url}"/>
    1367             </customize>
     1716            </customizeDebuggee>
    13681717        </j2seproject3:debug>
    13691718    </target>
     
    13921741    <target depends="init" name="-do-clean">
    13931742        <delete dir="${build.dir}"/>
     1743        <delete dir="${dist.jlink.output}"/>
    13941744        <delete dir="${dist.dir}" followsymlinks="false" includeemptydirs="true"/>
    13951745    </target>
  • trunk/abcl/nbproject/genfiles.properties

    r14890 r15434  
    55# Do not edit this file. You may delete it but then the IDE will never regenerate such files for you.
    66nbproject/build-impl.xml.data.CRC32=742204ce
    7 nbproject/build-impl.xml.script.CRC32=dc81b4ba
    8 nbproject/build-impl.xml.stylesheet.CRC32=830a3534@1.80.1.48
     7nbproject/build-impl.xml.script.CRC32=022245a1
     8nbproject/build-impl.xml.stylesheet.CRC32=f89f7d21@1.93.0.48
    99nbproject/profiler-build-impl.xml.data.CRC32=71623fcd
    1010nbproject/profiler-build-impl.xml.script.CRC32=abda56ed
  • trunk/abcl/nbproject/project.properties

    r14890 r15434  
     1debug.modulepath=\
     2    ${run.modulepath}
     3debug.test.modulepath=\
     4    ${run.test.modulepath}
    15#Fri Oct 07 19:23:08 CEST 2016
    26excludes=
    37javac.deprecation=false
     8javac.external.vm=false
     9javac.modulepath=
     10javac.processormodulepath=
     11javac.test.modulepath=\
     12    ${javac.modulepath}
     13javadoc.html5=false
     14jlink.launcher=false
     15jlink.launcher.name=abcl
    416jnlp.enabled=false
    517build.test.results.dir=${build.dir}/test/results
    6 run.classpath=${build.classes.dir}\:${javac.classpath}\:${file.reference.abcl-contrib.jar}
     18run.classpath=\
     19    ${build.classes.dir}:\
     20    ${javac.classpath}:\
     21    ${file.reference.abcl-contrib.jar}
    722javadoc.nonavbar=false
    8 run.test.classpath=${build.test.classes.dir}\:${javac.test.classpath}
    9 javac.processorpath=${javac.classpath}
     23run.modulepath=\
     24    ${javac.modulepath}
     25run.test.classpath=\
     26    ${build.test.classes.dir}:\
     27    ${javac.test.classpath}
     28javac.processorpath=\
     29    ${javac.classpath}
    1030jnlp.signed=false
    1131javac.target=1.6
    1232annotation.processing.processors.list=
    1333javadoc.noindex=false
     34run.test.modulepath=\
     35    ${javac.test.modulepath}
    1436src.themes.dir=themes
    1537javadoc.additionalparam=
Note: See TracChangeset for help on using the changeset viewer.