23 |
$HOME/jdk/jdk12 |
$HOME/jdk/jdk12 |
24 |
$HOME/jdk/jdk13 |
$HOME/jdk/jdk13 |
25 |
$HOME/jdk/jdk14 |
$HOME/jdk/jdk14 |
26 |
|
$HOME/jdk/jdk15 |
27 |
where each of the above is a JDK or a symlink to same, and |
where each of the above is a JDK or a symlink to same, and |
28 |
$HOME/jdk/src/jdk11 |
$HOME/jdk/src/jdk11 |
29 |
$HOME/jdk/src/jdk12 |
$HOME/jdk/src/jdk12 |
30 |
$HOME/jdk/src/jdk13 |
$HOME/jdk/src/jdk13 |
31 |
$HOME/jdk/src/jdk14 |
$HOME/jdk/src/jdk14 |
32 |
|
$HOME/jdk/src/jdk15 |
33 |
where each of the above is a JDK source tree or a symlink to same. |
where each of the above is a JDK source tree or a symlink to same. |
34 |
|
|
35 |
Alternatively, define ant variables thus: |
Alternatively, define ant variables thus: |
36 |
ant -Djdk$N.home=... -Djdk$N.src.home=... |
ant -Djdk$N.home=... -Djdk$N.src.home=... |
37 |
for $N in 11 .. 14 ... |
for $N in 11 .. 15 ... |
38 |
|
|
39 |
As of 2016-03, the sources in src/main are for jdk9+ only. |
As of 2016-03, the sources in src/main are for jdk9+ only. |
40 |
As of 2019-08, the sources in src/main are for jdk11+ only. |
As of 2019-08, the sources in src/main are for jdk11+ only. |
98 |
<defjdklocations v="12"/> |
<defjdklocations v="12"/> |
99 |
<defjdklocations v="13"/> |
<defjdklocations v="13"/> |
100 |
<defjdklocations v="14"/> |
<defjdklocations v="14"/> |
101 |
|
<defjdklocations v="15"/> |
102 |
|
|
103 |
<!-- Source locations --> |
<!-- Source locations --> |
104 |
<property name="src.dir" location="${basedir}/src/main"/> |
<property name="src.dir" location="${basedir}/src/main"/> |
109 |
<property name="jtreg12.src.dir" location="${test.src.dir}/jtreg"/> |
<property name="jtreg12.src.dir" location="${test.src.dir}/jtreg"/> |
110 |
<property name="jtreg13.src.dir" location="${test.src.dir}/jtreg"/> |
<property name="jtreg13.src.dir" location="${test.src.dir}/jtreg"/> |
111 |
<property name="jtreg14.src.dir" location="${test.src.dir}/jtreg"/> |
<property name="jtreg14.src.dir" location="${test.src.dir}/jtreg"/> |
112 |
|
<property name="jtreg15.src.dir" location="${test.src.dir}/jtreg"/> |
113 |
<property name="jtreg.src.dir" location="${jtreg11.src.dir}"/> |
<property name="jtreg.src.dir" location="${jtreg11.src.dir}"/> |
114 |
<property name="lib.dir" location="${basedir}/lib"/> |
<property name="lib.dir" location="${basedir}/lib"/> |
115 |
<property name="dist.dir" location="${basedir}/dist"/> |
<property name="dist.dir" location="${basedir}/dist"/> |
137 |
<property name="java12.docroot.url" value="https://docs.oracle.com/en/java/javase/12/docs"/> |
<property name="java12.docroot.url" value="https://docs.oracle.com/en/java/javase/12/docs"/> |
138 |
<property name="java13.docroot.url" value="https://docs.oracle.com/en/java/javase/13/docs"/> |
<property name="java13.docroot.url" value="https://docs.oracle.com/en/java/javase/13/docs"/> |
139 |
<property name="java14.docroot.url" value="https://download.java.net/java/early_access/jdk14/docs"/> |
<property name="java14.docroot.url" value="https://download.java.net/java/early_access/jdk14/docs"/> |
140 |
|
<property name="java15.docroot.url" value="https://download.java.net/java/early_access/jdk15/docs"/> |
141 |
<!-- Default jdk doc location (latest stable LTS release seems best) --> |
<!-- Default jdk doc location (latest stable LTS release seems best) --> |
142 |
<property name="java.docroot.url" value="${java11.docroot.url}"/> |
<property name="java.docroot.url" value="${java11.docroot.url}"/> |
143 |
|
|
146 |
<property name="java12.api.url" value="${java12.docroot.url}/api/"/> |
<property name="java12.api.url" value="${java12.docroot.url}/api/"/> |
147 |
<property name="java13.api.url" value="${java13.docroot.url}/api/"/> |
<property name="java13.api.url" value="${java13.docroot.url}/api/"/> |
148 |
<property name="java14.api.url" value="${java14.docroot.url}/api/"/> |
<property name="java14.api.url" value="${java14.docroot.url}/api/"/> |
149 |
|
<property name="java15.api.url" value="${java15.docroot.url}/api/"/> |
150 |
<property name="java.api.url" value="${java.docroot.url}/api/"/> |
<property name="java.api.url" value="${java.docroot.url}/api/"/> |
151 |
|
|
152 |
<!-- Define the "jtreg" task --> |
<!-- Define the "jtreg" task --> |
248 |
</sequential> |
</sequential> |
249 |
</macrodef> |
</macrodef> |
250 |
|
|
251 |
|
<defjtregtests v="15"/> |
252 |
<defjtregtests v="14"/> |
<defjtregtests v="14"/> |
253 |
<defjtregtests v="13"/> |
<defjtregtests v="13"/> |
254 |
<defjtregtests v="12"/> |
<defjtregtests v="12"/> |
278 |
<patternset refid="jdk@{target}.jtreg.tests"/> |
<patternset refid="jdk@{target}.jtreg.tests"/> |
279 |
<arg value="-javacoptions:--patch-module=java.base=@{classes}"/> |
<arg value="-javacoptions:--patch-module=java.base=@{classes}"/> |
280 |
<arg value="-vmoptions:--patch-module=java.base=@{classes}"/> |
<arg value="-vmoptions:--patch-module=java.base=@{classes}"/> |
281 |
|
<arg value="-vmoptions:${vmoptions}" if:set="vmoptions"/> |
282 |
<arg value="-agentvm"/> |
<arg value="-agentvm"/> |
283 |
<arg value="-noreport"/> |
<arg value="-noreport"/> |
284 |
<arg value="-verbose:@{verbose}"/> |
<arg value="-verbose:@{verbose}"/> |
507 |
description="Runs tck and jtreg tests for src/main"/> |
description="Runs tck and jtreg tests for src/main"/> |
508 |
|
|
509 |
<target name="test-version-permutations" |
<target name="test-version-permutations" |
510 |
depends="test11, test12, test13, test14, test11-12, test11-13, test11-14, clean, test, docs"> |
depends="test11, test12, test13, test14, test15, test11-12, test11-13, test11-14, test11-15, clean, test, docs" |
511 |
</target> |
description="Runs tck and jtreg tests for various build-time and runtime java versions"/> |
512 |
|
|
513 |
<target name="test11"> |
<target name="test11"> |
514 |
<antcall> |
<antcall> |
558 |
</antcall> |
</antcall> |
559 |
</target> |
</target> |
560 |
|
|
561 |
|
<target name="test15"> |
562 |
|
<antcall> |
563 |
|
<param name="java.runtime.target" value="15"/> |
564 |
|
<param name="build.main.javac" value="${javac15}"/> |
565 |
|
<param name="build.main.javadoc" value="${javadoc15}"/> |
566 |
|
<param name="build.main.javadoc.source" value="15"/> |
567 |
|
<target name="clean"/> |
568 |
|
<target name="test"/> |
569 |
|
<target name="docs"/> |
570 |
|
</antcall> |
571 |
|
</target> |
572 |
|
|
573 |
<target name="test11-12"> |
<target name="test11-12"> |
574 |
<antcall> |
<antcall> |
575 |
<param name="java.runtime.target" value="12"/> |
<param name="java.runtime.target" value="12"/> |
606 |
</antcall> |
</antcall> |
607 |
</target> |
</target> |
608 |
|
|
609 |
|
<target name="test11-15"> |
610 |
|
<antcall> |
611 |
|
<param name="java.runtime.target" value="15"/> |
612 |
|
<param name="build.main.javac" value="${javac11}"/> |
613 |
|
<param name="build.main.javadoc" value="${javadoc15}"/> |
614 |
|
<param name="build.main.javadoc.source" value="11"/> |
615 |
|
<target name="clean"/> |
616 |
|
<target name="test"/> |
617 |
|
<target name="docs"/> |
618 |
|
</antcall> |
619 |
|
</target> |
620 |
|
|
621 |
|
|
622 |
<target name="configure-compiler"> |
<target name="configure-compiler"> |
623 |
<fail message="ant version too old"> |
<fail message="ant version too old"> |
695 |
https://github.com/google/error-prone/issues/1143 |
https://github.com/google/error-prone/issues/1143 |
696 |
=================================================================== --> |
=================================================================== --> |
697 |
<path id="errorprone.processorpath.path"> |
<path id="errorprone.processorpath.path"> |
698 |
<pathelement location="${lib.dir}/error_prone_core-2.3.2-with-dependencies.jar"/> |
<pathelement location="${lib.dir}/error_prone_core-2.3.4-with-dependencies.jar"/> |
699 |
<pathelement location="${lib.dir}/dataflow-2.5.7.jar"/> |
<pathelement location="${lib.dir}/dataflow-2.5.7.jar"/> |
700 |
<pathelement location="${lib.dir}/javacutil-2.5.7.jar"/> |
<pathelement location="${lib.dir}/javacutil-2.5.7.jar"/> |
701 |
<pathelement location="${lib.dir}/jFormatString-3.0.0.jar"/> |
<pathelement location="${lib.dir}/jFormatString-3.0.0.jar"/> |
702 |
|
<pathelement location="${lib.dir}/caffeine-2.8.0.jar"/> |
703 |
</path> |
</path> |
704 |
<property name="errorprone.processorpath" refid="errorprone.processorpath.path" /> |
<property name="errorprone.processorpath" refid="errorprone.processorpath.path" /> |
705 |
<property name="errorprone.jsr166.user.flags" value=""/> |
<property name="errorprone.jsr166.user.flags" value=""/> |