ViewVC Help
View File | Revision Log | Show Annotations | Download File | Root Listing
root/jsr166/jsr166/build.xml
(Generate patch)

Comparing jsr166/build.xml (file contents):
Revision 1.200 by jsr166, Sat Mar 26 06:22:49 2016 UTC vs.
Revision 1.210 by jsr166, Mon Apr 18 15:30:49 2016 UTC

# Line 7 | Line 7
7  
8    Usage: ant [target]
9  
10 +  See http://gee.cs.oswego.edu/dl/concurrency-interest/index.html for
11 +  more details.
12 +
13    User-specific settings are read from user.properties.
14    See user.properties.sample for an explanation of some useful settings.
15  
# Line 30 | Line 33
33    ant -Djdk$N.home=... -Djdk$N.src.home=...
34    for $N in 6 7 8 9 ...
35  
36 <  As of 2015-09, there is incomplete hacky support for jigsaw
37 <  Build for jigsaw using something like:
35 <  ant -Djdk9.home="$HOME/jdk/jigsaw" -Djdk9.src.home="$HOME/jdk/src/jigsaw" clean test dist
36 <  "docs" target is still broken.
36 >  As of 2016-03, the sources in src/main are for jdk9+ only.  The "docs"
37 >  target is currently broken.
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" />
# Line 185 | Line 186
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  
# Line 219 | Line 220
220      <attribute name="compile-target" default="@{target}"/>
221      <attribute name="workdir"/>
222      <attribute name="classes"/>
223 <    <attribute name="jvmflags" default="-ea -esa -Djsr166.testImplementationDetails=true"/>
223 >    <!--
224 >        <attribute name="jvmflags" default="-XX:+UseParallelGC -XX:-UseBiasedLocking -ea -esa -Djsr166.testImplementationDetails=true"/>
225 >    -->
226 >        <attribute name="jvmflags" default="-ea -esa -Djsr166.testImplementationDetails=true"/>
227      <element name="javac-elements" optional="true"/>
228  
229      <sequential>
# Line 323 | Line 327
327  
328      <delete dir="@{workdir}/JTwork"   quiet="true"/>
329      <delete dir="@{workdir}/JTreport" quiet="true"/>
326    <mkdir dir="@{workdir}/JTwork/scratch"/>
327    <!-- workaround for https://bugs.openjdk.java.net/browse/CODETOOLS-7901571 -->
328    <mkdir dir="@{workdir}/JTreport/html"/>
329    <mkdir dir="@{workdir}/JTreport/text"/>
330      <jtreg dir="${jtreg@{target}.src.dir}"
331             jdk="${jdk@{target}.home}"
332             workDir="@{workdir}/JTwork"
# Line 403 | Line 403
403        <compilerarg line="${build.args}"/>
404  
405      </javac>
406
407    <!-- We need jdk9's Contended annotation, but at compile time only -->
408    <delete file="${destdir}/jdk/internal/vm/annotation/Contended.class"/>
406    </target>
407  
408  
409    <target name="jar"
410            depends="compile"
411 <          description="Builds library jar from compiled sources">
411 >          description="Builds library jar for src/main from compiled sources">
412  
413      <jar destfile="${product.jar}">
414        <fileset dir="${build.classes.dir}"/>
# Line 520 | Line 517
517  
518    <target name="tck"
519            depends="jar"
520 <          description="Runs tck tests for main directly">
520 >          description="Runs tck tests for src/main directly">
521  
522      <run-tck-tests
523        target="${build.main.java.version}"
# Line 529 | Line 526
526    </target>
527  
528    <target name="tck-parallelism-1"
529 <          description="Runs tck with given common pool parallelism">
529 >          description="Runs tck with common pool parallelism 1">
530      <antcall target="tck">
531        <param name="java.util.concurrent.ForkJoinPool.common.parallelism" value="1"/>
532      </antcall>
533    </target>
534  
535    <target name="tck-parallelism-0"
536 <          description="Runs tck with given common pool parallelism">
536 >          description="Runs tck with common pool parallelism 0">
537      <antcall target="tck">
538        <param name="java.util.concurrent.ForkJoinPool.common.parallelism" value="0"/>
539      </antcall>
# Line 544 | Line 541
541  
542    <target name="jtreg"
543            depends="jar"
544 <          description="Runs jtreg tests for main using the jtreg ant task">
544 >          description="Runs jtreg tests for src/main using the jtreg ant task">
545      <run-jtreg-tests
546         target="${build.main.java.version}"
547         workdir="${build.dir}"
# Line 552 | Line 549
549    </target>
550  
551    <target name="test"
552 <          depends="tck, tck-parallelism-1, jtreg"
553 <          description="Runs tck and jtreg tests for main">
552 >          depends="tck, tck-parallelism-1, tck-parallelism-0, jtreg"
553 >          description="Runs tck and jtreg tests for src/main">
554    </target>
555  
556 <  <target name="jtreg8" description="Runs jtreg tests with jdk8">
556 > <!--   <target name="jtreg8" description="Runs jtreg tests with jdk8"> -->
557  
558 <    <antcall target="jtreg">
559 <      <param name="build.main.java.version" value="8"/>
560 <      <param name="build.main.javac" value="${javac8}"/>
561 <    </antcall>
558 > <!--     <antcall target="jtreg"> -->
559 > <!--       <param name="build.main.java.version" value="8"/> -->
560 > <!--       <param name="build.main.javac" value="${javac8}"/> -->
561 > <!--     </antcall> -->
562  
563 <  </target>
563 > <!--   </target> -->
564  
565 <  <target name="test89"
566 <          description="Runs tck and jtreg tests for main for multiple java versions">
565 > <!--   <target name="test89" -->
566 > <!--           description="Runs tck and jtreg tests for src/main for multiple java versions"> -->
567  
568 <    <antcall target="clean"/>
569 <    <antcall target="test">
570 <      <param name="build.main.java.version" value="8"/>
571 <      <param name="build.main.javac" value="${javac8}"/>
572 <    </antcall>
568 > <!--     <antcall target="clean"/> -->
569 > <!--     <antcall target="test"> -->
570 > <!--       <param name="build.main.java.version" value="8"/> -->
571 > <!--       <param name="build.main.javac" value="${javac8}"/> -->
572 > <!--     </antcall> -->
573  
574 <    <antcall target="clean"/>
575 <    <antcall target="test">
576 <      <param name="build.main.java.version" value="9"/>
577 <      <param name="build.main.javac" value="${javac9}"/>
578 <    </antcall>
574 > <!--     <antcall target="clean"/> -->
575 > <!--     <antcall target="test"> -->
576 > <!--       <param name="build.main.java.version" value="9"/> -->
577 > <!--       <param name="build.main.javac" value="${javac9}"/> -->
578 > <!--     </antcall> -->
579  
580 <  </target>
580 > <!--   </target> -->
581  
582  
583  
# Line 610 | Line 607
607    <!-- Various demos and test programs -->
608  
609  
610 <  <target name="loops" depends="configure-compiler"
611 <          description="Benchmark from Doug Lea's AQS paper">
610 >  <!-- description="Benchmark from Doug Lea's AQS paper" -->
611 >  <target name="loops" depends="configure-compiler">
612  
613      <mkdir dir="${build.loops.dir}"/>
614  
# Line 787 | Line 784
784               access="${build.javadoc.access}"
785               sourcepath="${4jdk8src.dir}:${jdk8.src.dir}"
786               classpath=""
787 <             executable="${javadoc8}">
787 >             executable="${javadoc8}"
788 >             failonerror = "true">
789        <fileset dir="${4jdk8src.dir}" defaultexcludes="yes">
790          <include name="**/*.java"/>
791        </fileset>
# Line 935 | Line 933
933    </target>
934  
935  
936 +  <!-- Runs tck tests for jsr166-4jdk7 via junit task (dead experiment) -->
937    <target name="4jdk7-tck-junit"
938 <          depends="4jdk7compile"
940 <          description="Runs tck tests for jsr166-4jdk7 via junit task (experimental)">
938 >          depends="4jdk7compile">
939  
940      <junit printsummary="true"
941             showoutput="true"
# Line 992 | Line 990
990               access="${build.javadoc.access}"
991               sourcepath="${4jdk7src.dir}:${jdk7.src.dir}"
992               classpath=""
993 <             executable="${javadoc7}">
993 >             executable="${javadoc7}"
994 >             failonerror = "true">
995        <fileset dir="${4jdk7src.dir}" defaultexcludes="yes">
996          <include name="**/*.java"/>
997        </fileset>
# Line 1087 | Line 1086
1086               sourcepath="${topsrc.dir}:${jdk6.src.dir}"
1087               bootclasspath="${bootclasspath6}"
1088               source="5"
1089 <             executable="${javadoc7}">
1089 >             executable="${javadoc7}"
1090 >             failonerror = "true">
1091        <arg line="-Xdocrootparent ${java.docroot.url}"/>
1092        <arg value="-XDignore.symbol.file=true"/>
1093  
# Line 1179 | Line 1179
1179               sourcepath="${topsrc.dir}:${jdk6.src.dir}"
1180               bootclasspath="${bootclasspath6}"
1181               source="6"
1182 <             executable="${javadoc7}">
1182 >             executable="${javadoc7}"
1183 >             failonerror = "true">
1184        <arg line="-Xdocrootparent ${java.docroot.url}"/>
1185        <arg value="-XDignore.symbol.file=true"/>
1186  
# Line 1392 | Line 1393
1393               access="${build.javadoc.access}"
1394               sourcepath="${topsrc.dir}:${jdk6.src.dir}"
1395               source="${build.jsr166e.java.version}"
1396 <             executable="${javadoc7}">
1396 >             executable="${javadoc7}"
1397 >             failonerror = "true">
1398        <arg line="-Xdocrootparent ${java.docroot.url}"/>
1399        <arg value="-XDignore.symbol.file=true"/>
1400  

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines