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

Diff of /jsr166/build.xml

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

revision 1.126 by jsr166, Wed Jan 23 06:46:27 2013 UTC revision 1.130 by jsr166, Mon Jan 28 22:00:34 2013 UTC
# Line 25  Line 25 
25  ------------------------------------------------------------------------------  ------------------------------------------------------------------------------
26    </description>    </description>
27    
28    <target name="usage" description="Advises user to run with -projecthelp">    <target name="usage" description="Display main targets by running 'ant -projecthelp'">
29      <echo>Run "ant -projecthelp" for full usage information.</echo>      <java classname="org.apache.tools.ant.Main">
30          <arg value="-projecthelp" />
31        </java>
32    </target>    </target>
33    
34    
# Line 39  Line 41 
41    <property name="build.debug"          value="true"/>    <property name="build.debug"          value="true"/>
42    <property name="build.debuglevel"     value="source,lines,vars"/>    <property name="build.debuglevel"     value="source,lines,vars"/>
43    <property name="build.deprecation"    value="false"/>    <property name="build.deprecation"    value="false"/>
44      <property name="build.javadoc.access" value="protected"/>
45    
46    <!-- Build locations -->    <!-- Build locations -->
47    <property name="build.dir"                   location="build"/>    <property name="build.dir"                   location="build"/>
# Line 118  Line 121 
121    <property name="extra166ysrc.dir"     location="${topsrc.dir}/extra166y"/>    <property name="extra166ysrc.dir"     location="${topsrc.dir}/extra166y"/>
122    
123    <!-- Javadoc locations -->    <!-- Javadoc locations -->
124    <property name="javadocs.dir"          location="${build.dir}/javadocs"/>    <property name="docs.dir"          location="${build.dir}/docs"/>
125    <property name="4jdk7javadocs.dir"     location="${build.4jdk7.dir}/javadocs"/>    <property name="4jdk7docs.dir"     location="${build.4jdk7.dir}/docs"/>
126    <property name="jsr166xjavadocs.dir"   location="${build.jsr166x.dir}/javadocs"/>    <property name="jsr166xdocs.dir"   location="${build.jsr166x.dir}/docs"/>
127    <property name="jsr166yjavadocs.dir"   location="${build.jsr166y.dir}/javadocs"/>    <property name="jsr166ydocs.dir"   location="${build.jsr166y.dir}/docs"/>
128    <property name="jsr166ejavadocs.dir"   location="${build.jsr166e.dir}/javadocs"/>    <property name="jsr166edocs.dir"   location="${build.jsr166e.dir}/docs"/>
129    <property name="extra166yjavadocs.dir" location="${build.extra166y.dir}/javadocs"/>    <property name="extra166ydocs.dir" location="${build.extra166y.dir}/docs"/>
130    
131    <property name="dist.javadocs.dir"          location="${dist.dir}/docs"/>    <property name="dist.docs.dir"          location="${dist.dir}/docs"/>
132    <property name="dist.4jdk7javadocs.dir"     location="${dist.dir}/jsr166-4jdk7docs"/>    <property name="dist.4jdk7docs.dir"     location="${dist.dir}/jsr166-4jdk7docs"/>
133    <property name="dist.jsr166xjavadocs.dir"   location="${dist.dir}/jsr166xdocs"/>    <property name="dist.jsr166xdocs.dir"   location="${dist.dir}/jsr166xdocs"/>
134    <property name="dist.jsr166yjavadocs.dir"   location="${dist.dir}/jsr166ydocs"/>    <property name="dist.jsr166ydocs.dir"   location="${dist.dir}/jsr166ydocs"/>
135    <property name="dist.jsr166ejavadocs.dir"   location="${dist.dir}/jsr166edocs"/>    <property name="dist.jsr166edocs.dir"   location="${dist.dir}/jsr166edocs"/>
136    <property name="dist.extra166yjavadocs.dir" location="${dist.dir}/extra166ydocs"/>    <property name="dist.extra166ydocs.dir" location="${dist.dir}/extra166ydocs"/>
137    
138    <!-- Jar locations -->    <!-- Jar locations -->
139    <property name="product.jar"      location="${build.dir}/jsr166.jar"/>    <property name="product.jar"      location="${build.dir}/jsr166.jar"/>
# Line 269  Line 272 
272    <target name="docs"    <target name="docs"
273            description="Builds javadocs for src/main to dist dir">            description="Builds javadocs for src/main to dist dir">
274    
275      <delete dir="${javadocs.dir}"/>      <delete dir="${docs.dir}"/>
276      <mkdir dir="${javadocs.dir}"/>      <mkdir dir="${docs.dir}"/>
277    
278      <!-- the packagenames="none" hack below prevents scanning the -->      <!-- the packagenames="none" hack below prevents scanning the -->
279      <!-- sourcepath for packages -->      <!-- sourcepath for packages -->
280    
281      <javadoc destdir="${javadocs.dir}"      <javadoc destdir="${docs.dir}"
282               packagenames="none"               packagenames="none"
283               link="${jdkapi8docs.url}"               link="${jdkapi8docs.url}"
284               overview="${src.dir}/intro.html"               overview="${src.dir}/intro.html"
285                 access="${build.javadoc.access}"
286               sourcepath="${src.dir}:${jdk8src.dir}"               sourcepath="${src.dir}:${jdk8src.dir}"
287               classpath=""               classpath=""
288               executable="${javadoc8}">               executable="${javadoc8}">
# Line 341  Line 345 
345    
346    <target name="dist-docs"    <target name="dist-docs"
347            depends="clean, docs">            depends="clean, docs">
348      <mirror-dir src="${javadocs.dir}" dst="${dist.javadocs.dir}"/>      <mirror-dir src="${docs.dir}" dst="${dist.docs.dir}"/>
349    </target>    </target>
350    
351    
# Line 582  Line 586 
586    </target>    </target>
587    
588    
589    <target name="4jdk7-jar"    <target name="4jdk7jar"
590            depends="4jdk7compile"            depends="4jdk7compile"
591            description="Builds library jar from compiled sources">            description="Builds library jar from compiled sources">
592    
# Line 594  Line 598 
598    
599    
600    <target name="4jdk7-test-tck"    <target name="4jdk7-test-tck"
601            depends="4jdk7-jar"            depends="4jdk7jar"
602            description="Runs tck tests for jsr166-4jdk7 directly">            description="Runs tck tests for jsr166-4jdk7 directly">
603    
604      <run-tck-tests      <run-tck-tests
# Line 663  Line 667 
667    <target name="4jdk7docs"    <target name="4jdk7docs"
668            description="Builds javadocs for src/jdk7 to dist dir">            description="Builds javadocs for src/jdk7 to dist dir">
669    
670      <delete dir="${4jdk7javadocs.dir}"/>      <delete dir="${4jdk7docs.dir}"/>
671      <mkdir dir="${4jdk7javadocs.dir}"/>      <mkdir dir="${4jdk7docs.dir}"/>
672    
673      <javadoc destdir="${4jdk7javadocs.dir}"      <javadoc destdir="${4jdk7docs.dir}"
674               packagenames="none"               packagenames="none"
675               link="${jdkapi7docs.url}"               link="${jdkapi7docs.url}"
676               overview="${4jdk7src.dir}/intro.html"               overview="${4jdk7src.dir}/intro.html"
677                 access="${build.javadoc.access}"
678               sourcepath="${4jdk7src.dir}:${jdk7src.dir}"               sourcepath="${4jdk7src.dir}:${jdk7src.dir}"
679               classpath=""               classpath=""
680               executable="${javadoc7}">               executable="${javadoc7}">
# Line 700  Line 705 
705    </target>    </target>
706    
707    <target name="4jdk7dist-jar"    <target name="4jdk7dist-jar"
708            depends="4jdk7clean, 4jdk7-jar">            depends="4jdk7clean, 4jdk7jar">
709      <copy file="${4jdk7product.jar}" todir="${dist.dir}"/>      <copy file="${4jdk7product.jar}" todir="${dist.dir}"/>
710    </target>    </target>
711    
712    
713    <target name="4jdk7dist-docs"    <target name="4jdk7dist-docs"
714            depends="4jdk7clean, 4jdk7docs">            depends="4jdk7clean, 4jdk7docs">
715      <mirror-dir src="${4jdk7javadocs.dir}" dst="${dist.4jdk7javadocs.dir}"/>      <mirror-dir src="${4jdk7docs.dir}" dst="${dist.4jdk7docs.dir}"/>
716    </target>    </target>
717    
718    
# Line 741  Line 746 
746    </target>    </target>
747    
748    
749    <target name="jsr166x-jar"    <target name="jsr166xjar"
750            depends="jsr166xcompile"            depends="jsr166xcompile"
751            description="Builds library jar from compiled sources">            description="Builds library jar from compiled sources">
752    
# Line 755  Line 760 
760    <target name="jsr166xdocs"    <target name="jsr166xdocs"
761            description="Builds javadocs to dist dir">            description="Builds javadocs to dist dir">
762    
763      <delete dir="${jsr166xjavadocs.dir}"/>      <delete dir="${jsr166xdocs.dir}"/>
764      <mkdir dir="${jsr166xjavadocs.dir}"/>      <mkdir dir="${jsr166xdocs.dir}"/>
765    
766      <javadoc destdir="${jsr166xjavadocs.dir}"      <javadoc destdir="${jsr166xdocs.dir}"
767               packagenames="jsr166x.*"               packagenames="jsr166x.*"
768               link="${jdkapidocs.url}"               link="${jdkapidocs.url}"
769                 access="${build.javadoc.access}"
770               sourcepath="${topsrc.dir}:${jdk6src.dir}"               sourcepath="${topsrc.dir}:${jdk6src.dir}"
771               bootclasspath="${bootclasspath6}"               bootclasspath="${bootclasspath6}"
772               source="5"               source="5"
# Line 791  Line 797 
797    
798    
799    <target name="jsr166xdist-jar"    <target name="jsr166xdist-jar"
800            depends="jsr166xclean, jsr166x-jar">            depends="jsr166xclean, jsr166xjar">
801      <copy file="${jsr166x.jar}" todir="${dist.dir}"/>      <copy file="${jsr166x.jar}" todir="${dist.dir}"/>
802    </target>    </target>
803    
804    <target name="jsr166xdist-docs"    <target name="jsr166xdist-docs"
805            depends="jsr166xclean, jsr166xdocs">            depends="jsr166xclean, jsr166xdocs">
806      <mirror-dir src="${jsr166xjavadocs.dir}" dst="${dist.jsr166xjavadocs.dir}"/>      <mirror-dir src="${jsr166xdocs.dir}" dst="${dist.jsr166xdocs.dir}"/>
807    </target>    </target>
808    
809    <!-- jsr166y -->    <!-- jsr166y -->
# Line 831  Line 837 
837    </target>    </target>
838    
839    
840    <target name="jsr166y-jar"    <target name="jsr166yjar"
841            depends="jsr166ycompile"            depends="jsr166ycompile"
842            description="Builds library jar from compiled sources">            description="Builds library jar from compiled sources">
843    
# Line 845  Line 851 
851    <target name="jsr166ydocs"    <target name="jsr166ydocs"
852            description="Builds javadocs to dist dir">            description="Builds javadocs to dist dir">
853    
854      <delete dir="${jsr166yjavadocs.dir}"/>      <delete dir="${jsr166ydocs.dir}"/>
855      <mkdir dir="${jsr166yjavadocs.dir}"/>      <mkdir dir="${jsr166ydocs.dir}"/>
856    
857      <javadoc destdir="${jsr166yjavadocs.dir}"      <javadoc destdir="${jsr166ydocs.dir}"
858               packagenames="jsr166y.*"               packagenames="jsr166y.*"
859               link="${jdkapidocs.url}"               link="${jdkapidocs.url}"
860                 access="${build.javadoc.access}"
861               sourcepath="${topsrc.dir}:${jdk6src.dir}"               sourcepath="${topsrc.dir}:${jdk6src.dir}"
862               bootclasspath="${bootclasspath6}"               bootclasspath="${bootclasspath6}"
863               source="6"               source="6"
# Line 880  Line 887 
887    </target>    </target>
888    
889    <target name="jsr166ydist-jar"    <target name="jsr166ydist-jar"
890            depends="jsr166yclean, jsr166y-jar">            depends="jsr166yclean, jsr166yjar">
891      <copy file="${jsr166y.jar}" todir="${dist.dir}"/>      <copy file="${jsr166y.jar}" todir="${dist.dir}"/>
892    </target>    </target>
893    
894    <target name="jsr166ydist-docs"    <target name="jsr166ydist-docs"
895            depends="jsr166yclean, jsr166ydocs">            depends="jsr166yclean, jsr166ydocs">
896      <mirror-dir src="${jsr166yjavadocs.dir}" dst="${dist.jsr166yjavadocs.dir}"/>      <mirror-dir src="${jsr166ydocs.dir}" dst="${dist.jsr166ydocs.dir}"/>
897    </target>    </target>
898    
899    
# Line 894  Line 901 
901    
902    
903    <target name="extra166ycompile"    <target name="extra166ycompile"
904            depends="configure-compiler, jsr166y-jar"            depends="configure-compiler, jsr166yjar"
905            description="Compiles extra166y sources">            description="Compiles extra166y sources">
906    
907      <mkdir dir="${build.extra166y.classes.dir}"/>      <mkdir dir="${build.extra166y.classes.dir}"/>
# Line 921  Line 928 
928    </target>    </target>
929    
930    
931    <target name="extra166y-jar"    <target name="extra166yjar"
932            depends="extra166ycompile"            depends="extra166ycompile"
933            description="Builds library jar from compiled sources">            description="Builds library jar from compiled sources">
934    
# Line 935  Line 942 
942    <target name="extra166ydocs"    <target name="extra166ydocs"
943            description="Builds javadocs to build dir">            description="Builds javadocs to build dir">
944    
945      <delete dir="${extra166yjavadocs.dir}"/>      <delete dir="${extra166ydocs.dir}"/>
946      <mkdir dir="${extra166yjavadocs.dir}"/>      <mkdir dir="${extra166ydocs.dir}"/>
947    
948      <javadoc destdir="${extra166yjavadocs.dir}"      <javadoc destdir="${extra166ydocs.dir}"
949               packagenames="extra166y.*"               packagenames="extra166y.*"
950               link="${jdkapidocs.url}"               link="${jdkapidocs.url}"
951                 access="${build.javadoc.access}"
952               sourcepath="${topsrc.dir}:${jdk6src.dir}"               sourcepath="${topsrc.dir}:${jdk6src.dir}"
953               bootclasspath="${bootclasspath6}"               bootclasspath="${bootclasspath6}"
954               source="6"               source="6"
# Line 970  Line 978 
978    </target>    </target>
979    
980    <target name="extra166ydist-jar"    <target name="extra166ydist-jar"
981            depends="extra166yclean, extra166y-jar">            depends="extra166yclean, extra166yjar">
982      <copy file="${extra166y.jar}" todir="${dist.dir}"/>      <copy file="${extra166y.jar}" todir="${dist.dir}"/>
983    </target>    </target>
984    
985    <target name="extra166ydist-docs"    <target name="extra166ydist-docs"
986            depends="extra166yclean, extra166ydocs">            depends="extra166yclean, extra166ydocs">
987      <mirror-dir src="${extra166yjavadocs.dir}" dst="${dist.extra166yjavadocs.dir}"/>      <mirror-dir src="${extra166ydocs.dir}" dst="${dist.extra166ydocs.dir}"/>
988    </target>    </target>
989    
990    <!-- jsr166e -->    <!-- jsr166e -->
# Line 1008  Line 1016 
1016    </target>    </target>
1017    
1018    
1019    <target name="jsr166e-jar"    <target name="jsr166ejar"
1020            depends="jsr166ecompile"            depends="jsr166ecompile"
1021            description="Builds library jar from compiled sources">            description="Builds library jar from compiled sources">
1022    
# Line 1022  Line 1030 
1030    <target name="jsr166edocs"    <target name="jsr166edocs"
1031            description="Builds javadocs to build dir">            description="Builds javadocs to build dir">
1032    
1033      <delete dir="${jsr166ejavadocs.dir}"/>      <delete dir="${jsr166edocs.dir}"/>
1034      <mkdir dir="${jsr166ejavadocs.dir}"/>      <mkdir dir="${jsr166edocs.dir}"/>
1035    
1036      <javadoc destdir="${jsr166ejavadocs.dir}"      <javadoc destdir="${jsr166edocs.dir}"
1037               packagenames="jsr166e.*"               packagenames="jsr166e.*"
1038               link="${jdkapidocs.url}"               link="${jdkapidocs.url}"
1039                 access="${build.javadoc.access}"
1040               sourcepath="${topsrc.dir}:${jdk7src.dir}"               sourcepath="${topsrc.dir}:${jdk7src.dir}"
1041               source="7"               source="7"
1042               executable="${javadoc7}">               executable="${javadoc7}">
# Line 1038  Line 1047 
1047    
1048    
1049    <target name="jsr166e-test-tck"    <target name="jsr166e-test-tck"
1050            depends="jsr166e-jar"            depends="jsr166ejar"
1051            description="Runs tck tests for jsr166e">            description="Runs tck tests for jsr166e">
1052    
1053      <run-tck-tests      <run-tck-tests
# Line 1067  Line 1076 
1076    </target>    </target>
1077    
1078    <target name="jsr166edist-jar"    <target name="jsr166edist-jar"
1079            depends="jsr166eclean, jsr166e-jar">            depends="jsr166eclean, jsr166ejar">
1080      <copy file="${jsr166e.jar}" todir="${dist.dir}"/>      <copy file="${jsr166e.jar}" todir="${dist.dir}"/>
1081    </target>    </target>
1082    
1083    <target name="jsr166edist-docs"    <target name="jsr166edist-docs"
1084            depends="jsr166eclean, jsr166edocs">            depends="jsr166eclean, jsr166edocs">
1085      <mirror-dir src="${jsr166ejavadocs.dir}" dst="${dist.jsr166ejavadocs.dir}"/>      <mirror-dir src="${jsr166edocs.dir}" dst="${dist.jsr166edocs.dir}"/>
1086      </target>
1087    
1088    
1089    <!-- Find buglets that can be detected by static build tools -->
1090    
1091      <target name="lint">
1092        <antcall target="dists">
1093          <param name="build.javadoc.access" value="private"/>
1094        </antcall>
1095    </target>    </target>
1096    
1097    
1098  </project>  </project>

Legend:
Removed from v.1.126  
changed lines
  Added in v.1.130

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