--- jsr166/build.xml 2016/03/25 03:36:15 1.199 +++ jsr166/build.xml 2022/11/25 20:33:50 1.327 @@ -1,5 +1,7 @@ + xmlns:if="ant:if" + xmlns:unless="ant:unless" + xmlns:ivy="antlib:org.apache.ivy.ant"> ------------------------------------------------------------------------------ @@ -7,6 +9,9 @@ Usage: ant [target] + See http://gee.cs.oswego.edu/dl/concurrency-interest/index.html for + more details. + User-specific settings are read from user.properties. See user.properties.sample for an explanation of some useful settings. @@ -14,30 +19,24 @@ itself. Because the JDK version matters and because different targets require different JDKs, we assume that users have created a hierarchy containing: - $HOME/jdk/jdk6 - $HOME/jdk/jdk7 - $HOME/jdk/jdk8 - $HOME/jdk/jdk9 + $HOME/jdk/jdk17 + $HOME/jdk/jdk19 where each of the above is a JDK or a symlink to same, and - $HOME/jdk/src/jdk6 - $HOME/jdk/src/jdk7 - $HOME/jdk/src/jdk8 - $HOME/jdk/src/jdk9 - where each of the above is a complete JDK source tree - (e.g. mercurial forest) or a symlink to same. + $HOME/jdk/src/jdk17 + where each of the above is a JDK source tree or a symlink to same. Alternatively, define ant variables thus: ant -Djdk$N.home=... -Djdk$N.src.home=... - for $N in 6 7 8 9 ... + for $N in 17 .. 19 ... - As of 2015-09, there is incomplete hacky support for jigsaw - Build for jigsaw using something like: - ant -Djdk9.home="$HOME/jdk/jigsaw" -Djdk9.src.home="$HOME/jdk/src/jigsaw" clean test dist - "docs" target is still broken. + As of 2016-03, the sources in src/main are for jdk9+ only. + As of 2019-08, the sources in src/main are for jdk11+ only. + As of 2019-10, compatibility support for jdk8 is dropped entirely. + As of 2022-02, the sources in src/main are for jdk17+ only. ------------------------------------------------------------------------------ - + @@ -51,7 +50,6 @@ - @@ -62,22 +60,6 @@ - - - - - - - - - - - - - - - - @@ -90,25 +72,7 @@ - - - - - - - - - - - - - - - - + @@ -124,70 +88,47 @@ - - - - + + + + - - - - + + + + + - - - - - - - - - - - - - - - - - + - - - - - - - - - - - - - - + + + + + + + - - - - - + + + + @@ -195,7 +136,7 @@ - + - - - - - - - + + @@ -249,89 +189,93 @@ failonerror="true" jvm="${java@{target}}" fork="true"> - - - + + + + + + + + + - - - - - - - - - - + + + + + + + + + + - - - - - - - - - - - - - - + + + + + + + + + + + + + - - - - - + + + + - - + + - - - - + + + + + - - - - - - + + workDir="@{workdir}/JTwork"> - - - - + + + + + + + + + @@ -342,33 +286,30 @@ + - - + + + + + + + - - - - - - - - - - + @@ -380,32 +321,30 @@ classpath="" includeAntRuntime="false" includeJavaRuntime="false" + encoding="ASCII" executable="${build.main.javac}" fork="true"> - + - + + - - - - - - + description="Builds library jar for src/main from compiled sources"> + + - + @@ -416,89 +355,52 @@ - - + - - - - + source="${build.main.javadoc.source}" + executable="${build.main.javadoc}"> - + - + + + - - - - - - - - - - - - - - + + + + + + + + + - - - - - - - - - - - - - - - - - - - - - - - - - - - - @@ -510,76 +412,84 @@ - + depends="jar" + description="Runs tck tests for src/main directly"> + classes="${product.jar}"> + + + + + description="Runs tck with common pool parallelism 1"> + description="Runs tck with common pool parallelism 0"> + + + + + + + depends="jar" + description="Runs jtreg tests for src/main using the jtreg ant task"> - - - + depends="tck, tck-parallelism-1, tck-parallelism-0, jtreg" + description="Runs tck and jtreg tests for src/main"/> - - - + + + + + + + + + + + + - - - - - - - - + + + + + + + + + - - - - - - - - - - - + @@ -597,39 +507,8 @@ - - - - - - - - - - - - - - - - - - - - - - - + description="Compiles all the perf tests in src/test/loops"> @@ -640,665 +519,231 @@ deprecation="${build.deprecation}" includeAntRuntime="false" includeJavaRuntime="false" - executable="${javac9}" + encoding="ASCII" + executable="${build.main.javac}" fork="true"> - - + + - - - + + + + + + + - - - - - + - - - - - - + + + + + - + + + + + - - + + + + + + + + + + + + + + + + + + + - + + + + + + + - + + + - - - - - - - - - - - + + - - - - - + target="${java.runtime.target}" + workdir="${build.dir}" + classes="${product.jar}"> - - - - - - - - - - - - + + + + + + + + + + - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - - + + - - - - - + + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -