Changeset 12 in tmcsimulator for trunk/IDE_metadata/NetBeans/TMCSim/nbproject/build-impl.xml
- Timestamp:
- 04/21/2016 03:59:55 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/IDE_metadata/NetBeans/TMCSim/nbproject/build-impl.xml
r2 r12 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 94 <available file="${manifest.file}" property="manifest.available"/> 58 95 <condition property="splashscreen.available"> … … 189 226 <length length="0" string="${endorsed.classpath}" when="greater"/> 190 227 </condition> 191 <condition else="false" property="jdkBug6558476">192 <and>193 <matches pattern="1\.[56]" string="${java.specification.version}"/>194 <not>195 <os family="unix"/>196 </not>197 </and>198 </condition>199 <property name="javac.fork" value="${jdkBug6558476}"/>200 228 <property name="jar.index" value="false"/> 201 229 <property name="jar.index.metainf" value="${jar.index}"/> … … 266 294 <mkdir dir="${empty.dir}"/> 267 295 <mkdir dir="@{apgeneratedsrcdir}"/> 268 <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}">296 <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}"> 269 297 <src> 270 298 <dirset dir="@{gensrcdir}" erroronmissingdir="false"> … … 305 333 <property location="${build.dir}/empty" name="empty.dir"/> 306 334 <mkdir dir="${empty.dir}"/> 307 <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}">335 <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}"> 308 336 <src> 309 337 <dirset dir="@{gensrcdir}" erroronmissingdir="false"> … … 385 413 <sequential> 386 414 <property name="junit.forkmode" value="perTest"/> 387 <junit dir="${work.dir}" errorproperty="tests.failed" failureproperty="tests.failed" fork="true" forkmode="${junit.forkmode}" showoutput="true" tempdir="${build.dir}">415 <junit dir="${work.dir}" errorproperty="tests.failed" failureproperty="tests.failed" fork="true" forkmode="${junit.forkmode}" jvm="${platform.java}" showoutput="true" tempdir="${build.dir}"> 388 416 <test methods="@{testmethods}" name="@{testincludes}" todir="${build.test.results.dir}"/> 389 417 <syspropertyset> … … 408 436 <sequential> 409 437 <property name="junit.forkmode" value="perTest"/> 410 <junit dir="${work.dir}" errorproperty="tests.failed" failureproperty="tests.failed" fork="true" forkmode="${junit.forkmode}" showoutput="true" tempdir="${build.dir}">438 <junit dir="${work.dir}" errorproperty="tests.failed" failureproperty="tests.failed" fork="true" forkmode="${junit.forkmode}" jvm="${platform.java}" showoutput="true" tempdir="${build.dir}"> 411 439 <batchtest todir="${build.test.results.dir}"> 412 440 <fileset dir="${test.src.dir}" excludes="@{excludes},${excludes}" includes="@{includes}"> … … 447 475 </union> 448 476 <taskdef classname="org.testng.TestNGAntTask" classpath="${run.test.classpath}" name="testng"/> 449 <testng classfilesetref="test.set" failureProperty="tests.failed" methods="${testng.methods.arg}" mode="${testng.mode}" outputdir="${build.test.results.dir}" suitename="TMCSim" testname="TestNG tests" workingDir="${work.dir}">477 <testng classfilesetref="test.set" failureProperty="tests.failed" jvm="${platform.java}" methods="${testng.methods.arg}" mode="${testng.mode}" outputdir="${build.test.results.dir}" suitename="TMCSim" testname="TestNG tests" workingDir="${work.dir}"> 450 478 <xmlfileset dir="${build.test.classes.dir}" includes="@{testincludes}"/> 451 479 <propertyset> … … 527 555 <sequential> 528 556 <property name="junit.forkmode" value="perTest"/> 529 <junit dir="${work.dir}" errorproperty="tests.failed" failureproperty="tests.failed" fork="true" forkmode="${junit.forkmode}" showoutput="true" tempdir="${build.dir}">557 <junit dir="${work.dir}" errorproperty="tests.failed" failureproperty="tests.failed" fork="true" forkmode="${junit.forkmode}" jvm="${platform.java}" showoutput="true" tempdir="${build.dir}"> 530 558 <test methods="@{testmethods}" name="@{testincludes}" todir="${build.test.results.dir}"/> 531 559 <syspropertyset> … … 552 580 <sequential> 553 581 <property name="junit.forkmode" value="perTest"/> 554 <junit dir="${work.dir}" errorproperty="tests.failed" failureproperty="tests.failed" fork="true" forkmode="${junit.forkmode}" showoutput="true" tempdir="${build.dir}">582 <junit dir="${work.dir}" errorproperty="tests.failed" failureproperty="tests.failed" fork="true" forkmode="${junit.forkmode}" jvm="${platform.java}" showoutput="true" tempdir="${build.dir}"> 555 583 <batchtest todir="${build.test.results.dir}"> 556 584 <fileset dir="${test.src.dir}" excludes="@{excludes},${excludes}" includes="@{includes}"> … … 732 760 <path path="@{classpath}"/> 733 761 </classpath> 762 <bootclasspath> 763 <path path="${platform.bootcp}"/> 764 </bootclasspath> 734 765 </nbjpdastart> 735 766 </sequential> … … 747 778 </target> 748 779 <target name="-init-debug-args"> 749 <property name="version-output" value="java version "${ant.java.version}"/> 780 <exec executable="${platform.java}" outputproperty="version-output"> 781 <arg value="-version"/> 782 </exec> 750 783 <condition property="have-jdk-older-than-1.4"> 751 784 <or> … … 772 805 <element name="customize" optional="true"/> 773 806 <sequential> 774 <java classname="@{classname}" dir="${work.dir}" fork="true" >807 <java classname="@{classname}" dir="${work.dir}" fork="true" jvm="${platform.java}"> 775 808 <jvmarg line="${endorsed.classpath.cmd.line.arg}"/> 776 809 <jvmarg line="${debug-args-line}"/> … … 799 832 <element name="customize" optional="true"/> 800 833 <sequential> 801 <java classname="@{classname}" dir="${work.dir}" fork="true" >834 <java classname="@{classname}" dir="${work.dir}" fork="true" jvm="${platform.java}"> 802 835 <jvmarg line="${endorsed.classpath.cmd.line.arg}"/> 803 836 <jvmarg value="-Dfile.encoding=${runtime.encoding}"/> … … 986 1019 <map from="${build.classes.dir.resolved}" to="${dist.jar.resolved}"/> 987 1020 </pathconvert> 988 <echo level="info"> java-cp "${run.classpath.with.dist.jar}" ${main.class}</echo>1021 <echo level="info">${platform.java} -cp "${run.classpath.with.dist.jar}" ${main.class}</echo> 989 1022 </target> 990 1023 <target depends="init" if="do.archive" name="-do-jar-with-libraries-create-manifest" unless="manifest.available"> … … 1013 1046 <echo level="info">To run this application from the command line without Ant, try:</echo> 1014 1047 <property location="${dist.jar}" name="dist.jar.resolved"/> 1015 <echo level="info"> java-jar "${dist.jar.resolved}"</echo>1048 <echo level="info">${platform.java} -jar "${dist.jar.resolved}"</echo> 1016 1049 </target> 1017 1050 <target depends="-do-jar-with-libraries-pack" if="do.archive" name="-do-jar-with-libraries-delete-manifest"> … … 1204 1237 </and> 1205 1238 </condition> 1206 <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}">1239 <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}"> 1207 1240 <classpath> 1208 1241 <path path="${javac.classpath}"/>
Note: See TracChangeset
for help on using the changeset viewer.
