@@ -119,43 +119,7 @@ is divided into following sections:
119
119
<property name =" module.name" value =" " />
120
120
</target >
121
121
<target depends =" -pre-init,-init-private,-init-user,-init-project,-init-macrodef-property,-init-modules-supported" name =" -do-init" >
122
- <j2seproject1 : property name =" platform.home" value =" platforms.${platform.active}.home" />
123
- <j2seproject1 : property name =" platform.bootcp" value =" platforms.${platform.active}.bootclasspath" />
124
- <j2seproject1 : property name =" platform.compiler" value =" platforms.${platform.active}.compile" />
125
- <j2seproject1 : property name =" platform.javac.tmp" value =" platforms.${platform.active}.javac" />
126
- <condition property =" platform.javac" value =" ${platform.home}/bin/javac" >
127
- <equals arg1 =" ${platform.javac.tmp}" arg2 =" $${platforms.${platform.active}.javac}" />
128
- </condition >
129
- <property name =" platform.javac" value =" ${platform.javac.tmp}" />
130
- <j2seproject1 : property name =" platform.java.tmp" value =" platforms.${platform.active}.java" />
131
- <condition property =" platform.java" value =" ${platform.home}/bin/java" >
132
- <equals arg1 =" ${platform.java.tmp}" arg2 =" $${platforms.${platform.active}.java}" />
133
- </condition >
134
- <property name =" platform.java" value =" ${platform.java.tmp}" />
135
- <j2seproject1 : property name =" platform.javadoc.tmp" value =" platforms.${platform.active}.javadoc" />
136
- <condition property =" platform.javadoc" value =" ${platform.home}/bin/javadoc" >
137
- <equals arg1 =" ${platform.javadoc.tmp}" arg2 =" $${platforms.${platform.active}.javadoc}" />
138
- </condition >
139
- <property name =" platform.javadoc" value =" ${platform.javadoc.tmp}" />
140
- <condition property =" platform.invalid" value =" true" >
141
- <or >
142
- <contains string =" ${platform.javac}" substring =" $${platforms." />
143
- <contains string =" ${platform.java}" substring =" $${platforms." />
144
- <contains string =" ${platform.javadoc}" substring =" $${platforms." />
145
- </or >
146
- </condition >
147
- <fail unless =" platform.home" >Must set platform.home</fail >
148
- <fail unless =" platform.bootcp" >Must set platform.bootcp</fail >
149
- <fail unless =" platform.java" >Must set platform.java</fail >
150
- <fail unless =" platform.javac" >Must set platform.javac</fail >
151
- <fail if =" platform.invalid" >
152
- The J2SE Platform is not correctly set up.
153
- Your active platform is: ${platform.active}, but the corresponding property "platforms.${platform.active}.home" is not found in the project's properties files.
154
- Either open the project in the IDE and setup the Platform with the same name or add it manually.
155
- For example like this:
156
- ant -Duser.properties.file=< path_to_property_file> jar (where you put the property "platforms.${platform.active}.home" in a .properties file)
157
- or ant -Dplatforms.${platform.active}.home=< path_to_JDK_home> jar (where no properties file is used)
158
- </fail >
122
+ <property name =" platform.java" value =" ${java.home}/bin/java" />
159
123
<available file =" ${manifest.file}" property =" manifest.available" />
160
124
<condition property =" splashscreen.available" >
161
125
<and >
@@ -278,6 +242,20 @@ is divided into following sections:
278
242
<condition else =" " property =" javac.profile.cmd.line.arg" value =" -profile ${javac.profile}" >
279
243
<isset property =" profile.available" />
280
244
</condition >
245
+ <condition else =" false" property =" jdkBug6558476" >
246
+ <and >
247
+ <matches pattern =" 1\.[56]" string =" ${java.specification.version}" />
248
+ <not >
249
+ <os family =" unix" />
250
+ </not >
251
+ </and >
252
+ </condition >
253
+ <condition else =" false" property =" javac.fork" >
254
+ <or >
255
+ <istrue value =" ${jdkBug6558476}" />
256
+ <istrue value =" ${javac.external.vm}" />
257
+ </or >
258
+ </condition >
281
259
<property name =" jar.index" value =" false" />
282
260
<property name =" jar.index.metainf" value =" ${jar.index}" />
283
261
<property name =" copylibs.rebase" value =" true" />
@@ -365,7 +343,7 @@ is divided into following sections:
365
343
</path >
366
344
</resourcecount >
367
345
</condition >
368
- <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}" >
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}" >
369
347
<src >
370
348
<dirset dir =" @{gensrcdir}" erroronmissingdir =" false" >
371
349
<include name =" *" />
@@ -416,7 +394,7 @@ is divided into following sections:
416
394
<property location =" ${build.dir}/empty" name =" empty.dir" />
417
395
<mkdir dir =" ${empty.dir}" />
418
396
<mkdir dir =" @{apgeneratedsrcdir}" />
419
- <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}" >
397
+ <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}" >
420
398
<src >
421
399
<dirset dir =" @{gensrcdir}" erroronmissingdir =" false" >
422
400
<include name =" *" />
@@ -458,7 +436,7 @@ is divided into following sections:
458
436
<sequential >
459
437
<property location =" ${build.dir}/empty" name =" empty.dir" />
460
438
<mkdir dir =" ${empty.dir}" />
461
- <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}" >
439
+ <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}" >
462
440
<src >
463
441
<dirset dir =" @{gensrcdir}" erroronmissingdir =" false" >
464
442
<include name =" *" />
@@ -537,7 +515,7 @@ is divided into following sections:
537
515
<element name =" customizePrototype" optional =" true" />
538
516
<sequential >
539
517
<property name =" junit.forkmode" value =" perTest" />
540
- <junit dir =" ${work.dir}" errorproperty =" tests.failed" failureproperty =" tests.failed" fork =" true" forkmode =" ${junit.forkmode}" jvm = " ${platform.java} " showoutput =" true" tempdir =" ${build.dir}" >
518
+ <junit dir =" ${work.dir}" errorproperty =" tests.failed" failureproperty =" tests.failed" fork =" true" forkmode =" ${junit.forkmode}" showoutput =" true" tempdir =" ${build.dir}" >
541
519
<syspropertyset >
542
520
<propertyref prefix =" test-sys-prop." />
543
521
<mapper from =" test-sys-prop.*" to =" *" type =" glob" />
@@ -565,7 +543,7 @@ is divided into following sections:
565
543
<element name =" customizePrototype" optional =" true" />
566
544
<sequential >
567
545
<property name =" junit.forkmode" value =" perTest" />
568
- <junit dir =" ${work.dir}" errorproperty =" tests.failed" failureproperty =" tests.failed" fork =" true" forkmode =" ${junit.forkmode}" jvm = " ${platform.java} " showoutput =" true" tempdir =" ${build.dir}" >
546
+ <junit dir =" ${work.dir}" errorproperty =" tests.failed" failureproperty =" tests.failed" fork =" true" forkmode =" ${junit.forkmode}" showoutput =" true" tempdir =" ${build.dir}" >
569
547
<syspropertyset >
570
548
<propertyref prefix =" test-sys-prop." />
571
549
<mapper from =" test-sys-prop.*" to =" *" type =" glob" />
@@ -641,7 +619,7 @@ is divided into following sections:
641
619
</fileset >
642
620
</union >
643
621
<taskdef classname =" org.testng.TestNGAntTask" classpath =" ${run.test.classpath}" name =" testng" />
644
- <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 =" WorldWindJava" testname =" TestNG tests" workingDir =" ${work.dir}" >
622
+ <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 =" WorldWindJava" testname =" TestNG tests" workingDir =" ${work.dir}" >
645
623
<xmlfileset dir =" ${build.test.classes.dir}" includes =" @{testincludes}" />
646
624
<propertyset >
647
625
<propertyref prefix =" test-sys-prop." />
@@ -872,9 +850,6 @@ is divided into following sections:
872
850
<classpath >
873
851
<path path =" @{classpath}" />
874
852
</classpath >
875
- <bootclasspath >
876
- <path path =" ${platform.bootcp}" />
877
- </bootclasspath >
878
853
</nbjpdastart >
879
854
</sequential >
880
855
</macrodef >
@@ -924,7 +899,7 @@ is divided into following sections:
924
899
<attribute default =" jvm" name =" jvm" />
925
900
<element name =" customize" optional =" true" />
926
901
<sequential >
927
- <java classname =" @{classname}" dir =" ${work.dir}" failonerror =" ${java.failonerror}" fork =" true" jvm = " ${platform.java} " module =" @{modulename}" >
902
+ <java classname =" @{classname}" dir =" ${work.dir}" failonerror =" ${java.failonerror}" fork =" true" module =" @{modulename}" >
928
903
<classpath >
929
904
<path path =" @{classpath}" />
930
905
</classpath >
@@ -958,7 +933,7 @@ is divided into following sections:
958
933
<attribute default =" jvm" name =" jvm" />
959
934
<element name =" customize" optional =" true" />
960
935
<sequential >
961
- <java classname =" @{classname}" dir =" ${work.dir}" failonerror =" ${java.failonerror}" fork =" true" jvm = " ${platform.java} " >
936
+ <java classname =" @{classname}" dir =" ${work.dir}" failonerror =" ${java.failonerror}" fork =" true" >
962
937
<classpath >
963
938
<path path =" @{classpath}" />
964
939
</classpath >
@@ -990,7 +965,7 @@ is divided into following sections:
990
965
<attribute default =" jvm" name =" jvm" />
991
966
<element name =" customize" optional =" true" />
992
967
<sequential >
993
- <java classname =" @{classname}" dir =" ${work.dir}" failonerror =" ${java.failonerror}" fork =" true" jvm = " ${platform.java} " >
968
+ <java classname =" @{classname}" dir =" ${work.dir}" failonerror =" ${java.failonerror}" fork =" true" >
994
969
<jvmarg line =" ${endorsed.classpath.cmd.line.arg}" />
995
970
<jvmarg value =" -Dfile.encoding=${runtime.encoding}" />
996
971
<redirector errorencoding =" ${runtime.encoding}" inputencoding =" ${runtime.encoding}" outputencoding =" ${runtime.encoding}" />
@@ -1224,7 +1199,7 @@ is divided into following sections:
1224
1199
<j2seproject3 : copylibs manifest =" ${tmp.manifest.file}" />
1225
1200
<echo level =" info" >To run this application from the command line without Ant, try:</echo >
1226
1201
<property location =" ${dist.jar}" name =" dist.jar.resolved" />
1227
- <echo level =" info" >${platform. java} -jar "${dist.jar.resolved}"</echo >
1202
+ <echo level =" info" >java -jar "${dist.jar.resolved}"</echo >
1228
1203
</target >
1229
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" >
1230
1205
<j2seproject1 : jar manifest =" ${tmp.manifest.file}" />
@@ -1326,8 +1301,8 @@ is divided into following sections:
1326
1301
<isset property =" main.class.available" />
1327
1302
</and >
1328
1303
</condition >
1329
- <property name =" platform.jlink" value =" ${platform .home}/bin/jlink" />
1330
- <property name =" jlink.systemmodules.internal" value =" ${platform .home}/jmods" />
1304
+ <property name =" platform.jlink" value =" ${jdk .home}/bin/jlink" />
1305
+ <property name =" jlink.systemmodules.internal" value =" ${jdk .home}/jmods" />
1331
1306
<exec executable =" ${platform.jlink}" >
1332
1307
<arg value =" --module-path" />
1333
1308
<arg path =" ${jlink.systemmodules.internal}:${run.modulepath}:${dist.jar}" />
@@ -1520,19 +1495,16 @@ is divided into following sections:
1520
1495
</not >
1521
1496
</and >
1522
1497
</condition >
1523
- <exec executable =" ${platform.java}" failonerror =" false" outputproperty =" platform.version.output" >
1524
- <arg value =" -version" />
1525
- </exec >
1526
1498
<condition else =" " property =" bug5101868workaround" value =" *.java" >
1527
- <matches multiline = " true " pattern =" 1\.[56](\..*)?" string =" ${platform .version.output }" />
1499
+ <matches pattern =" 1\.[56](\..*)?" string =" ${java .version}" />
1528
1500
</condition >
1529
1501
<condition else =" " property =" javadoc.html5.cmd.line.arg" value =" -html5" >
1530
1502
<and >
1531
1503
<isset property =" javadoc.html5" />
1532
- <available file =" ${platform .home}${file.separator}lib${file.separator}jrt-fs.jar" />
1504
+ <available file =" ${jdk .home}${file.separator}lib${file.separator}jrt-fs.jar" />
1533
1505
</and >
1534
1506
</condition >
1535
- <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}" 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}" >
1507
+ <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}" >
1536
1508
<classpath >
1537
1509
<path path =" ${javac.classpath}" />
1538
1510
</classpath >
0 commit comments