/[cvs]/jsr166/build.xml
ViewVC logotype

Diff of /jsr166/build.xml

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.144 by jsr166, Sun Jul 14 19:55:04 2013 UTC revision 1.151 by jsr166, Sun Feb 16 14:25:46 2014 UTC
# Line 16  Line 16 
16    $HOME/jdk/jdk6    $HOME/jdk/jdk6
17    $HOME/jdk/jdk7    $HOME/jdk/jdk7
18    $HOME/jdk/jdk8    $HOME/jdk/jdk8
19      $HOME/jdk/jdk9
20    where each of the above is a JDK or a symlink to same, and    where each of the above is a JDK or a symlink to same, and
21    $HOME/jdk/src/jdk6    $HOME/jdk/src/jdk6
22    $HOME/jdk/src/jdk7    $HOME/jdk/src/jdk7
23    $HOME/jdk/src/jdk8    $HOME/jdk/src/jdk8
24      $HOME/jdk/src/jdk9
25    where each of the above is a complete JDK source tree    where each of the above is a complete JDK source tree
26    (e.g. mercurial forest) or a symlink to same.    (e.g. mercurial forest) or a symlink to same.
 As of 2013-02, the very latest lambda 8 jdk is needed for jdk8.  
27  ------------------------------------------------------------------------------  ------------------------------------------------------------------------------
28    </description>    </description>
29    
30    <target name="usage" description="Display main targets by running 'ant -projecthelp'">    <!-- Display main targets by running 'ant -projecthelp' -->
31      <target name="usage">
32      <java classname="org.apache.tools.ant.Main">      <java classname="org.apache.tools.ant.Main">
33        <arg value="-projecthelp" />        <arg value="-projecthelp" />
34      </java>      </java>
# Line 114  As of 2013-02, the very latest lambda 8 Line 116  As of 2013-02, the very latest lambda 8
116    <defjdklocations v="6"/>    <defjdklocations v="6"/>
117    <defjdklocations v="7"/>    <defjdklocations v="7"/>
118    <defjdklocations v="8"/>    <defjdklocations v="8"/>
119      <defjdklocations v="9"/>
120    
121    <!-- Source locations -->    <!-- Source locations -->
122    <property name="src.dir"              location="${basedir}/src/main"/>    <property name="src.dir"              location="${basedir}/src/main"/>
# Line 160  As of 2013-02, the very latest lambda 8 Line 163  As of 2013-02, the very latest lambda 8
163    <property name="jdkapi7docs.url"      value="http://docs.oracle.com/javase/7/docs/api/"/>    <property name="jdkapi7docs.url"      value="http://docs.oracle.com/javase/7/docs/api/"/>
164    
165    <property name="jdkapi8docs.url"      value="http://download.java.net/jdk8/docs/api/"/>    <property name="jdkapi8docs.url"      value="http://download.java.net/jdk8/docs/api/"/>
166    <!-- The below does not yet exist as of 2013-01 -->    <!-- The expected canonical location does not yet exist as of 2014-02 -->
167    <!-- <property name="jdkapi8docs.url" value="http://docs.oracle.com/javase/8/docs/api/"/> -->    <!-- <property name="jdkapi8docs.url" value="http://docs.oracle.com/javase/8/docs/api/"/> -->
168    
169      <property name="jdkapi9docs.url"      value="${jdkapi8docs.url}"/>
170      <!-- No published jdk9 docs exist as of 2014-02 -->
171      <!-- <property name="jdkapi9docs.url" value="http://docs.oracle.com/javase/9/docs/api/"/> -->
172    
173    <!-- Default jdk api doc location (latest stable release seems best) -->    <!-- Default jdk api doc location (latest stable release seems best) -->
174    <property name="jdkapidocs.url"       value="${jdkapi7docs.url}"/>    <property name="jdkapidocs.url"       value="${jdkapi7docs.url}"/>
175    
# Line 268  As of 2013-02, the very latest lambda 8 Line 275  As of 2013-02, the very latest lambda 8
275    
276    <!-- Main targets -->    <!-- Main targets -->
277    
278      <property name="build.main.java.version" value="9"/>
279      <property name="build.main.javac" value="${javac9}"/>
280    
281    <target name="dists"    <target name="dists"
282            depends="dist, 4jdk7dist, jsr166edist, jsr166ydist, extra166ydist, jsr166xdist"            depends="dist, 4jdk7dist, jsr166edist, jsr166ydist, extra166ydist, jsr166xdist"
283            description="Builds all public jars and docs"/>            description="Builds all public jars and docs"/>
# Line 286  As of 2013-02, the very latest lambda 8 Line 296  As of 2013-02, the very latest lambda 8
296             classpath=""             classpath=""
297             includeAntRuntime="false"             includeAntRuntime="false"
298             includeJavaRuntime="false"             includeJavaRuntime="false"
299             executable="${javac8}"             executable="${build.main.javac}"
300             fork="true">             fork="true">
301    
302        <include name="**/*.java"/>        <include name="**/*.java"/>
303        <compilerarg value="-Xprefer:source"/>        <compilerarg value="-Xprefer:source"/>
304        <compilerarg value="-XDignore.symbol.file=true"/>        <compilerarg value="-XDignore.symbol.file=true"/>
305        <compilerarg value="-Xlint:all"/>        <compilerarg value="-Xlint:all"/>
306          <compilerarg value="-Xdoclint:all/protected"/>
307          <compilerarg line="-Xmaxerrs 1000 -Xmaxwarns 1000"/>
308        <compilerarg line="${build.args}"/>        <compilerarg line="${build.args}"/>
309    
310      </javac>      </javac>
# Line 320  As of 2013-02, the very latest lambda 8 Line 332  As of 2013-02, the very latest lambda 8
332    
333      <javadoc destdir="${docs.dir}"      <javadoc destdir="${docs.dir}"
334               packagenames="none"               packagenames="none"
335               link="${jdkapi8docs.url}"               link="${jdkapi9docs.url}"
336               overview="${src.dir}/intro.html"               overview="${src.dir}/intro.html"
337               access="${build.javadoc.access}"               access="${build.javadoc.access}"
338               sourcepath="${src.dir}:${jdk8src.dir}"               sourcepath="${src.dir}:${jdk9src.dir}"
339               classpath=""               classpath=""
340               executable="${javadoc8}">               executable="${javadoc9}">
341        <fileset dir="${src.dir}" defaultexcludes="yes">        <fileset dir="${src.dir}" defaultexcludes="yes">
342          <include name="**/*.java"/>          <include name="**/*.java"/>
343        </fileset>        </fileset>
344          <arg line="-Xmaxerrs 1000 -Xmaxwarns 1000"/>
345        <arg value="-XDignore.symbol.file=true"/>        <arg value="-XDignore.symbol.file=true"/>
346        <arg value="-tag"/>        <arg value="-tag"/>
347        <arg value="${javadoc.jls.option}"/>        <arg value="${javadoc.jls.option}"/>
# Line 376  As of 2013-02, the very latest lambda 8 Line 389  As of 2013-02, the very latest lambda 8
389    <target name="dist-clean"    <target name="dist-clean"
390            description="Removes all build and distribution products">            description="Removes all build and distribution products">
391    
392        <delete dir="${build.dir}"/>
393      <delete dir="${dist.dir}"/>      <delete dir="${dist.dir}"/>
394    
395    </target>    </target>
# Line 397  As of 2013-02, the very latest lambda 8 Line 411  As of 2013-02, the very latest lambda 8
411            description="Runs tck tests for main directly">            description="Runs tck tests for main directly">
412    
413      <run-tck-tests      <run-tck-tests
414        target="8"        target="${build.main.java.version}"
415        workdir="${build.dir}"        workdir="${build.dir}"
416        classes="${product.jar}"/>        classes="${product.jar}"/>
417    </target>    </target>
# Line 406  As of 2013-02, the very latest lambda 8 Line 420  As of 2013-02, the very latest lambda 8
420            depends="jar"            depends="jar"
421            description="Runs jtreg tests for main using the jtreg ant task">            description="Runs jtreg tests for main using the jtreg ant task">
422      <run-jtreg-tests      <run-jtreg-tests
423         target="8"         target="${build.main.java.version}"
424         workdir="${build.dir}"         workdir="${build.dir}"
425         classes="${product.jar}"/>         classes="${product.jar}"/>
426    </target>    </target>
# Line 416  As of 2013-02, the very latest lambda 8 Line 430  As of 2013-02, the very latest lambda 8
430            description="Runs tck and jtreg tests for main">            description="Runs tck and jtreg tests for main">
431    </target>    </target>
432    
433      <target name="test89"
434              description="Runs tck and jtreg tests for main for multiple java versions">
435    
436        <antcall target="clean"/>
437        <antcall target="test">
438          <param name="build.main.java.version" value="8"/>
439          <param name="build.main.javac" value="${javac8}"/>
440        </antcall>
441    
442        <antcall target="clean"/>
443        <antcall target="test">
444          <param name="build.main.java.version" value="9"/>
445          <param name="build.main.javac" value="${javac9}"/>
446        </antcall>
447    
448      </target>
449    
450    
451    
452    <target name="configure-compiler">    <target name="configure-compiler">
# Line 495  As of 2013-02, the very latest lambda 8 Line 526  As of 2013-02, the very latest lambda 8
526      </javac>      </javac>
527    </target>    </target>
528    
529      <target name="4jdk7doclint"
530              depends="configure-compiler"
531              description="Finds doclint warnings">
532    
533        <mkdir dir="${build.4jdk7.classes.dir}"/>
534    
535        <javac srcdir="${4jdk7src.dir}"
536               destdir="${build.4jdk7.classes.dir}"
537               debug="${build.debug}"
538               debuglevel="${build.debuglevel}"
539               deprecation="${build.deprecation}"
540               source="6"
541               classpath=""
542               bootclasspath="${bootclasspath7}"
543               includeAntRuntime="false"
544               includeJavaRuntime="false"
545               executable="${javac8}"
546               fork="true">
547    
548          <include name="**/*.java"/>
549          <compilerarg value="-Xprefer:source"/>
550          <compilerarg value="-XDignore.symbol.file=true"/>
551          <compilerarg value="-Xlint:all"/>
552          <compilerarg value="-Xdoclint:all/protected"/>
553          <compilerarg line="${build.args}"/>
554    
555        </javac>
556      </target>
557    
558    
559    <target name="4jdk7jar"    <target name="4jdk7jar"
560            depends="4jdk7compile"            depends="4jdk7compile"
# Line 518  As of 2013-02, the very latest lambda 8 Line 578  As of 2013-02, the very latest lambda 8
578        <javac-elements>        <javac-elements>
579          <!-- JDK8+ test classes -->          <!-- JDK8+ test classes -->
580          <exclude name="*8Test.java"/>          <exclude name="*8Test.java"/>
581            <exclude name="*9Test.java"/>
582          <exclude name="DoubleAccumulatorTest.java"/>          <exclude name="DoubleAccumulatorTest.java"/>
583          <exclude name="DoubleAdderTest.java"/>          <exclude name="DoubleAdderTest.java"/>
584          <exclude name="LongAccumulatorTest.java"/>          <exclude name="LongAccumulatorTest.java"/>
585          <exclude name="LongAdderTest.java"/>          <exclude name="LongAdderTest.java"/>
586          <exclude name="CompletableFutureTest.java"/>          <exclude name="CompletableFutureTest.java"/>
587            <exclude name="SplittableRandomTest.java"/>
588          <exclude name="StampedLockTest.java"/>          <exclude name="StampedLockTest.java"/>
589        </javac-elements>        </javac-elements>
590      </run-tck-tests>      </run-tck-tests>
# Line 609  As of 2013-02, the very latest lambda 8 Line 671  As of 2013-02, the very latest lambda 8
671    </target>    </target>
672    
673    
   <target name="4jdk7dist-clean"  
           description="Removes all build and distribution products">  
   
   </target>  
   
674    <target name="4jdk7dist-jar"    <target name="4jdk7dist-jar"
675            depends="4jdk7clean, 4jdk7jar">            depends="4jdk7clean, 4jdk7jar">
676      <copy file="${4jdk7product.jar}" todir="${dist.dir}"/>      <copy file="${4jdk7product.jar}" todir="${dist.dir}"/>
# Line 700  As of 2013-02, the very latest lambda 8 Line 757  As of 2013-02, the very latest lambda 8
757    </target>    </target>
758    
759    
   <target name="jsr166xdist-clean"  
           description="Removes all build and distribution products">  
   
   </target>  
   
   
760    <target name="jsr166xdist-jar"    <target name="jsr166xdist-jar"
761            depends="jsr166xclean, jsr166xjar">            depends="jsr166xclean, jsr166xjar">
762      <copy file="${jsr166x.jar}" todir="${dist.dir}"/>      <copy file="${jsr166x.jar}" todir="${dist.dir}"/>
# Line 791  As of 2013-02, the very latest lambda 8 Line 842  As of 2013-02, the very latest lambda 8
842    </target>    </target>
843    
844    
   <target name="jsr166ydist-clean"  
           description="Removes all build and distribution products">  
   
   </target>  
   
845    <target name="jsr166ydist-jar"    <target name="jsr166ydist-jar"
846            depends="jsr166yclean, jsr166yjar">            depends="jsr166yclean, jsr166yjar">
847      <copy file="${jsr166y.jar}" todir="${dist.dir}"/>      <copy file="${jsr166y.jar}" todir="${dist.dir}"/>
# Line 882  As of 2013-02, the very latest lambda 8 Line 928  As of 2013-02, the very latest lambda 8
928    </target>    </target>
929    
930    
   <target name="extra166ydist-clean"  
           description="Removes all build and distribution products">  
   
   </target>  
   
931    <target name="extra166ydist-jar"    <target name="extra166ydist-jar"
932            depends="extra166yclean, extra166yjar">            depends="extra166yclean, extra166yjar">
933      <copy file="${extra166y.jar}" todir="${dist.dir}"/>      <copy file="${extra166y.jar}" todir="${dist.dir}"/>
# Line 928  As of 2013-02, the very latest lambda 8 Line 969  As of 2013-02, the very latest lambda 8
969      </javac>      </javac>
970    </target>    </target>
971    
972      <!-- jsr166e: find doclint errors -->
973      <target name="jsr166edoclint">
974    
975        <mkdir dir="${build.jsr166e.classes.dir}"/>
976    
977        <javac srcdir="${topsrc.dir}"
978               destdir="${build.jsr166e.classes.dir}"
979               debug="${build.debug}"
980               debuglevel="${build.debuglevel}"
981               deprecation="${build.deprecation}"
982               source="${build.jsr166e.java.version}"
983               classpath=""
984               bootclasspath="${bootclasspath7}"
985               includeAntRuntime="false"
986               includeJavaRuntime="false"
987               executable="${javac8}"
988               fork="true">
989    
990          <include name="jsr166e/**/*.java"/>
991          <compilerarg value="-XDignore.symbol.file=true"/>
992          <compilerarg value="-Xlint:all"/>
993          <compilerarg value="-Xdoclint:all/protected"/>
994    
995        </javac>
996      </target>
997    
998    
999    <target name="jsr166ejar"    <target name="jsr166ejar"
1000            depends="jsr166ecompile"            depends="jsr166ecompile"
# Line 960  As of 2013-02, the very latest lambda 8 Line 1027  As of 2013-02, the very latest lambda 8
1027    
1028    
1029    <target name="jsr166e-test-tck-one-java-version"    <target name="jsr166e-test-tck-one-java-version"
1030            depends="jsr166ejar"            depends="jsr166ejar">
           description="Runs tck tests for jsr166e">  
1031    
1032      <echo message="Testing with jdk${build.jsr166e.java.version} ..."/>      <echo message="Testing with jdk${build.jsr166e.java.version} ..."/>
1033    
# Line 995  As of 2013-02, the very latest lambda 8 Line 1061  As of 2013-02, the very latest lambda 8
1061    </target>    </target>
1062    
1063    
1064      <target name="jsr166e-test"
1065              depends="jsr166e-test-tck"
1066              description="Runs all tests for jsr166e">
1067      </target>
1068    
1069    <target name="jsr166edist"    <target name="jsr166edist"
1070            depends="jsr166edist-jar, jsr166edist-docs"            depends="jsr166edist-jar, jsr166edist-docs"
1071            description="Puts all distributable products in single hierarchy"/>            description="Puts all distributable products in single hierarchy"/>
# Line 1006  As of 2013-02, the very latest lambda 8 Line 1077  As of 2013-02, the very latest lambda 8
1077    </target>    </target>
1078    
1079    
   <target name="jsr166edist-clean"  
           description="Removes all build and distribution products">  
   
   </target>  
   
1080    <target name="jsr166edist-jar"    <target name="jsr166edist-jar"
1081            depends="jsr166eclean, jsr166ejar">            depends="jsr166eclean, jsr166ejar">
1082      <copy file="${jsr166e.jar}" todir="${dist.dir}"/>      <copy file="${jsr166e.jar}" todir="${dist.dir}"/>

Legend:
Removed from v.1.144  
changed lines
  Added in v.1.151

dl@cs.oswego.edu
ViewVC Help
Powered by ViewVC 1.1.27