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" /> |
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-04 --> |
190 |
|
<!-- <property name="java9.docroot.url" value="http://docs.oracle.com/javase/9/docs"/> --> |
191 |
< |
<property name="java9.docroot.url" value="http://http://download.java.net/java/jdk9/docs"/> |
191 |
> |
<property name="java9.docroot.url" value="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 |
+ |
<!-- 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 --> |
271 |
> |
<!-- ant -Djava.util.concurrent.ForkJoinPool.common.parallelism=1 tck --> |
272 |
|
<syspropertyset id="system-properties-used-by-tck"> |
273 |
|
<propertyref prefix="java.util.concurrent.ForkJoinPool"/> |
274 |
|
<propertyref prefix="jsr166."/> |
335 |
|
reportDir="@{workdir}/JTreport"> |
336 |
|
<patternset refid="jdk@{target}.jtreg.tests"/> |
337 |
|
<arg value="-Xbootclasspath/p:@{classes}" unless:set="modules"/> |
338 |
< |
<arg value="-Xpatch:${build.classes.dir}" if:set="modules"/> |
338 |
> |
<arg value="-vmoption:-Xpatch:java.base=${build.classes.dir}/java.base" if:set="modules"/> |
339 |
|
<arg value="-agentvm"/> |
340 |
|
<arg value="-verbose:${jtreg.verbose}"/> |
341 |
|
<arg value="-vmoptions:-esa -ea"/> |
411 |
|
<target name="jar" |
412 |
|
depends="compile" |
413 |
|
description="Builds library jar for src/main from compiled sources"> |
414 |
< |
|
414 |
> |
<local name="subdir"/> |
415 |
> |
<available property="subdir" file="${build.classes.dir}/java.base" type="dir" value="/java.base"/> |
416 |
|
<jar destfile="${product.jar}"> |
417 |
< |
<fileset dir="${build.classes.dir}"/> |
417 |
> |
<fileset dir="${build.classes.dir}${subdir}"/> |
418 |
|
<manifest> |
419 |
|
<attribute name="Built-By" value="${user.name}"/> |
420 |
|
<attribute name="Implementation-Vendor" value="JCP JSR-166 Expert Group."/> |
542 |
|
</antcall> |
543 |
|
</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" |
553 |
|
depends="jar" |
554 |
|
description="Runs jtreg tests for src/main using the jtreg ant task"> |