/[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.134 by jsr166, Sun Feb 3 02:25:01 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 243  Line 249 
249             fork="true">             fork="true">
250    
251        <include name="**/*.java"/>        <include name="**/*.java"/>
252          <compilerarg value="-Xprefer:source"/>
253        <compilerarg value="-XDignore.symbol.file=true"/>        <compilerarg value="-XDignore.symbol.file=true"/>
254        <compilerarg value="-Xlint:all"/>        <compilerarg value="-Xlint:all"/>
255        <compilerarg line="${build.args}"/>        <compilerarg line="${build.args}"/>
# Line 279  Line 286 
286               packagenames="none"               packagenames="none"
287               link="${jdkapi8docs.url}"               link="${jdkapi8docs.url}"
288               overview="${src.dir}/intro.html"               overview="${src.dir}/intro.html"
289                 access="${build.javadoc.access}"
290               sourcepath="${src.dir}:${jdk8src.dir}"               sourcepath="${src.dir}:${jdk8src.dir}"
291               classpath=""               classpath=""
292               executable="${javadoc8}">               executable="${javadoc8}">
# Line 408  Line 416 
416    
417    </target>    </target>
418    
419      <target name="test-tck"
420              depends="jar"
421              description="Runs tck tests for main directly">
422    
423        <run-tck-tests
424          target="8"
425          workdir="${build.dir}"
426          classes="${product.jar}"/>
427      </target>
428    
429    <target name="run-tests"    <target name="run-tests"
430            depends="compile-tests">            depends="compile-tests">
# Line 574  Line 591 
591             fork="true">             fork="true">
592    
593        <include name="**/*.java"/>        <include name="**/*.java"/>
594          <compilerarg value="-Xprefer:source"/>
595        <compilerarg value="-XDignore.symbol.file=true"/>        <compilerarg value="-XDignore.symbol.file=true"/>
596        <compilerarg value="-Xlint:all"/>        <compilerarg value="-Xlint:all"/>
597        <compilerarg line="${build.args}"/>        <compilerarg line="${build.args}"/>
# Line 600  Line 618 
618      <run-tck-tests      <run-tck-tests
619        target="7"        target="7"
620        workdir="${build.4jdk7.dir}"        workdir="${build.4jdk7.dir}"
621        classes="${4jdk7product.jar}"/>        classes="${4jdk7product.jar}">
622          <javac-elements>
623            <!-- JDK8+ test classes -->
624            <exclude name="StampedLockTest.java"/>
625          </javac-elements>
626        </run-tck-tests>
627    </target>    </target>
628    
629    
# Line 670  Line 693 
693               packagenames="none"               packagenames="none"
694               link="${jdkapi7docs.url}"               link="${jdkapi7docs.url}"
695               overview="${4jdk7src.dir}/intro.html"               overview="${4jdk7src.dir}/intro.html"
696                 access="${build.javadoc.access}"
697               sourcepath="${4jdk7src.dir}:${jdk7src.dir}"               sourcepath="${4jdk7src.dir}:${jdk7src.dir}"
698               classpath=""               classpath=""
699               executable="${javadoc7}">               executable="${javadoc7}">
# Line 761  Line 785 
785      <javadoc destdir="${jsr166xdocs.dir}"      <javadoc destdir="${jsr166xdocs.dir}"
786               packagenames="jsr166x.*"               packagenames="jsr166x.*"
787               link="${jdkapidocs.url}"               link="${jdkapidocs.url}"
788                 access="${build.javadoc.access}"
789               sourcepath="${topsrc.dir}:${jdk6src.dir}"               sourcepath="${topsrc.dir}:${jdk6src.dir}"
790               bootclasspath="${bootclasspath6}"               bootclasspath="${bootclasspath6}"
791               source="5"               source="5"
# Line 851  Line 876 
876      <javadoc destdir="${jsr166ydocs.dir}"      <javadoc destdir="${jsr166ydocs.dir}"
877               packagenames="jsr166y.*"               packagenames="jsr166y.*"
878               link="${jdkapidocs.url}"               link="${jdkapidocs.url}"
879                 access="${build.javadoc.access}"
880               sourcepath="${topsrc.dir}:${jdk6src.dir}"               sourcepath="${topsrc.dir}:${jdk6src.dir}"
881               bootclasspath="${bootclasspath6}"               bootclasspath="${bootclasspath6}"
882               source="6"               source="6"
# Line 941  Line 967 
967      <javadoc destdir="${extra166ydocs.dir}"      <javadoc destdir="${extra166ydocs.dir}"
968               packagenames="extra166y.*"               packagenames="extra166y.*"
969               link="${jdkapidocs.url}"               link="${jdkapidocs.url}"
970                 access="${build.javadoc.access}"
971               sourcepath="${topsrc.dir}:${jdk6src.dir}"               sourcepath="${topsrc.dir}:${jdk6src.dir}"
972               bootclasspath="${bootclasspath6}"               bootclasspath="${bootclasspath6}"
973               source="6"               source="6"
# Line 1028  Line 1055 
1055      <javadoc destdir="${jsr166edocs.dir}"      <javadoc destdir="${jsr166edocs.dir}"
1056               packagenames="jsr166e.*"               packagenames="jsr166e.*"
1057               link="${jdkapidocs.url}"               link="${jdkapidocs.url}"
1058                 access="${build.javadoc.access}"
1059               sourcepath="${topsrc.dir}:${jdk7src.dir}"               sourcepath="${topsrc.dir}:${jdk7src.dir}"
1060               source="7"               source="7"
1061               executable="${javadoc7}">               executable="${javadoc7}">
# Line 1076  Line 1104 
1104      <mirror-dir src="${jsr166edocs.dir}" dst="${dist.jsr166edocs.dir}"/>      <mirror-dir src="${jsr166edocs.dir}" dst="${dist.jsr166edocs.dir}"/>
1105    </target>    </target>
1106    
1107    
1108    <!-- Find buglets that can be detected by static build tools -->
1109    
1110      <target name="lint">
1111        <antcall target="dists">
1112          <param name="build.javadoc.access" value="private"/>
1113        </antcall>
1114      </target>
1115    
1116    
1117  </project>  </project>

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

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