--- jsr166/build.xml 2015/09/26 17:58:52 1.183 +++ jsr166/build.xml 2018/01/23 06:09:53 1.263 @@ -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 + $HOME/jdk/jdk11 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 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. ------------------------------------------------------------------------------ - + @@ -62,13 +63,17 @@ - + + + + + @@ -85,16 +90,17 @@ - - - - + + + + + - + - @@ -127,6 +133,8 @@ + + @@ -134,13 +142,16 @@ - + + + + @@ -149,6 +160,7 @@ + @@ -156,6 +168,7 @@ + @@ -164,6 +177,7 @@ + @@ -171,15 +185,18 @@ - - - - - - - + + + + + + + + - + + + @@ -187,6 +204,8 @@ + + @@ -194,12 +213,6 @@ - - - - - - + @@ -225,6 +241,11 @@ + + + + + - + + - + @@ -255,13 +278,21 @@ jvm="${java@{target}}" fork="true"> - + + + + + + + + - + - + + @@ -274,6 +305,18 @@ + + + + + + + + + + + + @@ -283,9 +326,6 @@ - - - @@ -295,38 +335,45 @@ + + + - + + + + + - - - + workDir="@{workdir}/JTwork"> - + + - + + + + @@ -343,27 +390,30 @@ - + + + + + + + + + + + - - - - - - - - - - + @@ -375,16 +425,18 @@ classpath="" includeAntRuntime="false" includeJavaRuntime="false" + encoding="ASCII" executable="${build.main.javac}" fork="true"> - + + + - @@ -394,10 +446,11 @@ - + description="Builds library jar for src/main from compiled sources"> + + - + @@ -415,29 +468,42 @@ + + + + + + source="9" + executable="${build.main.javadoc}"> - + + + + + - - - + - + + + + + + @@ -471,18 +537,14 @@ - - - - @@ -498,31 +560,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,8 +664,8 @@ - + + @@ -599,6 +675,8 @@ debuglevel="${build.debuglevel}" deprecation="${build.deprecation}" source="${build.sourcelevel}" + target="${build.sourcelevel}" + encoding="ASCII" fork="true"> @@ -610,12 +688,11 @@ - + description="Compiles all the perf tests in src/test/loops"> @@ -626,7 +703,8 @@ deprecation="${build.deprecation}" includeAntRuntime="false" includeJavaRuntime="false" - executable="${javac9}" + encoding="ASCII" + executable="${build.main.javac}" fork="true"> @@ -634,18 +712,178 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - + - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + @@ -667,14 +907,10 @@ - - - + @@ -696,15 +934,10 @@ - - - - + @@ -712,14 +945,9 @@ - - - - + + - - + + - - + + - - - - - - + @@ -797,9 +1014,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"> @@ -808,38 +1026,24 @@ + - - - - - + - - - + - - + - - - + + - - - - - + @@ -876,13 +1076,9 @@ - - - - + @@ -890,47 +1086,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"> - + - - - - - + - - - + - + - + - - + @@ -951,15 +1136,10 @@ - - - - + @@ -967,13 +1147,9 @@ - - - - + @@ -981,48 +1157,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"> - + - - - - - + - - - + - + - - - - + + @@ -1043,15 +1207,10 @@ - - - - + @@ -1059,13 +1218,9 @@ - - - - + @@ -1073,49 +1228,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}"> - + - - - - - + - - - + - + - + + - - + - - - - - - - + @@ -1178,13 +1314,9 @@ - - - - + @@ -1192,21 +1324,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"> - - - - + - - + @@ -1236,30 +1363,20 @@ + - - - - - + - + - - + @@ -1280,4 +1397,168 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +