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

Diff of /jsr166/build.xml

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

revision 1.113 by jsr166, Sun Jan 20 03:51:38 2013 UTC revision 1.117 by jsr166, Sun Jan 20 07:43:30 2013 UTC
# Line 35  Line 35 
35    
36    
37    <!-- Compilation options -->    <!-- Compilation options -->
38    <property name="build.sourcelevel"    value="1.6"/>    <property name="build.sourcelevel"    value="6"/>
39    <property name="build.debug"          value="true"/>    <property name="build.debug"          value="true"/>
40    <property name="build.debuglevel"     value="source,lines,vars"/>    <property name="build.debuglevel"     value="source,lines,vars"/>
41    <property name="build.deprecation"    value="false"/>    <property name="build.deprecation"    value="false"/>
# Line 57  Line 57 
57    <property name="build.jsr166e.dir"           location="${build.dir}/jsr166e"/>    <property name="build.jsr166e.dir"           location="${build.dir}/jsr166e"/>
58    <property name="build.extra166y.dir"         location="${build.dir}/extra166y"/>    <property name="build.extra166y.dir"         location="${build.dir}/extra166y"/>
59    
60      <property name="build.jsr166x.classes.dir"    location="${build.jsr166x.dir}/classes"/>
61      <property name="build.jsr166y.classes.dir"    location="${build.jsr166y.dir}/classes"/>
62      <property name="build.jsr166e.classes.dir"    location="${build.jsr166e.dir}/classes"/>
63      <property name="build.extra166y.classes.dir"  location="${build.extra166y.dir}/classes"/>
64    
65    <!-- JDK binary locations -->    <!-- JDK binary locations -->
66    <property name="jdks.home"  location="${user.home}/jdk"/>    <property name="jdks.home"  location="${user.home}/jdk"/>
67    
# Line 79  Line 84 
84    <defjdklocations v="8"/>    <defjdklocations v="8"/>
85    
86    <macrodef name="run-tck-tests">    <macrodef name="run-tck-tests">
87      <attribute name="jvm"/>      <attribute name="target"/>
88      <attribute name="tck.classes"/>      <attribute name="workdir"/>
89      <attribute name="product.jar" default="${product.jar}"/>      <attribute name="product.jar" default="${product.jar}"/>
90      <attribute name="jvmflags" default=""/>      <attribute name="jvmflags" default=""/>
91      <sequential>      <sequential>
92    
93        <mkdir dir="@{workdir}/tck-classes"/>
94    
95        <javac srcdir="${tck.src.dir}"
96               destdir="@{workdir}/tck-classes"
97               debug="${build.debug}"
98               debuglevel="${build.debuglevel}"
99               deprecation="${build.deprecation}"
100               source="6"
101               classpath="${junit.jar}"
102               bootclasspath="@{product.jar}:${bootclasspath6}"
103               includeAntRuntime="false"
104               includeJavaRuntime="false"
105               executable="${javac@{target}}"
106               fork="true">
107    
108          <include name="**/*.java"/>
109          <compilerarg value="-XDignore.symbol.file=true"/>
110          <compilerarg value="-Xlint:all,-unchecked,-rawtypes,-serial,-deprecation"/>
111          <compilerarg line="${build.args}"/>
112        </javac>
113    
114      <java classname="JSR166TestCase"      <java classname="JSR166TestCase"
115            jvm="@{jvm}" fork="true">            failonerror="true"
116              jvm="${java@{target}}"
117              fork="true">
118          <jvmarg value="-Xbootclasspath/p:@{product.jar}"/>          <jvmarg value="-Xbootclasspath/p:@{product.jar}"/>
119          <jvmarg line="@{jvmflags}"/>          <jvmarg line="@{jvmflags}"/>
120          <classpath>          <classpath>
121            <pathelement location="${junit.jar}"/>            <pathelement location="${junit.jar}"/>
122            <pathelement location="@{tck.classes}"/>            <pathelement location="@{workdir}/tck-classes"/>
123          </classpath>          </classpath>
124      </java>      </java>
125    
126      </sequential>      </sequential>
127    </macrodef>    </macrodef>
128    
# Line 143  Line 173 
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    
176      <!-- Define the "jtreg" task -->
177      <!-- See the docs in "jtreg -onlineHelp" -->
178      <taskdef name="jtreg" classname="com.sun.javatest.regtest.Main$$Ant"
179               classpath="${lib.dir}/jtreg.jar" />
180    
181    <!-- Test classpath -->    <!-- Test classpath -->
182    <path id="test.classpath">    <path id="test.classpath">
183      <pathelement location="${build.testcases.dir}"/>      <pathelement location="${build.testcases.dir}"/>
# Line 538  Line 573 
573    
574      </javac>      </javac>
575    
576      <jar destfile="${4jdk7product.jar}" index="true">    </target>
       <fileset dir="${build.4jdk7.classes.dir}"/>  
     </jar>  
   
     <mkdir dir="${build.4jdk7.tck.classes.dir}"/>  
   
     <javac srcdir="${tck.src.dir}"  
            destdir="${build.4jdk7.tck.classes.dir}"  
            debug="${build.debug}"  
            debuglevel="${build.debuglevel}"  
            deprecation="${build.deprecation}"  
            source="6"  
            classpath="${junit.jar}"  
            bootclasspath="${4jdk7product.jar}:${bootclasspath6}"  
            includeAntRuntime="false"  
            includeJavaRuntime="false"  
            executable="${javac7}"  
            fork="true">  
577    
578        <include name="**/*.java"/>    <target name="4jdk7-jar"
579        <compilerarg line="${build.args}"/>            depends="4jdk7compile"
580        <compilerarg value="-XDignore.symbol.file=true"/>            description="Builds library jar from compiled sources">
       <compilerarg value="-Xlint:all,-unchecked,-rawtypes,-serial,-deprecation"/>  
581    
582      </javac>      <jar destfile="${4jdk7product.jar}">
583          <fileset dir="${build.4jdk7.classes.dir}"/>
584        </jar>
585    
586    </target>    </target>
587    
588    
589    <target name="4jdk7-test-tck"    <target name="4jdk7-test-tck"
590            depends="4jdk7compile"            depends="4jdk7-jar"
591            description="Runs tck tests for jsr166-4jdk7 directly">            description="Runs tck tests for jsr166-4jdk7 directly">
592    
593      <run-tck-tests      <run-tck-tests
594        jvm="${java7}"        target="7"
595        tck.classes="${build.4jdk7.tck.classes.dir}"        workdir="${build.4jdk7.dir}"
596        product.jar="${4jdk7product.jar}"/>        product.jar="${4jdk7product.jar}"/>
597    </target>    </target>
598    
# Line 605  Line 625 
625      </junit>      </junit>
626    </target>    </target>
627    
628      <target name="4jdk7-test-jtreg"
629              depends="4jdk7compile"
630              description="Runs jtreg tests for jsr166-4jdk7 using the jtreg ant task">
631        <delete dir="${build.4jdk7.dir}/JTwork"   quiet="true"/>
632        <delete dir="${build.4jdk7.dir}/JTreport" quiet="true"/>
633        <mkdir dir="${build.4jdk7.dir}/JTwork/scratch"/>
634        <mkdir dir="${build.4jdk7.dir}/JTreport"/>
635        <jtreg dir="${jtreg.src.dir}"
636               jdk="${jdk7.home}"
637               workDir="${build.4jdk7.dir}/JTwork"
638               reportDir="${build.4jdk7.dir}/JTreport">
639    
640          <arg value="-Xbootclasspath/p:${4jdk7product.jar}"/>
641          <arg value="-agentvm"/>
642          <arg value="-v:nopass,fail"/>
643          <arg value="-vmoptions:-esa -ea"/>
644          <arg value="-automatic"/>
645          <arg value="-k:!ignore"/>
646        </jtreg>
647      </target>
648    
649    
650      <target name="4jdk7-test"
651              depends="4jdk7-test-tck, 4jdk7-test-jtreg"
652              description="Runs tck and jtreg tests for jsr166-4jdk7">
653      </target>
654    
655    
656    <target name="4jdk7docs"    <target name="4jdk7docs"
657            description="Builds javadocs for src/jdk7 to dist dir">            description="Builds javadocs for src/jdk7 to dist dir">
# Line 662  Line 709 
709            depends="configure-compiler"            depends="configure-compiler"
710            description="Compiles jsr166x sources to build dir">            description="Compiles jsr166x sources to build dir">
711    
712      <mkdir dir="${build.jsr166x.dir}"/>      <mkdir dir="${build.jsr166x.classes.dir}"/>
713    
714      <javac srcdir="${topsrc.dir}"      <javac srcdir="${topsrc.dir}"
715             destdir="${build.jsr166x.dir}"             destdir="${build.jsr166x.classes.dir}"
716             debug="${build.debug}"             debug="${build.debug}"
717             debuglevel="${build.debuglevel}"             debuglevel="${build.debuglevel}"
718             deprecation="${build.deprecation}"             deprecation="${build.deprecation}"
# Line 693  Line 740 
740            description="Builds library jar from compiled sources">            description="Builds library jar from compiled sources">
741    
742      <jar destfile="${jsr166x.jar}">      <jar destfile="${jsr166x.jar}">
743        <fileset dir="${build.jsr166x.dir}"/>        <fileset dir="${build.jsr166x.classes.dir}"/>
744      </jar>      </jar>
745    
746    </target>    </target>
# Line 713  Line 760 
760               bootclasspath="${bootclasspath6}"               bootclasspath="${bootclasspath6}"
761               sourcepath="${topsrc.dir}:${jdk6src.dir}"               sourcepath="${topsrc.dir}:${jdk6src.dir}"
762               executable="${javadoc7}"               executable="${javadoc7}"
763               additionalparam="-XDignore.symbol.file=true" />               additionalparam="-XDignore.symbol.file=true"/>
764    
765    </target>    </target>
766    
# Line 753  Line 800 
800            depends="configure-compiler"            depends="configure-compiler"
801            description="Compiles jsr166y sources">            description="Compiles jsr166y sources">
802    
803      <mkdir dir="${build.jsr166y.dir}"/>      <mkdir dir="${build.jsr166y.classes.dir}"/>
804    
805      <javac srcdir="${topsrc.dir}"      <javac srcdir="${topsrc.dir}"
806             destdir="${build.jsr166y.dir}"             destdir="${build.jsr166y.classes.dir}"
807             debug="${build.debug}"             debug="${build.debug}"
808             debuglevel="${build.debuglevel}"             debuglevel="${build.debuglevel}"
809             deprecation="${build.deprecation}"             deprecation="${build.deprecation}"
# Line 781  Line 828 
828            description="Builds library jar from compiled sources">            description="Builds library jar from compiled sources">
829    
830      <jar destfile="${jsr166y.jar}" index="true">      <jar destfile="${jsr166y.jar}" index="true">
831        <fileset dir="${build.jsr166y.dir}"/>        <fileset dir="${build.jsr166y.classes.dir}"/>
832      </jar>      </jar>
833    
834    </target>    </target>
# Line 801  Line 848 
848               bootclasspath="${bootclasspath6}"               bootclasspath="${bootclasspath6}"
849               sourcepath="${topsrc.dir}:${jdk6src.dir}"               sourcepath="${topsrc.dir}:${jdk6src.dir}"
850               executable="${javadoc7}"               executable="${javadoc7}"
851               additionalparam="-XDignore.symbol.file=true" />               additionalparam="-XDignore.symbol.file=true"/>
852    
853    </target>    </target>
854    
# Line 841  Line 888 
888            depends="configure-compiler, jsr166yjar"            depends="configure-compiler, jsr166yjar"
889            description="Compiles extra166y sources">            description="Compiles extra166y sources">
890    
891      <mkdir dir="${build.extra166y.dir}"/>      <mkdir dir="${build.extra166y.classes.dir}"/>
892    
893      <javac srcdir="${topsrc.dir}"      <javac srcdir="${topsrc.dir}"
894             destdir="${build.extra166y.dir}"             destdir="${build.extra166y.classes.dir}"
895             debug="${build.debug}"             debug="${build.debug}"
896             debuglevel="${build.debuglevel}"             debuglevel="${build.debuglevel}"
897             deprecation="${build.deprecation}"             deprecation="${build.deprecation}"
# Line 872  Line 919 
919            description="Builds library jar from compiled sources">            description="Builds library jar from compiled sources">
920    
921      <jar destfile="${extra166y.jar}" index="true">      <jar destfile="${extra166y.jar}" index="true">
922        <fileset dir="${build.extra166y.dir}"/>        <fileset dir="${build.extra166y.classes.dir}"/>
923      </jar>      </jar>
924    
925    </target>    </target>
# Line 892  Line 939 
939               bootclasspath="${bootclasspath6}"               bootclasspath="${bootclasspath6}"
940               sourcepath="${topsrc.dir}:${jdk6src.dir}"               sourcepath="${topsrc.dir}:${jdk6src.dir}"
941               executable="${javadoc7}"               executable="${javadoc7}"
942               additionalparam="-XDignore.symbol.file=true" />               additionalparam="-XDignore.symbol.file=true"/>
943    
944    </target>    </target>
945    
# Line 930  Line 977 
977            depends="configure-compiler"            depends="configure-compiler"
978            description="Compiles jsr166e sources">            description="Compiles jsr166e sources">
979    
980      <mkdir dir="${build.jsr166e.dir}"/>      <mkdir dir="${build.jsr166e.classes.dir}"/>
981    
982      <javac srcdir="${topsrc.dir}"      <javac srcdir="${topsrc.dir}"
983             destdir="${build.jsr166e.dir}"             destdir="${build.jsr166e.classes.dir}"
984             debug="${build.debug}"             debug="${build.debug}"
985             debuglevel="${build.debuglevel}"             debuglevel="${build.debuglevel}"
986             deprecation="${build.deprecation}"             deprecation="${build.deprecation}"
# Line 960  Line 1007 
1007            description="Builds library jar from compiled sources">            description="Builds library jar from compiled sources">
1008    
1009      <jar destfile="${jsr166e.jar}" index="true">      <jar destfile="${jsr166e.jar}" index="true">
1010        <fileset dir="${build.jsr166e.dir}"/>        <fileset dir="${build.jsr166e.classes.dir}"/>
1011      </jar>      </jar>
1012    
1013    </target>    </target>

Legend:
Removed from v.1.113  
changed lines
  Added in v.1.117

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