--- jsr166/build.xml 2015/09/11 18:43:46 1.177 +++ jsr166/build.xml 2017/02/18 18:33:42 1.234 @@ -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,25 +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=... - for $N in 6 7 8 9 ... + ant -Djdk$N.home=... -Djdk$N.src.home=... + for $N in 7 8 9 10 ... + + As of 2016-03, the sources in src/main are for jdk9+ only. ------------------------------------------------------------------------------ - + @@ -52,29 +58,22 @@ - - - - - - - + + + + + @@ -91,26 +90,30 @@ - - - - - - - + + + + + + + + + + + - - + + - + @@ -130,6 +133,7 @@ + @@ -137,13 +141,15 @@ - + + + @@ -152,6 +158,7 @@ + @@ -159,6 +166,7 @@ + @@ -167,6 +175,7 @@ + @@ -178,9 +187,9 @@ - + - + @@ -197,22 +206,34 @@ - - - - - - + + - + + + + + + + + - - + + + @@ -241,17 +264,24 @@ failonerror="true" jvm="${java@{target}}" fork="true"> - + + + + + + + + + - - + + + + - - - @@ -271,9 +301,6 @@ - - - @@ -283,6 +310,9 @@ + + + @@ -290,23 +320,33 @@ + + + + + + + + + + - - - + workDir="@{workdir}/JTwork"> - + + + - + + + @@ -326,27 +366,41 @@ - + + + + + + + + + + + + + + @@ -361,10 +415,15 @@ - + description="Builds library jar for src/main from compiled sources"> + + - + + + + + @@ -378,12 +437,17 @@ + + + + + @@ -392,14 +456,21 @@ + + + + - - - + - + + + + + + @@ -423,6 +494,10 @@ + + + + @@ -456,7 +531,7 @@ + description="Runs tck tests for src/main directly"> + 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"> - + - - - - + + + + - + - + + - - - - - + + + + + - - - - - + + + + + - + + + + + + @@ -541,8 +628,8 @@ - + + @@ -552,6 +639,8 @@ debuglevel="${build.debuglevel}" deprecation="${build.deprecation}" source="${build.sourcelevel}" + target="${build.sourcelevel}" + encoding="ASCII" fork="true"> @@ -579,6 +668,7 @@ deprecation="${build.deprecation}" includeAntRuntime="false" includeJavaRuntime="false" + encoding="ASCII" executable="${javac9}" fork="true"> @@ -593,6 +683,178 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + @@ -636,10 +900,12 @@ debuglevel="${build.debuglevel}" deprecation="${build.deprecation}" source="6" + target="6" classpath="" - bootclasspath="${bootclasspath7}" + bootclasspath="${bootclasspath6}" includeAntRuntime="false" includeJavaRuntime="false" + encoding="ASCII" executable="${javac8}" fork="true"> @@ -660,6 +926,10 @@ + + + + @@ -691,9 +961,9 @@ + + depends="4jdk7compile"> + executable="${javadoc7}" + failonerror = "true"> @@ -799,8 +1070,10 @@ classpath="" bootclasspath="${bootclasspath6}" source="5" + target="5" includeAntRuntime="false" includeJavaRuntime="false" + encoding="ASCII" executable="${javac7}" fork="true"> @@ -820,6 +1093,10 @@ + + + + @@ -835,10 +1112,11 @@ 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"> @@ -884,10 +1162,12 @@ debuglevel="${build.debuglevel}" deprecation="${build.deprecation}" source="6" + target="6" classpath="" bootclasspath="${bootclasspath6}" includeAntRuntime="false" includeJavaRuntime="false" + encoding="ASCII" executable="${javac7}" fork="true"> @@ -907,6 +1187,10 @@ + + + + @@ -922,10 +1206,11 @@ 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"> @@ -974,8 +1259,10 @@ bootclasspath="@{jsr166y.jar}:${bootclasspath6}" classpath="" source="6" + target="6" includeAntRuntime="false" includeJavaRuntime="false" + encoding="ASCII" executable="${javac7}" fork="true"> @@ -995,6 +1282,10 @@ + + + + @@ -1010,7 +1301,7 @@ 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}"> @@ -1061,6 +1352,7 @@ debuglevel="${build.debuglevel}" deprecation="${build.deprecation}" source="${build.jsr166e.java.version}" + target="${build.jsr166e.java.version}" classpath="" includeAntRuntime="false" includeJavaRuntime="false" @@ -1087,8 +1379,9 @@ debuglevel="${build.debuglevel}" deprecation="${build.deprecation}" source="${build.jsr166e.java.version}" + target="${build.jsr166e.java.version}" classpath="" - bootclasspath="${bootclasspath7}" + bootclasspath="${bootclasspath6}" includeAntRuntime="false" includeJavaRuntime="false" executable="${javac8}" @@ -1110,6 +1403,10 @@ + + + + @@ -1125,9 +1422,10 @@ 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"> @@ -1212,5 +1510,69 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +