--- jsr166/build.xml 2016/03/26 06:22:49 1.200 +++ jsr166/build.xml 2019/06/14 20:10:53 1.299 @@ -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,33 @@ 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 + $HOME/jdk/jdk13 + $HOME/jdk/jdk14 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 + $HOME/jdk/src/jdk13 + $HOME/jdk/src/jdk14 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=... -Djdk$N.src.home=... - for $N in 6 7 8 9 ... + for $N in 8 .. 14 ... - 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. ------------------------------------------------------------------------------ - + @@ -51,7 +59,6 @@ - @@ -62,7 +69,6 @@ - @@ -103,7 +109,7 @@ - + @@ -133,6 +139,11 @@ + + + + + @@ -142,6 +153,11 @@ + + + + + @@ -181,15 +197,24 @@ - - - - - - - - - + + + + + + + + + + + + + + + + + + @@ -197,6 +222,11 @@ + + + + + @@ -219,14 +249,22 @@ - + + - + + + + + + @@ -241,14 +279,16 @@ classpath="${junit.jar}" includeAntRuntime="false" includeJavaRuntime="false" + encoding="ASCII" executable="${javac@{compile-target}}" fork="true"> + - + @@ -259,10 +299,17 @@ jvm="${java@{target}}" fork="true"> - + + + + + + + + - + @@ -279,37 +326,40 @@ - - - - - - - - - - - - - - + + + + + + + + + + + + + - - - - - + + + + + + + + - - + + + @@ -318,29 +368,26 @@ - + - - - - - + workDir="@{workdir}/JTwork"> - + + - + + + @@ -356,28 +403,32 @@ - + + + + + + + + + - - - - - - - - - - + @@ -389,32 +440,33 @@ classpath="" includeAntRuntime="false" includeJavaRuntime="false" + encoding="ASCII" executable="${build.main.javac}" fork="true"> - + - + + + + - - - - - + description="Builds library jar for src/main from compiled sources"> + + - + @@ -432,34 +484,40 @@ + + + + + + source="${build.main.javadoc.source}" + executable="${build.main.javadoc}"> + - + - - - - - - - - - - - - - - + + + + + + + + + + + + + @@ -469,42 +527,16 @@ description="Puts all distributable products in single hierarchy"/> - - - - - - - - - - - - - - - - - - - - - - - - @@ -520,75 +552,180 @@ + 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"/> + + - + + + + + + + + + + + - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - + + + + + + + + + + + + + + + + + + + + + + + + - - - + + + + + + + + + - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + - - - + @@ -606,39 +743,8 @@ - - - - - - - - - - - - - - - - - - - - - - - + description="Compiles all the perf tests in src/test/loops"> @@ -649,7 +755,8 @@ deprecation="${build.deprecation}" includeAntRuntime="false" includeJavaRuntime="false" - executable="${javac9}" + encoding="ASCII" + executable="${build.main.javac}" fork="true"> @@ -657,9 +764,7 @@ - - @@ -682,16 +787,15 @@ bootclasspath="${bootclasspath8}" includeAntRuntime="false" includeJavaRuntime="false" + encoding="ASCII" executable="${javac8}" fork="true"> - - @@ -712,16 +816,15 @@ bootclasspath="${bootclasspath8}" includeAntRuntime="false" includeJavaRuntime="false" + encoding="ASCII" executable="${javac8}" fork="true"> - - + - @@ -737,7 +840,6 @@ - @@ -753,6 +855,7 @@ + @@ -770,8 +873,7 @@ - + description="Runs tck and jtreg tests for jsr166-4jdk8"/> + source="8" + executable="${javadoc8}" + failonerror = "true"> - - - - - - - - + + + + + @@ -812,9 +913,7 @@ - - @@ -830,13 +929,9 @@ + - - - - + @@ -859,14 +955,10 @@ - - - + @@ -889,15 +982,10 @@ - - - - + @@ -905,14 +993,9 @@ - - - - + + - - + + - - + + - - - - - - + @@ -992,7 +1064,8 @@ access="${build.javadoc.access}" sourcepath="${4jdk7src.dir}:${jdk7.src.dir}" classpath="" - executable="${javadoc7}"> + executable="${javadoc7}" + failonerror = "true"> @@ -1001,38 +1074,24 @@ + - - - - - + - - - + - - + - - - + + - - - - - + @@ -1070,13 +1124,9 @@ - - - - + @@ -1087,44 +1137,31 @@ sourcepath="${topsrc.dir}:${jdk6.src.dir}" bootclasspath="${bootclasspath6}" source="5" - executable="${javadoc7}"> + executable="${javadoc7}" + failonerror = "true"> - + - - - - - + - - - + - + - + - - + @@ -1146,15 +1184,10 @@ - - - - + @@ -1162,13 +1195,9 @@ - - - - + @@ -1179,45 +1208,31 @@ sourcepath="${topsrc.dir}:${jdk6.src.dir}" bootclasspath="${bootclasspath6}" source="6" - executable="${javadoc7}"> + executable="${javadoc7}" + failonerror = "true"> - + - - - - - + - - - + - + - - - - + + @@ -1239,15 +1255,10 @@ - - - - + @@ -1255,13 +1266,9 @@ - - - - + @@ -1275,43 +1282,30 @@ executable="${javadoc7}"> - + - - - - - + - - - + - + - + + - - + - - - - - - - + @@ -1376,13 +1362,9 @@ - - - - + @@ -1392,19 +1374,15 @@ access="${build.javadoc.access}" sourcepath="${topsrc.dir}:${jdk6.src.dir}" source="${build.jsr166e.java.version}" - executable="${javadoc7}"> + executable="${javadoc7}" + failonerror = "true"> - - - - + - - + @@ -1434,48 +1411,223 @@ + - - - - - + - + - - + - - - - - + + + + + - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +