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

Diff of /jsr166/build.xml

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

revision 1.120 by jsr166, Mon Jan 21 02:34:44 2013 UTC revision 1.128 by jsr166, Wed Jan 23 07:05:10 2013 UTC
# 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"/>    <property name="build.jsr166x.classes.dir"   location="${build.jsr166x.dir}/classes"/>
61    <property name="build.jsr166y.classes.dir"    location="${build.jsr166y.dir}/classes"/>    <property name="build.jsr166y.classes.dir"   location="${build.jsr166y.dir}/classes"/>
62    <property name="build.jsr166e.classes.dir"    location="${build.jsr166e.dir}/classes"/>    <property name="build.jsr166e.classes.dir"   location="${build.jsr166e.dir}/classes"/>
63    <property name="build.extra166y.classes.dir"  location="${build.extra166y.dir}/classes"/>    <property name="build.extra166y.classes.dir" location="${build.extra166y.dir}/classes"/>
64    
65    <!-- JDK locations -->    <!-- JDK locations -->
66    <property name="jdks.home"  location="${user.home}/jdk"/>    <property name="jdks.home"  location="${user.home}/jdk"/>
# Line 86  Line 86 
86      </sequential>      </sequential>
87    </macrodef>    </macrodef>
88    
89      <macrodef name="mirror-dir">
90        <attribute name="src"/>
91        <attribute name="dst"/>
92        <sequential>
93        <delete dir="@{dst}"/>
94        <mkdir dir="@{dst}"/>
95        <copy todir="@{dst}" preservelastmodified="true">
96          <fileset dir="@{src}"/>
97        </copy>
98        </sequential>
99      </macrodef>
100    
101    <defjdklocations v="6"/>    <defjdklocations v="6"/>
102    <defjdklocations v="7"/>    <defjdklocations v="7"/>
103    <defjdklocations v="8"/>    <defjdklocations v="8"/>
# Line 105  Line 117 
117    <property name="jsr166esrc.dir"       location="${topsrc.dir}/jsr166e"/>    <property name="jsr166esrc.dir"       location="${topsrc.dir}/jsr166e"/>
118    <property name="extra166ysrc.dir"     location="${topsrc.dir}/extra166y"/>    <property name="extra166ysrc.dir"     location="${topsrc.dir}/extra166y"/>
119    
120    <!-- Distribution locations -->    <!-- Javadoc locations -->
121    <property name="dist.javadocs.dir"          location="${dist.dir}/jsr166.docs"/>    <property name="docs.dir"          location="${build.dir}/docs"/>
122    <property name="dist.4jdk7.docs.dir"        location="${dist.dir}/jsr166-4jdk7.docs"/>    <property name="4jdk7docs.dir"     location="${build.4jdk7.dir}/docs"/>
123    <property name="dist.jsr166xjavadocs.dir"   location="${dist.dir}/jsr166x.docs"/>    <property name="jsr166xdocs.dir"   location="${build.jsr166x.dir}/docs"/>
124    <property name="dist.jsr166yjavadocs.dir"   location="${dist.dir}/jsr166y.docs"/>    <property name="jsr166ydocs.dir"   location="${build.jsr166y.dir}/docs"/>
125    <property name="dist.jsr166ejavadocs.dir"   location="${dist.dir}/jsr166e.docs"/>    <property name="jsr166edocs.dir"   location="${build.jsr166e.dir}/docs"/>
126    <property name="dist.extra166yjavadocs.dir" location="${dist.dir}/extra166y.docs"/>    <property name="extra166ydocs.dir" location="${build.extra166y.dir}/docs"/>
127    
128      <property name="dist.docs.dir"          location="${dist.dir}/docs"/>
129      <property name="dist.4jdk7docs.dir"     location="${dist.dir}/jsr166-4jdk7docs"/>
130      <property name="dist.jsr166xdocs.dir"   location="${dist.dir}/jsr166xdocs"/>
131      <property name="dist.jsr166ydocs.dir"   location="${dist.dir}/jsr166ydocs"/>
132      <property name="dist.jsr166edocs.dir"   location="${dist.dir}/jsr166edocs"/>
133      <property name="dist.extra166ydocs.dir" location="${dist.dir}/extra166ydocs"/>
134    
135    <!-- Jar locations -->    <!-- Jar locations -->
136    <property name="product.jar"      location="${build.dir}/jsr166.jar"/>    <property name="product.jar"      location="${build.dir}/jsr166.jar"/>
# Line 128  Line 147 
147    <property name="jdkapi7docs.url"      value="http://docs.oracle.com/javase/7/docs/api/"/>    <property name="jdkapi7docs.url"      value="http://docs.oracle.com/javase/7/docs/api/"/>
148    
149    <property name="jdkapi8docs.url"      value="http://download.java.net/jdk8/docs/api/"/>    <property name="jdkapi8docs.url"      value="http://download.java.net/jdk8/docs/api/"/>
150    <!-- The below does not yet exist as of 2012-11 -->    <!-- The below does not yet exist as of 2013-01 -->
151    <!-- <property name="jdkapi8docs.url" value="http://docs.oracle.com/javase/8/docs/api/"/> -->    <!-- <property name="jdkapi8docs.url" value="http://docs.oracle.com/javase/8/docs/api/"/> -->
152    
153    <!-- Default jdk api doc location (latest stable release seems best) -->    <!-- Default jdk api doc location (latest stable release seems best) -->
# Line 146  Line 165 
165    </path>    </path>
166    
167    <macrodef name="run-tck-tests">    <macrodef name="run-tck-tests">
168        <attribute name="tck.src.dir" default="${tck.src.dir}"/>
169        <attribute name="source" default="6"/>
170      <attribute name="target"/>      <attribute name="target"/>
171      <attribute name="workdir"/>      <attribute name="workdir"/>
172      <attribute name="product.jar" default="${product.jar}"/>      <attribute name="classes"/>
173      <attribute name="jvmflags" default=""/>      <attribute name="jvmflags" default=""/>
174      <sequential>      <sequential>
175    
176      <mkdir dir="@{workdir}/tck-classes"/>      <mkdir dir="@{workdir}/tck-classes"/>
177    
178      <javac srcdir="${tck.src.dir}"      <javac srcdir="@{tck.src.dir}"
179             destdir="@{workdir}/tck-classes"             destdir="@{workdir}/tck-classes"
180             debug="${build.debug}"             debug="${build.debug}"
181             debuglevel="${build.debuglevel}"             debuglevel="${build.debuglevel}"
182             deprecation="${build.deprecation}"             deprecation="${build.deprecation}"
183             source="6"             source="@{source}"
184             classpath="${junit.jar}"             classpath="${junit.jar}"
185             bootclasspath="@{product.jar}:${bootclasspath6}"             bootclasspath="@{classes}:${bootclasspath@{source}}"
186             includeAntRuntime="false"             includeAntRuntime="false"
187             includeJavaRuntime="false"             includeJavaRuntime="false"
188             executable="${javac@{target}}"             executable="${javac@{target}}"
189             fork="true">             fork="true">
190    
191        <include name="JSR166TestCase.java"/>        <include name="*.java"/>
192        <compilerarg value="-XDignore.symbol.file=true"/>        <compilerarg value="-XDignore.symbol.file=true"/>
193        <compilerarg value="-Xlint:all,-unchecked,-rawtypes,-serial,-deprecation"/>        <compilerarg value="-Xlint:all,-unchecked,-rawtypes,-serial,-deprecation"/>
194        <compilerarg line="${build.args}"/>        <compilerarg line="${build.args}"/>
# Line 178  Line 199 
199            failonerror="true"            failonerror="true"
200            jvm="${java@{target}}"            jvm="${java@{target}}"
201            fork="true">            fork="true">
202          <jvmarg value="-Xbootclasspath/p:@{product.jar}"/>          <jvmarg value="-Xbootclasspath/p:@{classes}"/>
203          <jvmarg line="@{jvmflags}"/>          <jvmarg line="@{jvmflags}"/>
204          <classpath>          <classpath>
205            <pathelement location="${junit.jar}"/>            <pathelement location="${junit.jar}"/>
# Line 248  Line 269 
269    <target name="docs"    <target name="docs"
270            description="Builds javadocs for src/main to dist dir">            description="Builds javadocs for src/main to dist dir">
271    
272      <delete dir="${dist.javadocs.dir}"/>      <delete dir="${docs.dir}"/>
273      <mkdir dir="${dist.javadocs.dir}"/>      <mkdir dir="${docs.dir}"/>
274    
275      <!-- the packagenames="none" hack below prevents scanning the -->      <!-- the packagenames="none" hack below prevents scanning the -->
276      <!-- sourcepath for packages -->      <!-- sourcepath for packages -->
277    
278      <javadoc destdir="${dist.javadocs.dir}"      <javadoc destdir="${docs.dir}"
279               packagenames="none"               packagenames="none"
280               link="${jdkapi8docs.url}"               link="${jdkapi8docs.url}"
281               overview="${src.dir}/intro.html"               overview="${src.dir}/intro.html"
# Line 272  Line 293 
293    
294    
295    <target name="dist"    <target name="dist"
296            depends="dist-clean, dist-jar, docs"            depends="dist-clean, dist-jar, dist-docs"
297            description="Puts all distributable products in single hierarchy"/>            description="Puts all distributable products in single hierarchy"/>
298    
299    
# Line 315  Line 336 
336    
337    <target name="dist-jar"    <target name="dist-jar"
338            depends="clean, jar">            depends="clean, jar">
   
339      <copy file="${product.jar}" todir="${dist.dir}"/>      <copy file="${product.jar}" todir="${dist.dir}"/>
340      </target>
341    
342      <target name="dist-docs"
343              depends="clean, docs">
344        <mirror-dir src="${docs.dir}" dst="${dist.docs.dir}"/>
345    </target>    </target>
346    
347    
# Line 558  Line 582 
582    </target>    </target>
583    
584    
585    <target name="4jdk7-jar"    <target name="4jdk7jar"
586            depends="4jdk7compile"            depends="4jdk7compile"
587            description="Builds library jar from compiled sources">            description="Builds library jar from compiled sources">
588    
# Line 570  Line 594 
594    
595    
596    <target name="4jdk7-test-tck"    <target name="4jdk7-test-tck"
597            depends="4jdk7-jar"            depends="4jdk7jar"
598            description="Runs tck tests for jsr166-4jdk7 directly">            description="Runs tck tests for jsr166-4jdk7 directly">
599    
600      <run-tck-tests      <run-tck-tests
601        target="7"        target="7"
602        workdir="${build.4jdk7.dir}"        workdir="${build.4jdk7.dir}"
603        product.jar="${4jdk7product.jar}"/>        classes="${4jdk7product.jar}"/>
604    </target>    </target>
605    
606    
# Line 639  Line 663 
663    <target name="4jdk7docs"    <target name="4jdk7docs"
664            description="Builds javadocs for src/jdk7 to dist dir">            description="Builds javadocs for src/jdk7 to dist dir">
665    
666      <delete dir="${dist.4jdk7.docs.dir}"/>      <delete dir="${4jdk7docs.dir}"/>
667      <mkdir dir="${dist.4jdk7.docs.dir}"/>      <mkdir dir="${4jdk7docs.dir}"/>
668    
669      <javadoc destdir="${dist.4jdk7.docs.dir}"      <javadoc destdir="${4jdk7docs.dir}"
670               packagenames="none"               packagenames="none"
671               link="${jdkapi7docs.url}"               link="${jdkapi7docs.url}"
672               overview="${4jdk7src.dir}/intro.html"               overview="${4jdk7src.dir}/intro.html"
# Line 658  Line 682 
682    
683    
684    <target name="4jdk7dist"    <target name="4jdk7dist"
685            depends="4jdk7dist-clean, 4jdk7dist-jar, 4jdk7docs"            depends="4jdk7dist-jar, 4jdk7dist-docs"
686            description="Puts all distributable products in single hierarchy"/>            description="Puts all distributable products in single hierarchy"/>
687    
688    
# Line 676  Line 700 
700    </target>    </target>
701    
702    <target name="4jdk7dist-jar"    <target name="4jdk7dist-jar"
703            depends="4jdk7clean, 4jdk7-jar">            depends="4jdk7clean, 4jdk7jar">
   
704      <copy file="${4jdk7product.jar}" todir="${dist.dir}"/>      <copy file="${4jdk7product.jar}" todir="${dist.dir}"/>
705      </target>
706    
707    
708      <target name="4jdk7dist-docs"
709              depends="4jdk7clean, 4jdk7docs">
710        <mirror-dir src="${4jdk7docs.dir}" dst="${dist.4jdk7docs.dir}"/>
711    </target>    </target>
712    
713    
# Line 713  Line 741 
741    </target>    </target>
742    
743    
744    <target name="jsr166x-jar"    <target name="jsr166xjar"
745            depends="jsr166xcompile"            depends="jsr166xcompile"
746            description="Builds library jar from compiled sources">            description="Builds library jar from compiled sources">
747    
# Line 727  Line 755 
755    <target name="jsr166xdocs"    <target name="jsr166xdocs"
756            description="Builds javadocs to dist dir">            description="Builds javadocs to dist dir">
757    
758      <delete dir="${dist.jsr166xjavadocs.dir}"/>      <delete dir="${jsr166xdocs.dir}"/>
759      <mkdir dir="${dist.jsr166xjavadocs.dir}"/>      <mkdir dir="${jsr166xdocs.dir}"/>
760    
761      <javadoc destdir="${dist.jsr166xjavadocs.dir}"      <javadoc destdir="${jsr166xdocs.dir}"
762               packagenames="jsr166x.*"               packagenames="jsr166x.*"
763               link="${jdkapidocs.url}"               link="${jdkapidocs.url}"
764               sourcepath="${topsrc.dir}:${jdk6src.dir}"               sourcepath="${topsrc.dir}:${jdk6src.dir}"
# Line 744  Line 772 
772    
773    
774    <target name="jsr166xdist"    <target name="jsr166xdist"
775            depends="jsr166xdist-clean, jsr166xdist-jar, jsr166xdocs"            depends="jsr166xdist-jar, jsr166xdist-docs"
776            description="Puts all distributable products in single hierarchy"/>            description="Puts all distributable products in single hierarchy"/>
777    
778    
# Line 763  Line 791 
791    
792    
793    <target name="jsr166xdist-jar"    <target name="jsr166xdist-jar"
794            depends="jsr166xclean, jsr166x-jar">            depends="jsr166xclean, jsr166xjar">
   
795      <copy file="${jsr166x.jar}" todir="${dist.dir}"/>      <copy file="${jsr166x.jar}" todir="${dist.dir}"/>
796      </target>
797    
798      <target name="jsr166xdist-docs"
799              depends="jsr166xclean, jsr166xdocs">
800        <mirror-dir src="${jsr166xdocs.dir}" dst="${dist.jsr166xdocs.dir}"/>
801    </target>    </target>
802    
803    <!-- jsr166y -->    <!-- jsr166y -->
# Line 800  Line 831 
831    </target>    </target>
832    
833    
834    <target name="jsr166y-jar"    <target name="jsr166yjar"
835            depends="jsr166ycompile"            depends="jsr166ycompile"
836            description="Builds library jar from compiled sources">            description="Builds library jar from compiled sources">
837    
# Line 814  Line 845 
845    <target name="jsr166ydocs"    <target name="jsr166ydocs"
846            description="Builds javadocs to dist dir">            description="Builds javadocs to dist dir">
847    
848      <delete dir="${dist.jsr166yjavadocs.dir}"/>      <delete dir="${jsr166ydocs.dir}"/>
849      <mkdir dir="${dist.jsr166yjavadocs.dir}"/>      <mkdir dir="${jsr166ydocs.dir}"/>
850    
851      <javadoc destdir="${dist.jsr166yjavadocs.dir}"      <javadoc destdir="${jsr166ydocs.dir}"
852               packagenames="jsr166y.*"               packagenames="jsr166y.*"
853               link="${jdkapidocs.url}"               link="${jdkapidocs.url}"
854               sourcepath="${topsrc.dir}:${jdk6src.dir}"               sourcepath="${topsrc.dir}:${jdk6src.dir}"
# Line 831  Line 862 
862    
863    
864    <target name="jsr166ydist"    <target name="jsr166ydist"
865            depends="jsr166ydist-clean, jsr166ydist-jar, jsr166ydocs"            depends="jsr166ydist-jar, jsr166ydist-docs"
866            description="Puts all distributable products in single hierarchy"/>            description="Puts all distributable products in single hierarchy"/>
867    
868    
# Line 849  Line 880 
880    </target>    </target>
881    
882    <target name="jsr166ydist-jar"    <target name="jsr166ydist-jar"
883            depends="jsr166yclean, jsr166y-jar">            depends="jsr166yclean, jsr166yjar">
   
884      <copy file="${jsr166y.jar}" todir="${dist.dir}"/>      <copy file="${jsr166y.jar}" todir="${dist.dir}"/>
885      </target>
886    
887      <target name="jsr166ydist-docs"
888              depends="jsr166yclean, jsr166ydocs">
889        <mirror-dir src="${jsr166ydocs.dir}" dst="${dist.jsr166ydocs.dir}"/>
890    </target>    </target>
891    
892    
# Line 860  Line 894 
894    
895    
896    <target name="extra166ycompile"    <target name="extra166ycompile"
897            depends="configure-compiler, jsr166y-jar"            depends="configure-compiler, jsr166yjar"
898            description="Compiles extra166y sources">            description="Compiles extra166y sources">
899    
900      <mkdir dir="${build.extra166y.classes.dir}"/>      <mkdir dir="${build.extra166y.classes.dir}"/>
# Line 887  Line 921 
921    </target>    </target>
922    
923    
924    <target name="extra166y-jar"    <target name="extra166yjar"
925            depends="extra166ycompile"            depends="extra166ycompile"
926            description="Builds library jar from compiled sources">            description="Builds library jar from compiled sources">
927    
# Line 901  Line 935 
935    <target name="extra166ydocs"    <target name="extra166ydocs"
936            description="Builds javadocs to build dir">            description="Builds javadocs to build dir">
937    
938      <delete dir="${dist.extra166yjavadocs.dir}"/>      <delete dir="${extra166ydocs.dir}"/>
939      <mkdir dir="${dist.extra166yjavadocs.dir}"/>      <mkdir dir="${extra166ydocs.dir}"/>
940    
941      <javadoc destdir="${dist.extra166yjavadocs.dir}"      <javadoc destdir="${extra166ydocs.dir}"
942               packagenames="extra166y.*"               packagenames="extra166y.*"
943               link="${jdkapidocs.url}"               link="${jdkapidocs.url}"
944               sourcepath="${topsrc.dir}:${jdk6src.dir}"               sourcepath="${topsrc.dir}:${jdk6src.dir}"
# Line 918  Line 952 
952    
953    
954    <target name="extra166ydist"    <target name="extra166ydist"
955            depends="extra166ydist-clean, extra166ydist-jar, extra166ydocs"            depends="extra166ydist-jar, extra166ydist-docs"
956            description="Puts all distributable products in single hierarchy"/>            description="Puts all distributable products in single hierarchy"/>
957    
958    
# Line 936  Line 970 
970    </target>    </target>
971    
972    <target name="extra166ydist-jar"    <target name="extra166ydist-jar"
973            depends="extra166yclean, extra166y-jar">            depends="extra166yclean, extra166yjar">
   
974      <copy file="${extra166y.jar}" todir="${dist.dir}"/>      <copy file="${extra166y.jar}" todir="${dist.dir}"/>
975      </target>
976    
977      <target name="extra166ydist-docs"
978              depends="extra166yclean, extra166ydocs">
979        <mirror-dir src="${extra166ydocs.dir}" dst="${dist.extra166ydocs.dir}"/>
980    </target>    </target>
981    
982    <!-- jsr166e -->    <!-- jsr166e -->
# Line 971  Line 1008 
1008    </target>    </target>
1009    
1010    
1011    <target name="jsr166e-jar"    <target name="jsr166ejar"
1012            depends="jsr166ecompile"            depends="jsr166ecompile"
1013            description="Builds library jar from compiled sources">            description="Builds library jar from compiled sources">
1014    
# Line 985  Line 1022 
1022    <target name="jsr166edocs"    <target name="jsr166edocs"
1023            description="Builds javadocs to build dir">            description="Builds javadocs to build dir">
1024    
1025      <delete dir="${dist.jsr166ejavadocs.dir}"/>      <delete dir="${jsr166edocs.dir}"/>
1026      <mkdir dir="${dist.jsr166ejavadocs.dir}"/>      <mkdir dir="${jsr166edocs.dir}"/>
1027    
1028      <javadoc destdir="${dist.jsr166ejavadocs.dir}"      <javadoc destdir="${jsr166edocs.dir}"
1029               packagenames="jsr166e.*"               packagenames="jsr166e.*"
1030               link="${jdkapidocs.url}"               link="${jdkapidocs.url}"
1031               sourcepath="${topsrc.dir}:${jdk7src.dir}"               sourcepath="${topsrc.dir}:${jdk7src.dir}"
# Line 1000  Line 1037 
1037    </target>    </target>
1038    
1039    
1040      <target name="jsr166e-test-tck"
1041              depends="jsr166ejar"
1042              description="Runs tck tests for jsr166e">
1043    
1044        <run-tck-tests
1045          tck.src.dir="${test.src.dir}/tck-jsr166e"
1046          source="7"
1047          target="8"
1048          workdir="${build.jsr166e.dir}"
1049          classes="${jsr166e.jar}"/>
1050      </target>
1051    
1052    
1053    <target name="jsr166edist"    <target name="jsr166edist"
1054            depends="jsr166edist-clean, jsr166edist-jar, jsr166edocs"            depends="jsr166edist-jar, jsr166edist-docs"
1055            description="Puts all distributable products in single hierarchy"/>            description="Puts all distributable products in single hierarchy"/>
1056    
1057    
1058    <target name="jsr166eclean"    <target name="jsr166eclean"
1059            description="Removes all jsr166e build products">            description="Removes all jsr166e build products">
   
1060      <delete dir="${build.jsr166e.dir}"/>      <delete dir="${build.jsr166e.dir}"/>
   
1061    </target>    </target>
1062    
1063    
# Line 1019  Line 1067 
1067    </target>    </target>
1068    
1069    <target name="jsr166edist-jar"    <target name="jsr166edist-jar"
1070            depends="jsr166eclean, jsr166e-jar">            depends="jsr166eclean, jsr166ejar">
   
1071      <copy file="${jsr166e.jar}" todir="${dist.dir}"/>      <copy file="${jsr166e.jar}" todir="${dist.dir}"/>
1072      </target>
1073    
1074      <target name="jsr166edist-docs"
1075              depends="jsr166eclean, jsr166edocs">
1076        <mirror-dir src="${jsr166edocs.dir}" dst="${dist.jsr166edocs.dir}"/>
1077    </target>    </target>
1078    
1079  </project>  </project>

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

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