38 |
------------------------------------------------------------------------------ |
------------------------------------------------------------------------------ |
39 |
</description> |
</description> |
40 |
|
|
41 |
<!-- Display main targets by running 'ant -projecthelp' --> |
<!-- Run 'ant -projecthelp' (default target) --> |
42 |
<target name="usage"> |
<target name="usage"> |
43 |
<java classname="org.apache.tools.ant.Main"> |
<java classname="org.apache.tools.ant.Main"> |
44 |
<arg value="-projecthelp" /> |
<arg value="-projecthelp" /> |
186 |
<property name="java6.docroot.url" value="http://docs.oracle.com/javase/6/docs"/> |
<property name="java6.docroot.url" value="http://docs.oracle.com/javase/6/docs"/> |
187 |
<property name="java7.docroot.url" value="http://docs.oracle.com/javase/7/docs"/> |
<property name="java7.docroot.url" value="http://docs.oracle.com/javase/7/docs"/> |
188 |
<property name="java8.docroot.url" value="http://docs.oracle.com/javase/8/docs"/> |
<property name="java8.docroot.url" value="http://docs.oracle.com/javase/8/docs"/> |
189 |
<!-- The expected canonical location does not yet exist as of 2016-03 --> |
<!-- The expected canonical location does not yet exist as of 2016-04 --> |
190 |
<!-- <property name="java9.docroot.url" value="http://docs.oracle.com/javase/9/docs"/> --> |
<!-- <property name="java9.docroot.url" value="http://docs.oracle.com/javase/9/docs"/> --> |
191 |
<property name="java9.docroot.url" value="http://download.java.net/jdk9/docs"/> |
<property name="java9.docroot.url" value="http://download.java.net/java/jdk9/docs"/> |
192 |
<!-- Default jdk doc location (latest stable release seems best) --> |
<!-- Default jdk doc location (latest stable release seems best) --> |
193 |
<property name="java.docroot.url" value="${java8.docroot.url}"/> |
<property name="java.docroot.url" value="${java8.docroot.url}"/> |
194 |
|
|
252 |
<compilerarg value="-XDignore.symbol.file=true"/> |
<compilerarg value="-XDignore.symbol.file=true"/> |
253 |
<compilerarg value="-Xlint:all,-unchecked,-rawtypes,-serial,-deprecation,-try"/> |
<compilerarg value="-Xlint:all,-unchecked,-rawtypes,-serial,-deprecation,-try"/> |
254 |
<compilerarg value="-Xbootclasspath/p:@{classes}" unless:set="modules"/> |
<compilerarg value="-Xbootclasspath/p:@{classes}" unless:set="modules"/> |
255 |
<compilerarg value="-Xpatch:${build.classes.dir}" if:set="modules"/> |
<compilerarg value="-Xpatch:java.base=${build.classes.dir}/java.base" if:set="modules"/> |
256 |
<compilerarg line="${build.args}"/> |
<compilerarg line="${build.args}"/> |
257 |
<javac-elements/> |
<javac-elements/> |
258 |
|
|
263 |
jvm="${java@{target}}" |
jvm="${java@{target}}" |
264 |
fork="true"> |
fork="true"> |
265 |
<jvmarg value="-Xbootclasspath/p:@{classes}" unless:set="modules"/> |
<jvmarg value="-Xbootclasspath/p:@{classes}" unless:set="modules"/> |
266 |
<jvmarg value="-Xpatch:${build.classes.dir}" if:set="modules"/> |
<jvmarg value="-Xpatch:java.base=${build.classes.dir}/java.base" if:set="modules"/> |
267 |
<jvmarg line="@{jvmflags}"/> |
<jvmarg line="@{jvmflags}"/> |
268 |
|
<!-- ant -Dvmoptions="-Xmx8m" -Djsr166.tckTestClass=CompletableFutureTest tck --> |
269 |
|
<jvmarg line="${vmoptions}" if:set="vmoptions"/> |
270 |
|
|
271 |
<!-- ant -Djava.util.concurrent.ForkJoinPool.common.parallelism=1 tck --> |
<!-- ant -Djava.util.concurrent.ForkJoinPool.common.parallelism=1 tck --> |
272 |
<syspropertyset id="system-properties-used-by-tck"> |
<syspropertyset id="system-properties-used-by-tck"> |
273 |
<propertyref prefix="java.util.concurrent.ForkJoinPool"/> |
<propertyref prefix="java.util.concurrent.ForkJoinPool"/> |
274 |
<propertyref prefix="jsr166."/> |
<propertyref prefix="jsr166."/> |
329 |
|
|
330 |
<delete dir="@{workdir}/JTwork" quiet="true"/> |
<delete dir="@{workdir}/JTwork" quiet="true"/> |
331 |
<delete dir="@{workdir}/JTreport" quiet="true"/> |
<delete dir="@{workdir}/JTreport" quiet="true"/> |
|
<mkdir dir="@{workdir}/JTwork/scratch"/> |
|
|
<!-- workaround for https://bugs.openjdk.java.net/browse/CODETOOLS-7901571 --> |
|
|
<mkdir dir="@{workdir}/JTreport/html"/> |
|
|
<mkdir dir="@{workdir}/JTreport/text"/> |
|
332 |
<jtreg dir="${jtreg@{target}.src.dir}" |
<jtreg dir="${jtreg@{target}.src.dir}" |
333 |
jdk="${jdk@{target}.home}" |
jdk="${jdk@{target}.home}" |
334 |
workDir="@{workdir}/JTwork" |
workDir="@{workdir}/JTwork" |
335 |
reportDir="@{workdir}/JTreport"> |
reportDir="@{workdir}/JTreport"> |
336 |
<patternset refid="jdk@{target}.jtreg.tests"/> |
<patternset refid="jdk@{target}.jtreg.tests"/> |
337 |
<arg value="-Xbootclasspath/p:@{classes}" unless:set="modules"/> |
<arg value="-Xbootclasspath/p:@{classes}" unless:set="modules"/> |
338 |
<arg value="-Xpatch:${build.classes.dir}" if:set="modules"/> |
<arg value="-vmoption:-Xpatch:java.base=${build.classes.dir}/java.base" if:set="modules"/> |
339 |
<arg value="-agentvm"/> |
<arg value="-agentvm"/> |
340 |
<arg value="-verbose:${jtreg.verbose}"/> |
<arg value="-verbose:${jtreg.verbose}"/> |
341 |
<arg value="-vmoptions:-esa -ea"/> |
<arg value="-vmoptions:-esa -ea"/> |
411 |
<target name="jar" |
<target name="jar" |
412 |
depends="compile" |
depends="compile" |
413 |
description="Builds library jar for src/main from compiled sources"> |
description="Builds library jar for src/main from compiled sources"> |
414 |
|
<local name="subdir"/> |
415 |
|
<available property="subdir" file="${build.classes.dir}/java.base" type="dir" value="/java.base"/> |
416 |
<jar destfile="${product.jar}"> |
<jar destfile="${product.jar}"> |
417 |
<fileset dir="${build.classes.dir}"/> |
<fileset dir="${build.classes.dir}${subdir}"/> |
418 |
<manifest> |
<manifest> |
419 |
<attribute name="Built-By" value="${user.name}"/> |
<attribute name="Built-By" value="${user.name}"/> |
420 |
<attribute name="Implementation-Vendor" value="JCP JSR-166 Expert Group."/> |
<attribute name="Implementation-Vendor" value="JCP JSR-166 Expert Group."/> |
529 |
</target> |
</target> |
530 |
|
|
531 |
<target name="tck-parallelism-1" |
<target name="tck-parallelism-1" |
532 |
description="Runs tck with given common pool parallelism"> |
description="Runs tck with common pool parallelism 1"> |
533 |
<antcall target="tck"> |
<antcall target="tck"> |
534 |
<param name="java.util.concurrent.ForkJoinPool.common.parallelism" value="1"/> |
<param name="java.util.concurrent.ForkJoinPool.common.parallelism" value="1"/> |
535 |
</antcall> |
</antcall> |
536 |
</target> |
</target> |
537 |
|
|
538 |
<target name="tck-parallelism-0" |
<target name="tck-parallelism-0" |
539 |
description="Runs tck with given common pool parallelism"> |
description="Runs tck with common pool parallelism 0"> |
540 |
<antcall target="tck"> |
<antcall target="tck"> |
541 |
<param name="java.util.concurrent.ForkJoinPool.common.parallelism" value="0"/> |
<param name="java.util.concurrent.ForkJoinPool.common.parallelism" value="0"/> |
542 |
</antcall> |
</antcall> |
543 |
</target> |
</target> |
544 |
|
|
545 |
|
<target name="tck-security-manager" |
546 |
|
description="Runs tck with a security manager"> |
547 |
|
<antcall target="tck"> |
548 |
|
<param name="jsr166.useSecurityManager" value="true"/> |
549 |
|
</antcall> |
550 |
|
</target> |
551 |
|
|
552 |
<target name="jtreg" |
<target name="jtreg" |
553 |
depends="jar" |
depends="jar" |
554 |
description="Runs jtreg tests for src/main using the jtreg ant task"> |
description="Runs jtreg tests for src/main using the jtreg ant task"> |
559 |
</target> |
</target> |
560 |
|
|
561 |
<target name="test" |
<target name="test" |
562 |
depends="tck, tck-parallelism-1, jtreg" |
depends="tck, tck-parallelism-1, tck-parallelism-0, jtreg" |
563 |
description="Runs tck and jtreg tests for src/main"> |
description="Runs tck and jtreg tests for src/main"> |
564 |
</target> |
</target> |
565 |
|
|
794 |
access="${build.javadoc.access}" |
access="${build.javadoc.access}" |
795 |
sourcepath="${4jdk8src.dir}:${jdk8.src.dir}" |
sourcepath="${4jdk8src.dir}:${jdk8.src.dir}" |
796 |
classpath="" |
classpath="" |
797 |
executable="${javadoc8}"> |
executable="${javadoc8}" |
798 |
|
failonerror = "true"> |
799 |
<fileset dir="${4jdk8src.dir}" defaultexcludes="yes"> |
<fileset dir="${4jdk8src.dir}" defaultexcludes="yes"> |
800 |
<include name="**/*.java"/> |
<include name="**/*.java"/> |
801 |
</fileset> |
</fileset> |
1000 |
access="${build.javadoc.access}" |
access="${build.javadoc.access}" |
1001 |
sourcepath="${4jdk7src.dir}:${jdk7.src.dir}" |
sourcepath="${4jdk7src.dir}:${jdk7.src.dir}" |
1002 |
classpath="" |
classpath="" |
1003 |
executable="${javadoc7}"> |
executable="${javadoc7}" |
1004 |
|
failonerror = "true"> |
1005 |
<fileset dir="${4jdk7src.dir}" defaultexcludes="yes"> |
<fileset dir="${4jdk7src.dir}" defaultexcludes="yes"> |
1006 |
<include name="**/*.java"/> |
<include name="**/*.java"/> |
1007 |
</fileset> |
</fileset> |
1096 |
sourcepath="${topsrc.dir}:${jdk6.src.dir}" |
sourcepath="${topsrc.dir}:${jdk6.src.dir}" |
1097 |
bootclasspath="${bootclasspath6}" |
bootclasspath="${bootclasspath6}" |
1098 |
source="5" |
source="5" |
1099 |
executable="${javadoc7}"> |
executable="${javadoc7}" |
1100 |
|
failonerror = "true"> |
1101 |
<arg line="-Xdocrootparent ${java.docroot.url}"/> |
<arg line="-Xdocrootparent ${java.docroot.url}"/> |
1102 |
<arg value="-XDignore.symbol.file=true"/> |
<arg value="-XDignore.symbol.file=true"/> |
1103 |
|
|
1189 |
sourcepath="${topsrc.dir}:${jdk6.src.dir}" |
sourcepath="${topsrc.dir}:${jdk6.src.dir}" |
1190 |
bootclasspath="${bootclasspath6}" |
bootclasspath="${bootclasspath6}" |
1191 |
source="6" |
source="6" |
1192 |
executable="${javadoc7}"> |
executable="${javadoc7}" |
1193 |
|
failonerror = "true"> |
1194 |
<arg line="-Xdocrootparent ${java.docroot.url}"/> |
<arg line="-Xdocrootparent ${java.docroot.url}"/> |
1195 |
<arg value="-XDignore.symbol.file=true"/> |
<arg value="-XDignore.symbol.file=true"/> |
1196 |
|
|
1403 |
access="${build.javadoc.access}" |
access="${build.javadoc.access}" |
1404 |
sourcepath="${topsrc.dir}:${jdk6.src.dir}" |
sourcepath="${topsrc.dir}:${jdk6.src.dir}" |
1405 |
source="${build.jsr166e.java.version}" |
source="${build.jsr166e.java.version}" |
1406 |
executable="${javadoc7}"> |
executable="${javadoc7}" |
1407 |
|
failonerror = "true"> |
1408 |
<arg line="-Xdocrootparent ${java.docroot.url}"/> |
<arg line="-Xdocrootparent ${java.docroot.url}"/> |
1409 |
<arg value="-XDignore.symbol.file=true"/> |
<arg value="-XDignore.symbol.file=true"/> |
1410 |
|
|