--- jsr166/build.xml 2016/03/26 12:35:25 1.201 +++ jsr166/build.xml 2018/02/04 20:00:47 1.265 @@ -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=... -Djdk$N.src.home=... - for $N in 6 7 8 9 ... + 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.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,8 @@ + + @@ -142,6 +144,8 @@ + + @@ -181,15 +185,18 @@ - - - - - - - + + + + + + + + - + + + @@ -197,6 +204,8 @@ + + @@ -232,6 +241,11 @@ + + + + + + - + @@ -262,10 +278,17 @@ jvm="${java@{target}}" fork="true"> - + + + + + + + + - + @@ -282,6 +305,18 @@ + + + + + + + + + + + + @@ -291,9 +326,6 @@ - - - @@ -308,11 +340,12 @@ - + + @@ -325,25 +358,22 @@ - - - - - + workDir="@{workdir}/JTwork"> - + + - + + + @@ -360,27 +390,36 @@ - + + + + + + + + + + + + + + - - - - - - - - - - + @@ -392,34 +431,32 @@ classpath="" includeAntRuntime="false" includeJavaRuntime="false" + encoding="ASCII" executable="${build.main.javac}" fork="true"> - + + + - - - - - + description="Builds library jar for src/main from compiled sources"> + + - + @@ -437,34 +474,37 @@ + + + + + + source="9" + executable="${build.main.javadoc}"> - - - - - - - - - - - - - - + + + + + + + + + + + @@ -498,18 +538,14 @@ - - - - @@ -525,31 +561,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"/> - + - - - - + + + + - + - + - - + - - + + + + + + + + + - - - + @@ -615,8 +665,8 @@ - + + @@ -627,6 +677,7 @@ deprecation="${build.deprecation}" source="${build.sourcelevel}" target="${build.sourcelevel}" + encoding="ASCII" fork="true"> @@ -638,12 +689,11 @@ - + description="Compiles all the perf tests in src/test/loops"> @@ -654,7 +704,8 @@ deprecation="${build.deprecation}" includeAntRuntime="false" includeJavaRuntime="false" - executable="${javac9}" + encoding="ASCII" + executable="${build.main.javac}" fork="true"> @@ -662,9 +713,7 @@ - - @@ -687,16 +736,15 @@ bootclasspath="${bootclasspath8}" includeAntRuntime="false" includeJavaRuntime="false" + encoding="ASCII" executable="${javac8}" fork="true"> - - @@ -717,16 +765,15 @@ bootclasspath="${bootclasspath8}" includeAntRuntime="false" includeJavaRuntime="false" + encoding="ASCII" executable="${javac8}" fork="true"> - - + - @@ -742,7 +789,6 @@ - @@ -758,6 +804,7 @@ + @@ -775,8 +822,7 @@ - + description="Runs tck and jtreg tests for jsr166-4jdk8"/> + source="8" + executable="${javadoc8}" + failonerror = "true"> - - - - - - - - + + + + + @@ -817,9 +862,7 @@ - - @@ -835,13 +878,9 @@ + - - - - + @@ -864,14 +904,10 @@ - - - + @@ -894,15 +931,10 @@ - - - - + @@ -910,14 +942,9 @@ - - - - + + - - + + - - + + - - - - - - + @@ -997,7 +1013,8 @@ access="${build.javadoc.access}" sourcepath="${4jdk7src.dir}:${jdk7.src.dir}" classpath="" - executable="${javadoc7}"> + executable="${javadoc7}" + failonerror = "true"> @@ -1006,38 +1023,24 @@ + - - - - - + - - - + - - + - - - + + - - - - - + @@ -1075,13 +1073,9 @@ - - - - + @@ -1092,44 +1086,31 @@ sourcepath="${topsrc.dir}:${jdk6.src.dir}" bootclasspath="${bootclasspath6}" source="5" - executable="${javadoc7}"> + executable="${javadoc7}" + failonerror = "true"> - + - - - - - + - - - + - + - - - + + @@ -1151,15 +1133,10 @@ - - - - + @@ -1167,13 +1144,9 @@ - - - - + @@ -1184,45 +1157,31 @@ sourcepath="${topsrc.dir}:${jdk6.src.dir}" bootclasspath="${bootclasspath6}" source="6" - executable="${javadoc7}"> + executable="${javadoc7}" + failonerror = "true"> - + - - - - - + - - - + - + - - - - + + @@ -1244,15 +1204,10 @@ - - - - + @@ -1260,13 +1215,9 @@ - - - - + @@ -1280,43 +1231,30 @@ executable="${javadoc7}"> - + - - - - - + - - - + - + - + + - - + - - - - - - - + @@ -1381,13 +1311,9 @@ - - - - + @@ -1397,19 +1323,15 @@ access="${build.javadoc.access}" sourcepath="${topsrc.dir}:${jdk6.src.dir}" source="${build.jsr166e.java.version}" - executable="${javadoc7}"> + executable="${javadoc7}" + failonerror = "true"> - - - - + - - + @@ -1439,30 +1360,20 @@ + - - - - - + - + - - + @@ -1483,4 +1394,170 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +