--- jsr166/build.xml 2016/03/26 06:22:49 1.200 +++ jsr166/build.xml 2017/03/24 16:33:02 1.238 @@ -1,5 +1,6 @@ + xmlns:if="ant:if" xmlns:unless="ant:unless" + xmlns:ivy="antlib:org.apache.ivy.ant"> ------------------------------------------------------------------------------ @@ -7,6 +8,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 +18,27 @@ 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 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 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 7 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.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. ------------------------------------------------------------------------------ - + @@ -62,7 +63,6 @@ - @@ -133,6 +133,7 @@ + @@ -142,6 +143,7 @@ + @@ -185,9 +187,9 @@ - + - + @@ -219,7 +221,10 @@ - + + @@ -229,6 +234,11 @@ + + + + + + - + @@ -259,10 +271,17 @@ jvm="${java@{target}}" fork="true"> - + + + + + + + + - + @@ -288,9 +307,6 @@ - - - @@ -322,19 +338,15 @@ - - - - - + workDir="@{workdir}/JTwork"> - + + + @@ -389,32 +401,31 @@ classpath="" includeAntRuntime="false" includeJavaRuntime="false" + encoding="ASCII" executable="${build.main.javac}" fork="true"> - + - + - - - - + description="Builds library jar for src/main from compiled sources"> + + - + @@ -432,12 +443,17 @@ + + + + + @@ -446,20 +462,21 @@ - + + + + - - - - - - - - + - + + + + + + @@ -520,31 +537,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"> - + - - - - + + + + - + - + + - - - - - + + + + + - - - - - + + + + + - + - - - + @@ -610,8 +636,8 @@ - + + @@ -622,6 +648,7 @@ deprecation="${build.deprecation}" source="${build.sourcelevel}" target="${build.sourcelevel}" + encoding="ASCII" fork="true"> @@ -649,6 +676,7 @@ deprecation="${build.deprecation}" includeAntRuntime="false" includeJavaRuntime="false" + encoding="ASCII" executable="${javac9}" fork="true"> @@ -682,6 +710,7 @@ bootclasspath="${bootclasspath8}" includeAntRuntime="false" includeJavaRuntime="false" + encoding="ASCII" executable="${javac8}" fork="true"> @@ -712,6 +741,7 @@ bootclasspath="${bootclasspath8}" includeAntRuntime="false" includeJavaRuntime="false" + encoding="ASCII" executable="${javac8}" fork="true"> @@ -719,7 +749,7 @@ - + @@ -753,6 +783,7 @@ + @@ -787,7 +818,8 @@ access="${build.javadoc.access}" sourcepath="${4jdk8src.dir}:${jdk8.src.dir}" classpath="" - executable="${javadoc8}"> + executable="${javadoc8}" + failonerror = "true"> @@ -795,8 +827,9 @@ - - + + + @@ -850,6 +883,7 @@ bootclasspath="${bootclasspath6}" includeAntRuntime="false" includeJavaRuntime="false" + encoding="ASCII" executable="${javac7}" fork="true"> @@ -880,6 +914,7 @@ bootclasspath="${bootclasspath6}" includeAntRuntime="false" includeJavaRuntime="false" + encoding="ASCII" executable="${javac8}" fork="true"> @@ -930,14 +965,15 @@ + + + depends="4jdk7compile"> + executable="${javadoc7}" + failonerror = "true"> @@ -1046,6 +1083,7 @@ target="5" includeAntRuntime="false" includeJavaRuntime="false" + encoding="ASCII" executable="${javac7}" fork="true"> @@ -1087,7 +1125,8 @@ sourcepath="${topsrc.dir}:${jdk6.src.dir}" bootclasspath="${bootclasspath6}" source="5" - executable="${javadoc7}"> + executable="${javadoc7}" + failonerror = "true"> @@ -1138,6 +1177,7 @@ bootclasspath="${bootclasspath6}" includeAntRuntime="false" includeJavaRuntime="false" + encoding="ASCII" executable="${javac7}" fork="true"> @@ -1179,7 +1219,8 @@ sourcepath="${topsrc.dir}:${jdk6.src.dir}" bootclasspath="${bootclasspath6}" source="6" - executable="${javadoc7}"> + executable="${javadoc7}" + failonerror = "true"> @@ -1231,6 +1272,7 @@ target="6" includeAntRuntime="false" includeJavaRuntime="false" + encoding="ASCII" executable="${javac7}" fork="true"> @@ -1392,7 +1434,8 @@ access="${build.javadoc.access}" sourcepath="${topsrc.dir}:${jdk6.src.dir}" source="${build.jsr166e.java.version}" - executable="${javadoc7}"> + executable="${javadoc7}" + failonerror = "true"> @@ -1478,4 +1521,153 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +