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

Diff of /jsr166/build.xml

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

revision 1.140 by jsr166, Mon May 20 19:12:23 2013 UTC revision 1.148 by jsr166, Sat Jul 20 18:26:16 2013 UTC
# Line 26  As of 2013-02, the very latest lambda 8 Line 26  As of 2013-02, the very latest lambda 8
26  ------------------------------------------------------------------------------  ------------------------------------------------------------------------------
27    </description>    </description>
28    
29    <target name="usage" description="Display main targets by running 'ant -projecthelp'">    <!-- Display main targets by running 'ant -projecthelp' -->
30      <target name="usage">
31      <java classname="org.apache.tools.ant.Main">      <java classname="org.apache.tools.ant.Main">
32        <arg value="-projecthelp" />        <arg value="-projecthelp" />
33      </java>      </java>
# Line 293  As of 2013-02, the very latest lambda 8 Line 294  As of 2013-02, the very latest lambda 8
294        <compilerarg value="-Xprefer:source"/>        <compilerarg value="-Xprefer:source"/>
295        <compilerarg value="-XDignore.symbol.file=true"/>        <compilerarg value="-XDignore.symbol.file=true"/>
296        <compilerarg value="-Xlint:all"/>        <compilerarg value="-Xlint:all"/>
297          <compilerarg value="-Xdoclint:all/protected"/>
298          <compilerarg line="-Xmaxerrs 1000 -Xmaxwarns 1000"/>
299        <compilerarg line="${build.args}"/>        <compilerarg line="${build.args}"/>
300    
301      </javac>      </javac>
# Line 309  As of 2013-02, the very latest lambda 8 Line 312  As of 2013-02, the very latest lambda 8
312    </target>    </target>
313    
314    
   <target name="test"  
           depends="configure-tests, report-tests"  
           description="Runs all tests (requires JUnit 3.8.1 in ${ant.home}/lib)" />  
   
   
315    <target name="docs"    <target name="docs"
316            description="Builds javadocs for src/main to dist dir">            description="Builds javadocs for src/main to dist dir">
317    
# Line 334  As of 2013-02, the very latest lambda 8 Line 332  As of 2013-02, the very latest lambda 8
332        <fileset dir="${src.dir}" defaultexcludes="yes">        <fileset dir="${src.dir}" defaultexcludes="yes">
333          <include name="**/*.java"/>          <include name="**/*.java"/>
334        </fileset>        </fileset>
335          <arg line="-Xmaxerrs 1000 -Xmaxwarns 1000"/>
336        <arg value="-XDignore.symbol.file=true"/>        <arg value="-XDignore.symbol.file=true"/>
337        <arg value="-tag"/>        <arg value="-tag"/>
338        <arg value="${javadoc.jls.option}"/>        <arg value="${javadoc.jls.option}"/>
339          <arg value="-tag"/>
340          <arg value="apiNote:a:&lt;em&gt;API Note:&lt;/em&gt;"/>
341          <arg value="-tag"/>
342          <arg value="implSpec:a:&lt;em&gt;Implementation Requirements:&lt;/em&gt;"/>
343          <arg value="-tag"/>
344          <arg value="implNote:a:&lt;em&gt;Implementation Note:&lt;/em&gt;"/>
345      </javadoc>      </javadoc>
346    </target>    </target>
347    
# Line 375  As of 2013-02, the very latest lambda 8 Line 380  As of 2013-02, the very latest lambda 8
380    <target name="dist-clean"    <target name="dist-clean"
381            description="Removes all build and distribution products">            description="Removes all build and distribution products">
382    
383        <delete dir="${build.dir}"/>
384      <delete dir="${dist.dir}"/>      <delete dir="${dist.dir}"/>
385    
386    </target>    </target>
387    
388    
   <!-- Internal targets -->  
   
   
389    <target name="dist-jar"    <target name="dist-jar"
390            depends="clean, jar">            depends="clean, jar">
391      <copy file="${product.jar}" todir="${dist.dir}"/>      <copy file="${product.jar}" todir="${dist.dir}"/>
# Line 394  As of 2013-02, the very latest lambda 8 Line 397  As of 2013-02, the very latest lambda 8
397    </target>    </target>
398    
399    
   <target name="compile-tests"  
           depends="jar">  
   
     <mkdir dir="${build.testcases.dir}"/>  
   
     <javac srcdir="${tck.src.dir}"  
            destdir="${build.testcases.dir}"  
            debug="${build.debug}"  
            debuglevel="${build.debuglevel}"  
            deprecation="${build.deprecation}"  
            source="6"  
            classpath="${junit.jar}"  
            bootclasspath="@{product.jar}:${bootclasspath6}"  
            includeAntRuntime="false"  
            includeJavaRuntime="false"  
            executable="${javac8}"  
            fork="true">  
   
       <include name="**/*.java"/>  
       <compilerarg value="-XDignore.symbol.file=true"/>  
       <compilerarg value="-Xlint:all,-unchecked,-rawtypes,-serial,-deprecation"/>  
       <compilerarg line="${build.args}"/>  
   
     </javac>  
   
     <javac srcdir="${test.src.dir}"  
            destdir="${build.testcases.dir}"  
            debug="${build.debug}"  
            debuglevel="${build.debuglevel}"  
            deprecation="${build.deprecation}"  
            source="6"  
            classpath=""  
            bootclasspath="@{product.jar}:${bootclasspath6}"  
            includeAntRuntime="false"  
            includeJavaRuntime="false"  
            executable="${javac8}"  
            fork="true">  
   
       <include name="jsr166/test/**/*.java"/>  
       <compilerarg value="-XDignore.symbol.file=true"/>  
       <compilerarg value="-Xlint:all,-unchecked,-rawtypes,-serial,-deprecation"/>  
       <compilerarg line="${build.args}"/>  
   
     </javac>  
   
 <!--  
     <javac srcdir="${jtreg.src.dir}"  
           destdir="${build.testcases.dir}"  
             debug="${build.debug}"  
        debuglevel="${build.debuglevel}"  
       deprecation="${build.deprecation}"  
            source="${build.sourcelevel}"  
              fork="true">  
   
       <compilerarg value="-Xbootclasspath/p:${product.jar}"/>  
       <compilerarg value="-XDignore.symbol.file=true"/>  
       <compilerarg line="${build.args}"/>  
   
     </javac>  
 -->  
   
   </target>  
   
400    <target name="test-tck"    <target name="test-tck"
401            depends="jar"            depends="jar"
402            description="Runs tck tests for main directly">            description="Runs tck tests for main directly">
# Line 476  As of 2013-02, the very latest lambda 8 Line 416  As of 2013-02, the very latest lambda 8
416         classes="${product.jar}"/>         classes="${product.jar}"/>
417    </target>    </target>
418    
419    <target name="test-ng"    <target name="test"
420            depends="test-tck, test-jtreg"            depends="test-tck, test-jtreg"
421            description="Runs tck and jtreg tests for main">            description="Runs tck and jtreg tests for main">
422    </target>    </target>
423    
   <target name="run-tests"  
           depends="compile-tests">  
   
     <!-- May be overridden by user.properties -->  
     <property name="testcase" value="*"/>  
   
     <mkdir dir="${build.reports.dir}"/>  
   
     <junit printsummary="true"  
              showoutput="true"  
           errorProperty="junit.failed"  
         failureProperty="junit.failed"  
                     dir="${build.reports.dir}"  
                     jvm="${java8}"  
                    fork="true">  
   
       <jvmarg value="-Xbootclasspath/p:${product.jar}"/>  
       <jvmarg value="-server"/>  
       <jvmarg value="-showversion"/>  
   
       <classpath refid="test.classpath"/>  
   
       <formatter type="xml"/>  
   
       <batchtest todir="${build.reports.dir}" unless="no.test.tck">  
         <fileset dir="${tck.src.dir}">  
           <include name="**/${testcase}Test.java"/>  
         </fileset>  
       </batchtest>  
   
       <batchtest todir="${build.reports.dir}" if="do.test.old">  
         <fileset dir="${test.src.dir}">  
           <include name="jsr166/test/**/${testcase}Test.java"/>  
         </fileset>  
       </batchtest>  
   
 <!--  
       <batchtest todir="${build.reports.dir}" if="do.test.jtreg">  
         <fileset dir="${jtreg.src.dir}">  
           <include name="**/${testcase}Test.java"/>  
         </fileset>  
       </batchtest>  
 -->  
   
     </junit>  
   
   </target>  
   
   
   <target name="report-tests"  
           depends="run-tests">  
   
     <!-- Sets junit.report.format to frames if redirection is present,  
          otherwise sets it to noframes. -->  
     <available property="junit.report.format"  
                   value="frames"  
               classname="org.apache.xalan.lib.Redirect"  
     />  
     <property name="junit.report.format" value="noframes"/>  
   
     <junitreport todir="${build.reports.dir}">  
       <fileset dir="${build.reports.dir}">  
         <include name="TEST-*.xml"/>  
       </fileset>  
       <report format="${junit.report.format}" todir="${build.reports.dir}"  
       />  
     </junitreport>  
   
     <fail message="Test Cases Failed" if="junit.failed"/>  
   
   </target>  
424    
425    
426    <target name="configure-compiler">    <target name="configure-compiler">
# Line 571  As of 2013-02, the very latest lambda 8 Line 440  As of 2013-02, the very latest lambda 8
440    </target>    </target>
441    
442    
   <target name="configure-tests"  
        depends="configure-compiler">  
   
     <!-- junit.framework.Protectable is in JUnit 3.8.1 but not in 3.7 -->  
     <available property="junit.available"  
                classname="junit.framework.Protectable"/>  
   
     <!-- Xalan -->  
     <available property="xalan.available"  
                classname="org.apache.xalan.Version"/>  
   
   
     <!-- Ant 1.6beta and later don't need or want this check -->  
     <!--  
     <fail message="Need JUnit 3.8.1 in ${ant.home}${file.separator}lib to run tests"  
           unless="junit.available"/>  
   
     <fail message="Need Xalan 2.5.1 jar in ${ant.home}${file.separator}lib to run tests"  
           unless="xalan.available"/>  
     -->  
   
   </target>  
   
443    
444    <!-- Various demos and test programs -->    <!-- Various demos and test programs -->
445    
# Line 682  As of 2013-02, the very latest lambda 8 Line 528  As of 2013-02, the very latest lambda 8
528          <exclude name="LongAccumulatorTest.java"/>          <exclude name="LongAccumulatorTest.java"/>
529          <exclude name="LongAdderTest.java"/>          <exclude name="LongAdderTest.java"/>
530          <exclude name="CompletableFutureTest.java"/>          <exclude name="CompletableFutureTest.java"/>
531            <exclude name="SplittableRandomTest.java"/>
532          <exclude name="StampedLockTest.java"/>          <exclude name="StampedLockTest.java"/>
533        </javac-elements>        </javac-elements>
534      </run-tck-tests>      </run-tck-tests>
# Line 722  As of 2013-02, the very latest lambda 8 Line 569  As of 2013-02, the very latest lambda 8
569      <run-jtreg-tests      <run-jtreg-tests
570         target="7"         target="7"
571         workdir="${build.4jdk7.dir}"         workdir="${build.4jdk7.dir}"
572         classes="${4jdk7product.jar}"/>         classes="${4jdk7product.jar}"
573           jtregflags="-exclude:${jtreg.src.dir}/jdk8tests"/>
574    </target>    </target>
575    
576    
# Line 767  As of 2013-02, the very latest lambda 8 Line 615  As of 2013-02, the very latest lambda 8
615    </target>    </target>
616    
617    
   <target name="4jdk7dist-clean"  
           description="Removes all build and distribution products">  
   
   </target>  
   
618    <target name="4jdk7dist-jar"    <target name="4jdk7dist-jar"
619            depends="4jdk7clean, 4jdk7jar">            depends="4jdk7clean, 4jdk7jar">
620      <copy file="${4jdk7product.jar}" todir="${dist.dir}"/>      <copy file="${4jdk7product.jar}" todir="${dist.dir}"/>
# Line 858  As of 2013-02, the very latest lambda 8 Line 701  As of 2013-02, the very latest lambda 8
701    </target>    </target>
702    
703    
   <target name="jsr166xdist-clean"  
           description="Removes all build and distribution products">  
   
   </target>  
   
   
704    <target name="jsr166xdist-jar"    <target name="jsr166xdist-jar"
705            depends="jsr166xclean, jsr166xjar">            depends="jsr166xclean, jsr166xjar">
706      <copy file="${jsr166x.jar}" todir="${dist.dir}"/>      <copy file="${jsr166x.jar}" todir="${dist.dir}"/>
# Line 949  As of 2013-02, the very latest lambda 8 Line 786  As of 2013-02, the very latest lambda 8
786    </target>    </target>
787    
788    
   <target name="jsr166ydist-clean"  
           description="Removes all build and distribution products">  
   
   </target>  
   
789    <target name="jsr166ydist-jar"    <target name="jsr166ydist-jar"
790            depends="jsr166yclean, jsr166yjar">            depends="jsr166yclean, jsr166yjar">
791      <copy file="${jsr166y.jar}" todir="${dist.dir}"/>      <copy file="${jsr166y.jar}" todir="${dist.dir}"/>
# Line 1040  As of 2013-02, the very latest lambda 8 Line 872  As of 2013-02, the very latest lambda 8
872    </target>    </target>
873    
874    
   <target name="extra166ydist-clean"  
           description="Removes all build and distribution products">  
   
   </target>  
   
875    <target name="extra166ydist-jar"    <target name="extra166ydist-jar"
876            depends="extra166yclean, extra166yjar">            depends="extra166yclean, extra166yjar">
877      <copy file="${extra166y.jar}" todir="${dist.dir}"/>      <copy file="${extra166y.jar}" todir="${dist.dir}"/>
# Line 1057  As of 2013-02, the very latest lambda 8 Line 884  As of 2013-02, the very latest lambda 8
884    
885    <!-- jsr166e -->    <!-- jsr166e -->
886    
887      <property name="build.jsr166e.java.version" value="6"/>
888      <property name="build.jsr166e.javac" value="${javac6}"/>
889    
890    <target name="jsr166ecompile"    <target name="jsr166ecompile"
891            depends="configure-compiler"            depends="configure-compiler"
892            description="Compiles jsr166e sources">            description="Compiles jsr166e sources">
# Line 1068  As of 2013-02, the very latest lambda 8 Line 898  As of 2013-02, the very latest lambda 8
898             debug="${build.debug}"             debug="${build.debug}"
899             debuglevel="${build.debuglevel}"             debuglevel="${build.debuglevel}"
900             deprecation="${build.deprecation}"             deprecation="${build.deprecation}"
901             source="7"             source="${build.jsr166e.java.version}"
902             classpath=""             classpath=""
903             includeAntRuntime="false"             includeAntRuntime="false"
904             includeJavaRuntime="false"             includeJavaRuntime="false"
905             executable="${javac7}"             executable="${build.jsr166e.javac}"
906             fork="true">             fork="true">
907    
908        <include name="jsr166e/**/*.java"/>        <include name="jsr166e/**/*.java"/>
# Line 1105  As of 2013-02, the very latest lambda 8 Line 935  As of 2013-02, the very latest lambda 8
935               packagenames="jsr166e.*"               packagenames="jsr166e.*"
936               link="${jdkapidocs.url}"               link="${jdkapidocs.url}"
937               access="${build.javadoc.access}"               access="${build.javadoc.access}"
938               sourcepath="${topsrc.dir}:${jdk7src.dir}"               sourcepath="${topsrc.dir}:${jdk6src.dir}"
939               source="7"               source="${build.jsr166e.java.version}"
940               executable="${javadoc7}">               executable="${javadoc7}">
941        <arg value="-XDignore.symbol.file=true"/>        <arg value="-XDignore.symbol.file=true"/>
942    
# Line 1114  As of 2013-02, the very latest lambda 8 Line 944  As of 2013-02, the very latest lambda 8
944    </target>    </target>
945    
946    
947    <target name="jsr166e-test-tck"    <target name="jsr166e-test-tck-one-java-version"
948            depends="jsr166ejar"            depends="jsr166ejar">
949            description="Runs tck tests for jsr166e">  
950        <echo message="Testing with jdk${build.jsr166e.java.version} ..."/>
951    
952      <run-tck-tests      <run-tck-tests
953        tck.src.dir="${test.src.dir}/tck-jsr166e"        tck.src.dir="${test.src.dir}/tck-jsr166e"
954        target="7"        target="${build.jsr166e.java.version}"
955        workdir="${build.jsr166e.dir}"        workdir="${build.jsr166e.dir}"
956        classes="${jsr166e.jar}"/>        classes="${jsr166e.jar}"/>
957    </target>    </target>
958    
959      <target name="jsr166e-test-tck"
960              description="Runs tck tests for jsr166e for multiple java versions">
961    
962    <!--     <antcall target="clean"/> -->
963    <!--     <antcall target="jsr166e-test-tck-one-java-version"> -->
964    <!--       <param name="build.jsr166e.java.version" value="8"/> -->
965    <!--       <param name="build.jsr166e.javac" value="${javac8}"/> -->
966    <!--     </antcall> -->
967    
968        <antcall target="clean"/>
969        <antcall target="jsr166e-test-tck-one-java-version">
970          <param name="build.jsr166e.java.version" value="7"/>
971          <param name="build.jsr166e.javac" value="${javac7}"/>
972        </antcall>
973    
974        <antcall target="clean"/>
975        <antcall target="jsr166e-test-tck-one-java-version">
976          <param name="build.jsr166e.java.version" value="6"/>
977          <param name="build.jsr166e.javac" value="${javac6}"/>
978        </antcall>
979      </target>
980    
981    
982      <target name="jsr166e-test"
983              depends="jsr166e-test-tck"
984              description="Runs all tests for jsr166e">
985      </target>
986    
987    <target name="jsr166edist"    <target name="jsr166edist"
988            depends="jsr166edist-jar, jsr166edist-docs"            depends="jsr166edist-jar, jsr166edist-docs"
# Line 1137  As of 2013-02, the very latest lambda 8 Line 995  As of 2013-02, the very latest lambda 8
995    </target>    </target>
996    
997    
   <target name="jsr166edist-clean"  
           description="Removes all build and distribution products">  
   
   </target>  
   
998    <target name="jsr166edist-jar"    <target name="jsr166edist-jar"
999            depends="jsr166eclean, jsr166ejar">            depends="jsr166eclean, jsr166ejar">
1000      <copy file="${jsr166e.jar}" todir="${dist.dir}"/>      <copy file="${jsr166e.jar}" todir="${dist.dir}"/>

Legend:
Removed from v.1.140  
changed lines
  Added in v.1.148

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