Changeset 482 in tmcsimulator for branches/SVNtutorial/PizzaOrderIntl/nbproject/build-impl.xml
- Timestamp:
- 10/15/2019 01:26:20 PM (7 years ago)
- Location:
- branches/SVNtutorial/PizzaOrderIntl
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/SVNtutorial/PizzaOrderIntl
-
Property
svn:ignore
set to
build
-
Property
svn:ignore
set to
-
branches/SVNtutorial/PizzaOrderIntl/nbproject
-
Property
svn:ignore
set to
private
-
Property
svn:ignore
set to
-
branches/SVNtutorial/PizzaOrderIntl/nbproject/build-impl.xml
r481 r482 47 47 <!-- The two properties below are usually overridden --> 48 48 <!-- by the active platform. Just a fallback. --> 49 <property name="default.javac.source" value="1. 4"/>50 <property name="default.javac.target" value="1. 4"/>49 <property name="default.javac.source" value="1.6"/> 50 <property name="default.javac.target" value="1.6"/> 51 51 </target> 52 52 <target depends="-pre-init,-init-private,-init-user" name="-init-project"> … … 55 55 </target> 56 56 <target depends="-pre-init,-init-private,-init-user,-init-project,-init-macrodef-property" name="-do-init"> 57 <j2seproject1:property name="platform.home" value="platforms.${platform.active}.home"/> 58 <j2seproject1:property name="platform.bootcp" value="platforms.${platform.active}.bootclasspath"/> 59 <j2seproject1:property name="platform.compiler" value="platforms.${platform.active}.compile"/> 60 <j2seproject1:property name="platform.javac.tmp" value="platforms.${platform.active}.javac"/> 61 <condition property="platform.javac" value="${platform.home}/bin/javac"> 62 <equals arg1="${platform.javac.tmp}" arg2="$${platforms.${platform.active}.javac}"/> 63 </condition> 64 <property name="platform.javac" value="${platform.javac.tmp}"/> 65 <j2seproject1:property name="platform.java.tmp" value="platforms.${platform.active}.java"/> 66 <condition property="platform.java" value="${platform.home}/bin/java"> 67 <equals arg1="${platform.java.tmp}" arg2="$${platforms.${platform.active}.java}"/> 68 </condition> 69 <property name="platform.java" value="${platform.java.tmp}"/> 70 <j2seproject1:property name="platform.javadoc.tmp" value="platforms.${platform.active}.javadoc"/> 71 <condition property="platform.javadoc" value="${platform.home}/bin/javadoc"> 72 <equals arg1="${platform.javadoc.tmp}" arg2="$${platforms.${platform.active}.javadoc}"/> 73 </condition> 74 <property name="platform.javadoc" value="${platform.javadoc.tmp}"/> 75 <condition property="platform.invalid" value="true"> 76 <or> 77 <contains string="${platform.javac}" substring="$${platforms."/> 78 <contains string="${platform.java}" substring="$${platforms."/> 79 <contains string="${platform.javadoc}" substring="$${platforms."/> 80 </or> 81 </condition> 82 <fail unless="platform.home">Must set platform.home</fail> 83 <fail unless="platform.bootcp">Must set platform.bootcp</fail> 84 <fail unless="platform.java">Must set platform.java</fail> 85 <fail unless="platform.javac">Must set platform.javac</fail> 86 <fail if="platform.invalid"> 87 The J2SE Platform is not correctly set up. 88 Your active platform is: ${platform.active}, but the corresponding property "platforms.${platform.active}.home" is not found in the project's properties files. 89 Either open the project in the IDE and setup the Platform with the same name or add it manually. 90 For example like this: 91 ant -Duser.properties.file=<path_to_property_file> jar (where you put the property "platforms.${platform.active}.home" in a .properties file) 92 or ant -Dplatforms.${platform.active}.home=<path_to_JDK_home> jar (where no properties file is used) 93 </fail> 57 <property name="platform.java" value="${java.home}/bin/java"/> 94 58 <available file="${manifest.file}" property="manifest.available"/> 95 59 <condition property="splashscreen.available"> … … 113 77 <isset property="javac.profile"/> 114 78 <length length="0" string="${javac.profile}" when="greater"/> 115 <matches pattern=" 1\.[89](\..*)?" string="${javac.source}"/>79 <matches pattern="((1\.[89])|9)(\..*)?" string="${javac.source}"/> 116 80 </and> 117 81 </condition> 118 82 <condition property="do.archive"> 119 <not> 120 <istrue value="${jar.archive.disabled}"/> 121 </not> 83 <or> 84 <not> 85 <istrue value="${jar.archive.disabled}"/> 86 </not> 87 <istrue value="${not.archive.disabled}"/> 88 </or> 122 89 </condition> 123 90 <condition property="do.mkdist"> … … 190 157 <property name="source.encoding" value="${file.encoding}"/> 191 158 <property name="runtime.encoding" value="${source.encoding}"/> 159 <property name="manifest.encoding" value="${source.encoding}"/> 192 160 <condition property="javadoc.encoding.used" value="${javadoc.encoding}"> 193 161 <and> … … 216 184 <condition else="" property="javac.profile.cmd.line.arg" value="-profile ${javac.profile}"> 217 185 <isset property="profile.available"/> 186 </condition> 187 <condition else="false" property="jdkBug6558476"> 188 <and> 189 <matches pattern="1\.[56]" string="${java.specification.version}"/> 190 <not> 191 <os family="unix"/> 192 </not> 193 </and> 194 </condition> 195 <condition else="false" property="javac.fork"> 196 <or> 197 <istrue value="${jdkBug6558476}"/> 198 <istrue value="${javac.external.vm}"/> 199 </or> 218 200 </condition> 219 201 <property name="jar.index" value="false"/> … … 242 224 <istrue value="${junit+testng.available}"/> 243 225 </condition> 226 <property name="java.failonerror" value="true"/> 244 227 </target> 245 228 <target name="-post-init"> … … 285 268 <mkdir dir="${empty.dir}"/> 286 269 <mkdir dir="@{apgeneratedsrcdir}"/> 287 <javac debug="@{debug}" deprecation="${javac.deprecation}" destdir="@{destdir}" encoding="${source.encoding}" excludes="@{excludes}" executable="${platform.javac}" fork="yes" includeantruntime="false" includes="@{includes}" source="${javac.source}" sourcepath="@{sourcepath}" srcdir="@{srcdir}" target="${javac.target}" tempdir="${java.io.tmpdir}">270 <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}"> 288 271 <src> 289 272 <dirset dir="@{gensrcdir}" erroronmissingdir="false"> … … 325 308 <property location="${build.dir}/empty" name="empty.dir"/> 326 309 <mkdir dir="${empty.dir}"/> 327 <javac debug="@{debug}" deprecation="${javac.deprecation}" destdir="@{destdir}" encoding="${source.encoding}" excludes="@{excludes}" executable="${platform.javac}" fork="yes" includeantruntime="false" includes="@{includes}" source="${javac.source}" sourcepath="@{sourcepath}" srcdir="@{srcdir}" target="${javac.target}" tempdir="${java.io.tmpdir}">310 <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}"> 328 311 <src> 329 312 <dirset dir="@{gensrcdir}" erroronmissingdir="false"> … … 406 389 <sequential> 407 390 <property name="junit.forkmode" value="perTest"/> 408 <junit dir="${work.dir}" errorproperty="tests.failed" failureproperty="tests.failed" fork="true" forkmode="${junit.forkmode}" jvm="${platform.java}"showoutput="true" tempdir="${build.dir}">391 <junit dir="${work.dir}" errorproperty="tests.failed" failureproperty="tests.failed" fork="true" forkmode="${junit.forkmode}" showoutput="true" tempdir="${build.dir}"> 409 392 <test methods="@{testmethods}" name="@{testincludes}" todir="${build.test.results.dir}"/> 410 393 <syspropertyset> … … 429 412 <sequential> 430 413 <property name="junit.forkmode" value="perTest"/> 431 <junit dir="${work.dir}" errorproperty="tests.failed" failureproperty="tests.failed" fork="true" forkmode="${junit.forkmode}" jvm="${platform.java}"showoutput="true" tempdir="${build.dir}">414 <junit dir="${work.dir}" errorproperty="tests.failed" failureproperty="tests.failed" fork="true" forkmode="${junit.forkmode}" showoutput="true" tempdir="${build.dir}"> 432 415 <batchtest todir="${build.test.results.dir}"> 433 416 <fileset dir="${test.src.dir}" excludes="@{excludes},${excludes}" includes="@{includes}"> … … 468 451 </union> 469 452 <taskdef classname="org.testng.TestNGAntTask" classpath="${run.test.classpath}" name="testng"/> 470 <testng classfilesetref="test.set" failureProperty="tests.failed" jvm="${platform.java}"listeners="org.testng.reporters.VerboseReporter" methods="${testng.methods.arg}" mode="${testng.mode}" outputdir="${build.test.results.dir}" suitename="PizzaOrderIntl" testname="TestNG tests" workingDir="${work.dir}">453 <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="PizzaOrderIntl" testname="TestNG tests" workingDir="${work.dir}"> 471 454 <xmlfileset dir="${build.test.classes.dir}" includes="@{testincludes}"/> 472 455 <propertyset> … … 548 531 <sequential> 549 532 <property name="junit.forkmode" value="perTest"/> 550 <junit dir="${work.dir}" errorproperty="tests.failed" failureproperty="tests.failed" fork="true" forkmode="${junit.forkmode}" jvm="${platform.java}"showoutput="true" tempdir="${build.dir}">533 <junit dir="${work.dir}" errorproperty="tests.failed" failureproperty="tests.failed" fork="true" forkmode="${junit.forkmode}" showoutput="true" tempdir="${build.dir}"> 551 534 <test methods="@{testmethods}" name="@{testincludes}" todir="${build.test.results.dir}"/> 552 535 <syspropertyset> … … 573 556 <sequential> 574 557 <property name="junit.forkmode" value="perTest"/> 575 <junit dir="${work.dir}" errorproperty="tests.failed" failureproperty="tests.failed" fork="true" forkmode="${junit.forkmode}" jvm="${platform.java}"showoutput="true" tempdir="${build.dir}">558 <junit dir="${work.dir}" errorproperty="tests.failed" failureproperty="tests.failed" fork="true" forkmode="${junit.forkmode}" showoutput="true" tempdir="${build.dir}"> 576 559 <batchtest todir="${build.test.results.dir}"> 577 560 <fileset dir="${test.src.dir}" excludes="@{excludes},${excludes}" includes="@{includes}"> … … 718 701 <property environment="env"/> 719 702 <resolve name="profiler.current.path" value="${profiler.info.pathvar}"/> 720 <java classname="@{classname}" dir="${profiler.info.dir}" f ork="true" jvm="${profiler.info.jvm}">703 <java classname="@{classname}" dir="${profiler.info.dir}" failonerror="${java.failonerror}" fork="true" jvm="${profiler.info.jvm}"> 721 704 <jvmarg line="${endorsed.classpath.cmd.line.arg}"/> 722 705 <jvmarg value="${profiler.info.jvmargs.agent}"/> … … 753 736 <path path="@{classpath}"/> 754 737 </classpath> 755 <bootclasspath>756 <path path="${platform.bootcp}"/>757 </bootclasspath>758 738 </nbjpdastart> 759 739 </sequential> … … 771 751 </target> 772 752 <target name="-init-debug-args"> 773 <exec executable="${platform.java}" outputproperty="version-output"> 774 <arg value="-version"/> 775 </exec> 753 <property name="version-output" value="java version "${ant.java.version}"/> 776 754 <condition property="have-jdk-older-than-1.4"> 777 755 <or> … … 798 776 <element name="customize" optional="true"/> 799 777 <sequential> 800 <java classname="@{classname}" dir="${work.dir}" f ork="true" jvm="${platform.java}">778 <java classname="@{classname}" dir="${work.dir}" failonerror="${java.failonerror}" fork="true"> 801 779 <jvmarg line="${endorsed.classpath.cmd.line.arg}"/> 802 780 <jvmarg line="${debug-args-line}"/> … … 825 803 <element name="customize" optional="true"/> 826 804 <sequential> 827 <java classname="@{classname}" dir="${work.dir}" f ork="true" jvm="${platform.java}">805 <java classname="@{classname}" dir="${work.dir}" failonerror="${java.failonerror}" fork="true"> 828 806 <jvmarg line="${endorsed.classpath.cmd.line.arg}"/> 829 807 <jvmarg value="-Dfile.encoding=${runtime.encoding}"/> … … 864 842 </pathconvert> 865 843 <taskdef classname="org.netbeans.modules.java.j2seproject.copylibstask.CopyLibs" classpath="${libs.CopyLibs.classpath}" name="copylibs"/> 866 <copylibs compress="${jar.compress}" excludeFromCopy="${copylibs.excludes}" index="${jar.index}" indexMetaInf="${jar.index.metainf}" jarfile="${dist.jar}" manifest="@{manifest}" rebase="${copylibs.rebase}" runtimeclasspath="${run.classpath.without.build.classes.dir}">844 <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}"> 867 845 <fileset dir="${build.classes.dir}" excludes="${dist.archive.excludes}"/> 868 846 <manifest> … … 876 854 <target name="-init-presetdef-jar"> 877 855 <presetdef name="jar" uri="http://www.netbeans.org/ns/j2se-project/1"> 878 <jar compress="${jar.compress}" index="${jar.index}" jarfile="${dist.jar}" >856 <jar compress="${jar.compress}" index="${jar.index}" jarfile="${dist.jar}" manifestencoding="UTF-8"> 879 857 <j2seproject1:fileset dir="${build.classes.dir}" excludes="${dist.archive.excludes}"/> 880 858 </jar> … … 999 977 <target depends="init" if="do.archive+manifest.available" name="-do-jar-copy-manifest"> 1000 978 <tempfile deleteonexit="true" destdir="${build.dir}" property="tmp.manifest.file"/> 1001 <copy file="${manifest.file}" tofile="${tmp.manifest.file}"/>979 <copy encoding="${manifest.encoding}" file="${manifest.file}" outputencoding="UTF-8" tofile="${tmp.manifest.file}"/> 1002 980 </target> 1003 981 <target depends="init,-do-jar-create-manifest,-do-jar-copy-manifest" if="do.archive+main.class.available" name="-do-jar-set-mainclass"> 1004 <manifest file="${tmp.manifest.file}" mode="update">982 <manifest encoding="UTF-8" file="${tmp.manifest.file}" mode="update"> 1005 983 <attribute name="Main-Class" value="${main.class}"/> 1006 984 </manifest> 1007 985 </target> 1008 986 <target depends="init,-do-jar-create-manifest,-do-jar-copy-manifest" if="do.archive+profile.available" name="-do-jar-set-profile"> 1009 <manifest file="${tmp.manifest.file}" mode="update">987 <manifest encoding="UTF-8" file="${tmp.manifest.file}" mode="update"> 1010 988 <attribute name="Profile" value="${javac.profile}"/> 1011 989 </manifest> … … 1015 993 <mkdir dir="${build.classes.dir}/META-INF"/> 1016 994 <copy failonerror="false" file="${application.splash}" todir="${build.classes.dir}/META-INF"/> 1017 <manifest file="${tmp.manifest.file}" mode="update">995 <manifest encoding="UTF-8" file="${tmp.manifest.file}" mode="update"> 1018 996 <attribute name="SplashScreen-Image" value="META-INF/${splashscreen.basename}"/> 1019 997 </manifest> … … 1023 1001 <echo level="info">To run this application from the command line without Ant, try:</echo> 1024 1002 <property location="${dist.jar}" name="dist.jar.resolved"/> 1025 <echo level="info"> ${platform.java}-jar "${dist.jar.resolved}"</echo>1003 <echo level="info">java -jar "${dist.jar.resolved}"</echo> 1026 1004 </target> 1027 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"> … … 1210 1188 <fail unless="run.class">Must select one file in the IDE or set run.class</fail> 1211 1189 <startprofiler/> 1212 <antcal target="run-test-with-main"/>1190 <antcall target="run-test-with-main"/> 1213 1191 </target> 1214 1192 <target depends="-profile-check,-profile-applet-pre72" if="profiler.configured" name="profile-applet" unless="profiler.info.jvmargs.agent"> … … 1232 1210 </and> 1233 1211 </condition> 1234 <javadoc additionalparam="${javadoc.additionalparam}" author="${javadoc.author}" charset="UTF-8" destdir="${dist.javadoc.dir}" docencoding="UTF-8" encoding="${javadoc.encoding.used}" executable="${platform.javadoc}" 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}"> 1212 <condition else="" property="bug5101868workaround" value="*.java"> 1213 <matches pattern="1\.[56](\..*)?" string="${java.version}"/> 1214 </condition> 1215 <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}"> 1235 1216 <classpath> 1236 1217 <path path="${javac.classpath}"/> 1237 1218 </classpath> 1238 <fileset dir="${src.dir}" excludes=" *.java,${excludes}" includes="${includes}">1219 <fileset dir="${src.dir}" excludes="${bug5101868workaround},${excludes}" includes="${includes}"> 1239 1220 <filename name="**/*.java"/> 1240 1221 </fileset> … … 1310 1291 </target> 1311 1292 <target depends="init,compile-test,-pre-test-run" if="have.tests" name="-do-test-run"> 1312 <j2seproject3:test testincludes="**/*Test.java"/>1293 <j2seproject3:test includes="${includes}" testincludes="**/*Test.java"/> 1313 1294 </target> 1314 1295 <target depends="init,compile-test,-pre-test-run,-do-test-run" if="have.tests" name="-post-test-run">
Note: See TracChangeset
for help on using the changeset viewer.
