38 |
|
------------------------------------------------------------------------------ |
39 |
|
</description> |
40 |
|
|
41 |
< |
<!-- Display main targets by running 'ant -projecthelp' --> |
41 |
> |
<!-- Run 'ant -projecthelp' (default target) --> |
42 |
|
<target name="usage"> |
43 |
|
<java classname="org.apache.tools.ant.Main"> |
44 |
|
<arg value="-projecthelp" /> |
186 |
|
<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"/> |
188 |
|
<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 --> |
189 |
> |
<!-- 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"/> --> |
191 |
< |
<property name="java9.docroot.url" value="http://download.java.net/jdk9/docs"/> |
191 |
> |
<property name="java9.docroot.url" value="http://http://download.java.net/java/jdk9/docs"/> |
192 |
|
<!-- Default jdk doc location (latest stable release seems best) --> |
193 |
|
<property name="java.docroot.url" value="${java8.docroot.url}"/> |
194 |
|
|
252 |
|
<compilerarg value="-XDignore.symbol.file=true"/> |
253 |
|
<compilerarg value="-Xlint:all,-unchecked,-rawtypes,-serial,-deprecation,-try"/> |
254 |
|
<compilerarg value="-Xbootclasspath/p:@{classes}" unless:set="modules"/> |
255 |
< |
<compilerarg value="-Xpatch:${build.classes.dir}" if:set="modules"/> |
255 |
> |
<compilerarg value="-Xpatch:java.base=${build.classes.dir}/java.base" if:set="modules"/> |
256 |
|
<compilerarg line="${build.args}"/> |
257 |
|
<javac-elements/> |
258 |
|
|
263 |
|
jvm="${java@{target}}" |
264 |
|
fork="true"> |
265 |
|
<jvmarg value="-Xbootclasspath/p:@{classes}" unless:set="modules"/> |
266 |
< |
<jvmarg value="-Xpatch:${build.classes.dir}" if:set="modules"/> |
266 |
> |
<jvmarg value="-Xpatch:java.base=${build.classes.dir}/java.base" if:set="modules"/> |
267 |
|
<jvmarg line="@{jvmflags}"/> |
268 |
|
|
269 |
|
<!-- ant -Djava.util.concurrent.ForkJoinPool.common.parallelism=1 tck --> |
327 |
|
|
328 |
|
<delete dir="@{workdir}/JTwork" quiet="true"/> |
329 |
|
<delete dir="@{workdir}/JTreport" quiet="true"/> |
330 |
– |
<mkdir dir="@{workdir}/JTwork/scratch"/> |
331 |
– |
<!-- workaround for https://bugs.openjdk.java.net/browse/CODETOOLS-7901571 --> |
332 |
– |
<mkdir dir="@{workdir}/JTreport/html"/> |
333 |
– |
<mkdir dir="@{workdir}/JTreport/text"/> |
330 |
|
<jtreg dir="${jtreg@{target}.src.dir}" |
331 |
|
jdk="${jdk@{target}.home}" |
332 |
|
workDir="@{workdir}/JTwork" |
333 |
|
reportDir="@{workdir}/JTreport"> |
334 |
|
<patternset refid="jdk@{target}.jtreg.tests"/> |
335 |
|
<arg value="-Xbootclasspath/p:@{classes}" unless:set="modules"/> |
336 |
< |
<arg value="-Xpatch:${build.classes.dir}" if:set="modules"/> |
336 |
> |
<arg value="-vmoption:-Xpatch:java.base=${build.classes.dir}/java.base" if:set="modules"/> |
337 |
|
<arg value="-agentvm"/> |
338 |
|
<arg value="-verbose:${jtreg.verbose}"/> |
339 |
|
<arg value="-vmoptions:-esa -ea"/> |
409 |
|
<target name="jar" |
410 |
|
depends="compile" |
411 |
|
description="Builds library jar for src/main from compiled sources"> |
412 |
< |
|
412 |
> |
<local name="subdir"/> |
413 |
> |
<available property="subdir" file="${build.classes.dir}/java.base" type="dir" value="/java.base"/> |
414 |
|
<jar destfile="${product.jar}"> |
415 |
< |
<fileset dir="${build.classes.dir}"/> |
415 |
> |
<fileset dir="${build.classes.dir}${subdir}"/> |
416 |
|
<manifest> |
417 |
|
<attribute name="Built-By" value="${user.name}"/> |
418 |
|
<attribute name="Implementation-Vendor" value="JCP JSR-166 Expert Group."/> |
527 |
|
</target> |
528 |
|
|
529 |
|
<target name="tck-parallelism-1" |
530 |
< |
description="Runs tck with given common pool parallelism"> |
530 |
> |
description="Runs tck with common pool parallelism 1"> |
531 |
|
<antcall target="tck"> |
532 |
|
<param name="java.util.concurrent.ForkJoinPool.common.parallelism" value="1"/> |
533 |
|
</antcall> |
534 |
|
</target> |
535 |
|
|
536 |
|
<target name="tck-parallelism-0" |
537 |
< |
description="Runs tck with given common pool parallelism"> |
537 |
> |
description="Runs tck with common pool parallelism 0"> |
538 |
|
<antcall target="tck"> |
539 |
|
<param name="java.util.concurrent.ForkJoinPool.common.parallelism" value="0"/> |
540 |
|
</antcall> |
541 |
|
</target> |
542 |
|
|
543 |
+ |
<target name="tck-security-manager" |
544 |
+ |
description="Runs tck with a security manager"> |
545 |
+ |
<antcall target="tck"> |
546 |
+ |
<param name="jsr166.useSecurityManager" value="true"/> |
547 |
+ |
</antcall> |
548 |
+ |
</target> |
549 |
+ |
|
550 |
|
<target name="jtreg" |
551 |
|
depends="jar" |
552 |
|
description="Runs jtreg tests for src/main using the jtreg ant task"> |
557 |
|
</target> |
558 |
|
|
559 |
|
<target name="test" |
560 |
< |
depends="tck, tck-parallelism-1, jtreg" |
560 |
> |
depends="tck, tck-parallelism-1, tck-parallelism-0, jtreg" |
561 |
|
description="Runs tck and jtreg tests for src/main"> |
562 |
|
</target> |
563 |
|
|