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

Diff of /jsr166/build.xml

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

revision 1.128 by jsr166, Wed Jan 23 07:05:10 2013 UTC revision 1.136 by jsr166, Tue Feb 5 03:39:35 2013 UTC
# Line 22  Line 22 
22    $HOME/jdk/src/jdk8    $HOME/jdk/src/jdk8
23    where each of the above is a complete JDK source tree    where each of the above is a complete JDK source tree
24    (e.g. mercurial forest) or a symlink to same.    (e.g. mercurial forest) or a symlink to same.
25    As of 2013-02, the very latest lambda 8 jdk is needed for jdk8.
26  ------------------------------------------------------------------------------  ------------------------------------------------------------------------------
27    </description>    </description>
28    
29    <target name="usage" description="Advises user to run with -projecthelp">    <target name="usage" description="Display main targets by running 'ant -projecthelp'">
30      <echo>Run "ant -projecthelp" for full usage information.</echo>      <java classname="org.apache.tools.ant.Main">
31          <arg value="-projecthelp" />
32        </java>
33    </target>    </target>
34    
35    
# Line 39  Line 42 
42    <property name="build.debug"          value="true"/>    <property name="build.debug"          value="true"/>
43    <property name="build.debuglevel"     value="source,lines,vars"/>    <property name="build.debuglevel"     value="source,lines,vars"/>
44    <property name="build.deprecation"    value="false"/>    <property name="build.deprecation"    value="false"/>
45      <property name="build.javadoc.access" value="protected"/>
46    
47    <!-- Build locations -->    <!-- Build locations -->
48    <property name="build.dir"                   location="build"/>    <property name="build.dir"                   location="build"/>
# Line 171  Line 175 
175      <attribute name="workdir"/>      <attribute name="workdir"/>
176      <attribute name="classes"/>      <attribute name="classes"/>
177      <attribute name="jvmflags" default=""/>      <attribute name="jvmflags" default=""/>
178        <element name="javac-elements" optional="true"/>
179      <sequential>      <sequential>
180    
181      <mkdir dir="@{workdir}/tck-classes"/>      <mkdir dir="@{workdir}/tck-classes"/>
# Line 192  Line 197 
197        <compilerarg value="-XDignore.symbol.file=true"/>        <compilerarg value="-XDignore.symbol.file=true"/>
198        <compilerarg value="-Xlint:all,-unchecked,-rawtypes,-serial,-deprecation"/>        <compilerarg value="-Xlint:all,-unchecked,-rawtypes,-serial,-deprecation"/>
199        <compilerarg line="${build.args}"/>        <compilerarg line="${build.args}"/>
200          <javac-elements/>
201    
202      </javac>      </javac>
203    
# Line 210  Line 216 
216      </sequential>      </sequential>
217    </macrodef>    </macrodef>
218    
219      <macrodef name="run-jtreg-tests">
220        <attribute name="jtreg.src.dir" default="${jtreg.src.dir}"/>
221        <attribute name="source" default="7"/>
222        <attribute name="target"/>
223        <attribute name="workdir"/>
224        <attribute name="classes"/>
225        <attribute name="jtregflags" default=""/>
226        <sequential>
227        <delete dir="@{workdir}/JTwork"   quiet="true"/>
228        <delete dir="@{workdir}/JTreport" quiet="true"/>
229        <mkdir dir="@{workdir}/JTwork/scratch"/>
230        <mkdir dir="@{workdir}/JTreport"/>
231        <jtreg dir="@{jtreg.src.dir}"
232               jdk="${jdk@{target}.home}"
233               workDir="@{workdir}/JTwork"
234               reportDir="@{workdir}/JTreport">
235    
236          <arg value="-Xbootclasspath/p:@{classes}"/>
237          <arg value="-agentvm"/>
238          <arg value="-v:nopass,fail"/>
239          <arg value="-vmoptions:-esa -ea"/>
240          <arg value="-automatic"/>
241          <arg value="-k:!ignore"/>
242          <arg line="@{jtregflags}"/>
243        </jtreg>
244        </sequential>
245      </macrodef>
246    
247    <!-- ALoops classpath -->    <!-- ALoops classpath -->
248    <path id="loops.classpath">    <path id="loops.classpath">
249      <pathelement location="${build.loops.dir}"/>      <pathelement location="${build.loops.dir}"/>
# Line 243  Line 277 
277             fork="true">             fork="true">
278    
279        <include name="**/*.java"/>        <include name="**/*.java"/>
280          <compilerarg value="-Xprefer:source"/>
281        <compilerarg value="-XDignore.symbol.file=true"/>        <compilerarg value="-XDignore.symbol.file=true"/>
282        <compilerarg value="-Xlint:all"/>        <compilerarg value="-Xlint:all"/>
283        <compilerarg line="${build.args}"/>        <compilerarg line="${build.args}"/>
# Line 279  Line 314 
314               packagenames="none"               packagenames="none"
315               link="${jdkapi8docs.url}"               link="${jdkapi8docs.url}"
316               overview="${src.dir}/intro.html"               overview="${src.dir}/intro.html"
317                 access="${build.javadoc.access}"
318               sourcepath="${src.dir}:${jdk8src.dir}"               sourcepath="${src.dir}:${jdk8src.dir}"
319               classpath=""               classpath=""
320               executable="${javadoc8}">               executable="${javadoc8}">
# Line 408  Line 444 
444    
445    </target>    </target>
446    
447      <target name="test-tck"
448              depends="jar"
449              description="Runs tck tests for main directly">
450    
451        <run-tck-tests
452          target="8"
453          workdir="${build.dir}"
454          classes="${product.jar}"/>
455      </target>
456    
457      <target name="test-jtreg"
458              depends="jar"
459              description="Runs jtreg tests for main using the jtreg ant task">
460        <run-jtreg-tests
461           target="8"
462           workdir="${build.dir}"
463           classes="${product.jar}"/>
464      </target>
465    
466      <target name="test-ng"
467              depends="test-tck, test-jtreg"
468              description="Runs tck and jtreg tests for main">
469      </target>
470    
471    <target name="run-tests"    <target name="run-tests"
472            depends="compile-tests">            depends="compile-tests">
# Line 574  Line 633 
633             fork="true">             fork="true">
634    
635        <include name="**/*.java"/>        <include name="**/*.java"/>
636          <compilerarg value="-Xprefer:source"/>
637        <compilerarg value="-XDignore.symbol.file=true"/>        <compilerarg value="-XDignore.symbol.file=true"/>
638        <compilerarg value="-Xlint:all"/>        <compilerarg value="-Xlint:all"/>
639        <compilerarg line="${build.args}"/>        <compilerarg line="${build.args}"/>
# Line 600  Line 660 
660      <run-tck-tests      <run-tck-tests
661        target="7"        target="7"
662        workdir="${build.4jdk7.dir}"        workdir="${build.4jdk7.dir}"
663        classes="${4jdk7product.jar}"/>        classes="${4jdk7product.jar}">
664          <javac-elements>
665            <!-- JDK8+ test classes -->
666            <exclude name="StampedLockTest.java"/>
667            <exclude name="ForkJoinPool8Test.java"/>
668          </javac-elements>
669        </run-tck-tests>
670    </target>    </target>
671    
672    
# Line 633  Line 699 
699    </target>    </target>
700    
701    <target name="4jdk7-test-jtreg"    <target name="4jdk7-test-jtreg"
702            depends="4jdk7compile"            depends="4jdk7jar"
703            description="Runs jtreg tests for jsr166-4jdk7 using the jtreg ant task">            description="Runs jtreg tests for jsr166-4jdk7 using the jtreg ant task">
704      <delete dir="${build.4jdk7.dir}/JTwork"   quiet="true"/>      <run-jtreg-tests
705      <delete dir="${build.4jdk7.dir}/JTreport" quiet="true"/>         target="7"
706      <mkdir dir="${build.4jdk7.dir}/JTwork/scratch"/>         workdir="${build.4jdk7.dir}"
707      <mkdir dir="${build.4jdk7.dir}/JTreport"/>         classes="${4jdk7product.jar}"/>
     <jtreg dir="${jtreg.src.dir}"  
            jdk="${jdk7.home}"  
            workDir="${build.4jdk7.dir}/JTwork"  
            reportDir="${build.4jdk7.dir}/JTreport">  
   
       <arg value="-Xbootclasspath/p:${4jdk7product.jar}"/>  
       <arg value="-agentvm"/>  
       <arg value="-v:nopass,fail"/>  
       <arg value="-vmoptions:-esa -ea"/>  
       <arg value="-automatic"/>  
       <arg value="-k:!ignore"/>  
     </jtreg>  
708    </target>    </target>
709    
710    
# Line 670  Line 724 
724               packagenames="none"               packagenames="none"
725               link="${jdkapi7docs.url}"               link="${jdkapi7docs.url}"
726               overview="${4jdk7src.dir}/intro.html"               overview="${4jdk7src.dir}/intro.html"
727                 access="${build.javadoc.access}"
728               sourcepath="${4jdk7src.dir}:${jdk7src.dir}"               sourcepath="${4jdk7src.dir}:${jdk7src.dir}"
729               classpath=""               classpath=""
730               executable="${javadoc7}">               executable="${javadoc7}">
# Line 761  Line 816 
816      <javadoc destdir="${jsr166xdocs.dir}"      <javadoc destdir="${jsr166xdocs.dir}"
817               packagenames="jsr166x.*"               packagenames="jsr166x.*"
818               link="${jdkapidocs.url}"               link="${jdkapidocs.url}"
819                 access="${build.javadoc.access}"
820               sourcepath="${topsrc.dir}:${jdk6src.dir}"               sourcepath="${topsrc.dir}:${jdk6src.dir}"
821               bootclasspath="${bootclasspath6}"               bootclasspath="${bootclasspath6}"
822               source="5"               source="5"
# Line 851  Line 907 
907      <javadoc destdir="${jsr166ydocs.dir}"      <javadoc destdir="${jsr166ydocs.dir}"
908               packagenames="jsr166y.*"               packagenames="jsr166y.*"
909               link="${jdkapidocs.url}"               link="${jdkapidocs.url}"
910                 access="${build.javadoc.access}"
911               sourcepath="${topsrc.dir}:${jdk6src.dir}"               sourcepath="${topsrc.dir}:${jdk6src.dir}"
912               bootclasspath="${bootclasspath6}"               bootclasspath="${bootclasspath6}"
913               source="6"               source="6"
# Line 941  Line 998 
998      <javadoc destdir="${extra166ydocs.dir}"      <javadoc destdir="${extra166ydocs.dir}"
999               packagenames="extra166y.*"               packagenames="extra166y.*"
1000               link="${jdkapidocs.url}"               link="${jdkapidocs.url}"
1001                 access="${build.javadoc.access}"
1002               sourcepath="${topsrc.dir}:${jdk6src.dir}"               sourcepath="${topsrc.dir}:${jdk6src.dir}"
1003               bootclasspath="${bootclasspath6}"               bootclasspath="${bootclasspath6}"
1004               source="6"               source="6"
# Line 1028  Line 1086 
1086      <javadoc destdir="${jsr166edocs.dir}"      <javadoc destdir="${jsr166edocs.dir}"
1087               packagenames="jsr166e.*"               packagenames="jsr166e.*"
1088               link="${jdkapidocs.url}"               link="${jdkapidocs.url}"
1089                 access="${build.javadoc.access}"
1090               sourcepath="${topsrc.dir}:${jdk7src.dir}"               sourcepath="${topsrc.dir}:${jdk7src.dir}"
1091               source="7"               source="7"
1092               executable="${javadoc7}">               executable="${javadoc7}">
# Line 1076  Line 1135 
1135      <mirror-dir src="${jsr166edocs.dir}" dst="${dist.jsr166edocs.dir}"/>      <mirror-dir src="${jsr166edocs.dir}" dst="${dist.jsr166edocs.dir}"/>
1136    </target>    </target>
1137    
1138    
1139    <!-- Find buglets that can be detected by static build tools -->
1140    
1141      <target name="lint">
1142        <antcall target="dists">
1143          <param name="build.javadoc.access" value="private"/>
1144        </antcall>
1145      </target>
1146    
1147    
1148  </project>  </project>

Legend:
Removed from v.1.128  
changed lines
  Added in v.1.136

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