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

Diff of /jsr166/build.xml

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

revision 1.141 by jsr166, Tue Jun 18 19:03:50 2013 UTC revision 1.144 by jsr166, Sun Jul 14 19:55:04 2013 UTC
# Line 309  As of 2013-02, the very latest lambda 8 Line 309  As of 2013-02, the very latest lambda 8
309    </target>    </target>
310    
311    
   <target name="test"  
           depends="configure-tests, report-tests"  
           description="Runs all tests (requires JUnit 3.8.1 in ${ant.home}/lib)" />  
   
   
312    <target name="docs"    <target name="docs"
313            description="Builds javadocs for src/main to dist dir">            description="Builds javadocs for src/main to dist dir">
314    
# Line 337  As of 2013-02, the very latest lambda 8 Line 332  As of 2013-02, the very latest lambda 8
332        <arg value="-XDignore.symbol.file=true"/>        <arg value="-XDignore.symbol.file=true"/>
333        <arg value="-tag"/>        <arg value="-tag"/>
334        <arg value="${javadoc.jls.option}"/>        <arg value="${javadoc.jls.option}"/>
335          <arg value="-tag"/>
336          <arg value="apiNote:a:&lt;em&gt;API Note:&lt;/em&gt;"/>
337          <arg value="-tag"/>
338          <arg value="implSpec:a:&lt;em&gt;Implementation Requirements:&lt;/em&gt;"/>
339          <arg value="-tag"/>
340          <arg value="implNote:a:&lt;em&gt;Implementation Note:&lt;/em&gt;"/>
341      </javadoc>      </javadoc>
342    </target>    </target>
343    
# Line 380  As of 2013-02, the very latest lambda 8 Line 381  As of 2013-02, the very latest lambda 8
381    </target>    </target>
382    
383    
   <!-- Internal targets -->  
   
   
384    <target name="dist-jar"    <target name="dist-jar"
385            depends="clean, jar">            depends="clean, jar">
386      <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 392  As of 2013-02, the very latest lambda 8
392    </target>    </target>
393    
394    
   <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>  
   
395    <target name="test-tck"    <target name="test-tck"
396            depends="jar"            depends="jar"
397            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 411  As of 2013-02, the very latest lambda 8
411         classes="${product.jar}"/>         classes="${product.jar}"/>
412    </target>    </target>
413    
414    <target name="test-ng"    <target name="test"
415            depends="test-tck, test-jtreg"            depends="test-tck, test-jtreg"
416            description="Runs tck and jtreg tests for main">            description="Runs tck and jtreg tests for main">
417    </target>    </target>
418    
   <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>  
419    
420    
421    <target name="configure-compiler">    <target name="configure-compiler">
# Line 571  As of 2013-02, the very latest lambda 8 Line 435  As of 2013-02, the very latest lambda 8
435    </target>    </target>
436    
437    
   <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>  
   
438    
439    <!-- Various demos and test programs -->    <!-- Various demos and test programs -->
440    
# Line 1058  As of 2013-02, the very latest lambda 8 Line 899  As of 2013-02, the very latest lambda 8
899    
900    <!-- jsr166e -->    <!-- jsr166e -->
901    
902      <property name="build.jsr166e.java.version" value="6"/>
903      <property name="build.jsr166e.javac" value="${javac6}"/>
904    
905    <target name="jsr166ecompile"    <target name="jsr166ecompile"
906            depends="configure-compiler"            depends="configure-compiler"
907            description="Compiles jsr166e sources">            description="Compiles jsr166e sources">
# Line 1069  As of 2013-02, the very latest lambda 8 Line 913  As of 2013-02, the very latest lambda 8
913             debug="${build.debug}"             debug="${build.debug}"
914             debuglevel="${build.debuglevel}"             debuglevel="${build.debuglevel}"
915             deprecation="${build.deprecation}"             deprecation="${build.deprecation}"
916             source="7"             source="${build.jsr166e.java.version}"
917             classpath=""             classpath=""
918             includeAntRuntime="false"             includeAntRuntime="false"
919             includeJavaRuntime="false"             includeJavaRuntime="false"
920             executable="${javac7}"             executable="${build.jsr166e.javac}"
921             fork="true">             fork="true">
922    
923        <include name="jsr166e/**/*.java"/>        <include name="jsr166e/**/*.java"/>
# Line 1106  As of 2013-02, the very latest lambda 8 Line 950  As of 2013-02, the very latest lambda 8
950               packagenames="jsr166e.*"               packagenames="jsr166e.*"
951               link="${jdkapidocs.url}"               link="${jdkapidocs.url}"
952               access="${build.javadoc.access}"               access="${build.javadoc.access}"
953               sourcepath="${topsrc.dir}:${jdk7src.dir}"               sourcepath="${topsrc.dir}:${jdk6src.dir}"
954               source="7"               source="${build.jsr166e.java.version}"
955               executable="${javadoc7}">               executable="${javadoc7}">
956        <arg value="-XDignore.symbol.file=true"/>        <arg value="-XDignore.symbol.file=true"/>
957    
# Line 1115  As of 2013-02, the very latest lambda 8 Line 959  As of 2013-02, the very latest lambda 8
959    </target>    </target>
960    
961    
962    <target name="jsr166e-test-tck"    <target name="jsr166e-test-tck-one-java-version"
963            depends="jsr166ejar"            depends="jsr166ejar"
964            description="Runs tck tests for jsr166e">            description="Runs tck tests for jsr166e">
965    
966        <echo message="Testing with jdk${build.jsr166e.java.version} ..."/>
967    
968      <run-tck-tests      <run-tck-tests
969        tck.src.dir="${test.src.dir}/tck-jsr166e"        tck.src.dir="${test.src.dir}/tck-jsr166e"
970        target="7"        target="${build.jsr166e.java.version}"
971        workdir="${build.jsr166e.dir}"        workdir="${build.jsr166e.dir}"
972        classes="${jsr166e.jar}"/>        classes="${jsr166e.jar}"/>
973    </target>    </target>
974    
975      <target name="jsr166e-test-tck"
976              description="Runs tck tests for jsr166e for multiple java versions">
977    
978    <!--     <antcall target="clean"/> -->
979    <!--     <antcall target="jsr166e-test-tck-one-java-version"> -->
980    <!--       <param name="build.jsr166e.java.version" value="8"/> -->
981    <!--       <param name="build.jsr166e.javac" value="${javac8}"/> -->
982    <!--     </antcall> -->
983    
984        <antcall target="clean"/>
985        <antcall target="jsr166e-test-tck-one-java-version">
986          <param name="build.jsr166e.java.version" value="7"/>
987          <param name="build.jsr166e.javac" value="${javac7}"/>
988        </antcall>
989    
990        <antcall target="clean"/>
991        <antcall target="jsr166e-test-tck-one-java-version">
992          <param name="build.jsr166e.java.version" value="6"/>
993          <param name="build.jsr166e.javac" value="${javac6}"/>
994        </antcall>
995      </target>
996    
997    
998    <target name="jsr166edist"    <target name="jsr166edist"
999            depends="jsr166edist-jar, jsr166edist-docs"            depends="jsr166edist-jar, jsr166edist-docs"

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

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