--- jsr166/build.xml 2015/09/13 17:46:07 1.182 +++ jsr166/build.xml 2018/10/27 01:16:23 1.284 @@ -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,29 @@ 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/jdk10 + $HOME/jdk/jdk11 + $HOME/jdk/jdk12 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 + $HOME/jdk/src/jdk10 + $HOME/jdk/src/jdk11 + $HOME/jdk/src/jdk12 where each of the above is a complete JDK source tree (e.g. mercurial forest) or a symlink to same. Alternatively, define ant variables thus: - ant -Djdk$N.home=... - for $N in 6 7 8 9 ... + ant -Djdk$N.home=... -Djdk$N.src.home=... + for $N in 8 9 10 ... - 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.dir="$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. ------------------------------------------------------------------------------ - + @@ -51,35 +55,27 @@ - - - - - - - - + + + + + @@ -96,19 +92,20 @@ - - - - + + + + + - + - - + @@ -138,6 +135,9 @@ + + + @@ -145,13 +145,17 @@ - + + + + + @@ -160,6 +164,7 @@ + @@ -167,6 +172,7 @@ + @@ -175,6 +181,7 @@ + @@ -182,15 +189,23 @@ - - - - - - - + + + + + + + + + + + + + - + + + @@ -198,6 +213,9 @@ + + + @@ -205,26 +223,37 @@ - - - - - - + + - + + - + + + + + + @@ -239,14 +268,16 @@ classpath="${junit.jar}" includeAntRuntime="false" includeJavaRuntime="false" + encoding="ASCII" executable="${javac@{compile-target}}" fork="true"> - + + - + @@ -257,17 +288,23 @@ jvm="${java@{target}}" fork="true"> - + + + + + + + + - - + + + + - - - @@ -278,59 +315,66 @@ - - - - - + + + + + + + + + + + + + - - - - - - - - + + + + + + - - - - - + + - + + + + + - + - - - + workDir="@{workdir}/JTwork"> - + + - + + + + @@ -346,28 +390,26 @@ - + + + + + + + + - - - - - - - - - - + @@ -379,16 +421,18 @@ classpath="" includeAntRuntime="false" includeJavaRuntime="false" + encoding="ASCII" executable="${build.main.javac}" fork="true"> - + - + + + - @@ -398,10 +442,11 @@ - + description="Builds library jar for src/main from compiled sources"> + + - + @@ -419,29 +464,37 @@ + + + + + + source="11" + executable="${build.main.javadoc}"> - + - - - - - - - - - + + + + + + + + + + + @@ -451,42 +504,16 @@ description="Puts all distributable products in single hierarchy"/> - - - - - - - - - - - - - - - - - - - - - - - - @@ -502,31 +529,42 @@ + 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"> + + + + + + + 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"/> - + + - - - + + + + + + + + + + + + + + + + + + - + + + + + + + + + + + + - - - + + + + + + + + + - - + + + + + + - + + + + + + + + + + + - - - + @@ -588,68 +670,195 @@ + - - + - + - + + + + + + + - - - - + - + - - - + + + + + + + + + + - - - + - - - + + - - + + - + + + + + + + + + + + - + - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + @@ -671,14 +882,10 @@ - - - + @@ -700,15 +909,10 @@ - - - - + @@ -716,14 +920,9 @@ - - - - + + - - + + - - + + - - - - - - + @@ -801,9 +989,10 @@ link="${java7.api.url}" overview="${4jdk7src.dir}/intro.html" access="${build.javadoc.access}" - sourcepath="${4jdk7src.dir}:${jdk7src.dir}" + sourcepath="${4jdk7src.dir}:${jdk7.src.dir}" classpath="" - executable="${javadoc7}"> + executable="${javadoc7}" + failonerror = "true"> @@ -812,38 +1001,24 @@ + - - - - - + - - - + - - + - - - + + - - - - - + @@ -880,13 +1051,9 @@ - - - - + @@ -894,47 +1061,34 @@ packagenames="jsr166x.*" link="${java.api.url}" access="${build.javadoc.access}" - sourcepath="${topsrc.dir}:${jdk6src.dir}" + sourcepath="${topsrc.dir}:${jdk6.src.dir}" bootclasspath="${bootclasspath6}" source="5" - executable="${javadoc7}"> + executable="${javadoc7}" + failonerror = "true"> - + - - - - - + - - - + - + - + - - + @@ -955,15 +1111,10 @@ - - - - + @@ -971,13 +1122,9 @@ - - - - + @@ -985,48 +1132,34 @@ packagenames="jsr166y.*" link="${java.api.url}" access="${build.javadoc.access}" - sourcepath="${topsrc.dir}:${jdk6src.dir}" + sourcepath="${topsrc.dir}:${jdk6.src.dir}" bootclasspath="${bootclasspath6}" source="6" - executable="${javadoc7}"> + executable="${javadoc7}" + failonerror = "true"> - + - - - - - + - - - + - + - - - - + + @@ -1047,15 +1182,10 @@ - - - - + @@ -1063,13 +1193,9 @@ - - - - + @@ -1077,49 +1203,36 @@ packagenames="extra166y.*" link="${java.api.url}" access="${build.javadoc.access}" - sourcepath="${topsrc.dir}:${jdk6src.dir}" + sourcepath="${topsrc.dir}:${jdk6.src.dir}" bootclasspath="${bootclasspath6}" source="6" executable="${javadoc7}"> - + - - - - - + - - - + - + - + + - - + - - - - - - - + @@ -1182,13 +1289,9 @@ - - - - + @@ -1196,21 +1299,17 @@ packagenames="jsr166e.*" link="${java.api.url}" access="${build.javadoc.access}" - sourcepath="${topsrc.dir}:${jdk6src.dir}" + sourcepath="${topsrc.dir}:${jdk6.src.dir}" source="${build.jsr166e.java.version}" - executable="${javadoc7}"> + executable="${javadoc7}" + failonerror = "true"> - - - - + - - + @@ -1240,48 +1338,211 @@ + - - - - - + - + - - + - - - - - + + + + + - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +