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

Diff of /jsr166/build.xml

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

revision 1.65 by jsr166, Fri Apr 9 20:10:29 2004 UTC revision 1.70 by dl, Wed Aug 11 10:57:33 2004 UTC
# Line 40  Line 40 
40    <property name="build.doccheck.dir"   location="${build.dir}/doccheck"/>    <property name="build.doccheck.dir"   location="${build.dir}/doccheck"/>
41    <property name="build.filter.src.dir" location="${build.dir}/filtersrc"/>    <property name="build.filter.src.dir" location="${build.dir}/filtersrc"/>
42    <property name="build.dc-filter.dir"  location="${build.dir}/filterdocchk"/>    <property name="build.dc-filter.dir"  location="${build.dir}/filterdocchk"/>
43      <property name="build.jsr166x.dir"    location="${build.dir}/jsr166x"/>
44      <property name="build.jsr166xlib.dir"        location="${build.dir}/jsr166xlib"/>
45      <property name="build.jsr166xjavadocs.dir"   location="${build.dir}/jsr166xjavadocs"/>
46    
47    <!-- Source locations -->    <!-- Source locations -->
48    <property name="src.dir"              location="${basedir}/src/main"/>    <property name="src.dir"              location="${basedir}/src/main"/>
# Line 52  Line 55 
55    <property name="stylesheet.dir"       location="${basedir}/etc/xsl"/>    <property name="stylesheet.dir"       location="${basedir}/etc/xsl"/>
56    <property name="lib.dir"              location="${basedir}/lib"/>    <property name="lib.dir"              location="${basedir}/lib"/>
57    <property name="dist.dir"             location="${basedir}/dist"/>    <property name="dist.dir"             location="${basedir}/dist"/>
58      <property name="topsrc.dir"           location="${basedir}/src"/>
59      <property name="jsr166xsrc.dir"       location="${basedir}/src/jsr166x"/>
60    
61    <!-- Distribution locations -->    <!-- Distribution locations -->
62    <property name="dist.javadocs.dir"    location="${dist.dir}/docs"/>    <property name="dist.javadocs.dir"    location="${dist.dir}/docs"/>
63      <property name="dist.jsr166xjavadocs.dir"    location="${dist.dir}/jsr166xdocs"/>
64    
65    <!-- Jar locations -->    <!-- Jar locations -->
66    <property name="product.jar"          location="${build.lib.dir}/jsr166.jar"/>    <property name="product.jar"          location="${build.lib.dir}/jsr166.jar"/>
67      <property name="jsr166xproduct.jar"   location="${build.jsr166xlib.dir}/jsr166x.jar"/>
68    <property name="junit.jar"            location="${lib.dir}/junit.jar"/>    <property name="junit.jar"            location="${lib.dir}/junit.jar"/>
69      <property name="concurrent.jar"       location="${lib.dir}/concurrent.jar"/>
70    
71    <!-- Bootclasspath argument -->    <!-- Bootclasspath argument -->
72    <property name="bootclasspath.args"   value="-Xbootclasspath/p:${product.jar}"/>    <property name="bootclasspath.args"   value="-Xbootclasspath/p:${product.jar}"/>
# Line 78  Line 86 
86    <path id="j1.classpath">    <path id="j1.classpath">
87      <pathelement location="${build.j1.dir}"/>      <pathelement location="${build.j1.dir}"/>
88      <pathelement location="${junit.jar}"/>      <pathelement location="${junit.jar}"/>
89        <pathelement location="${concurrent.jar}"/>
90    </path>    </path>
91    
92    
# Line 98  Line 107 
107             source="${build.sourcelevel}"             source="${build.sourcelevel}"
108               fork="true">               fork="true">
109    
110          <include name="**/*.java"/>
111          <exclude name="java/lang/**"/>
112        <compilerarg line="${build.args}"/>        <compilerarg line="${build.args}"/>
113    
114      </javac>      </javac>
# Line 677  Line 688 
688              debug="${build.debug}"              debug="${build.debug}"
689         debuglevel="${build.debuglevel}"         debuglevel="${build.debuglevel}"
690        deprecation="${build.deprecation}"        deprecation="${build.deprecation}"
691             source="${build.sourcelevel}"             source="${build.sourcelevel}" >
692               fork="true">  
693          <include name="**/*.java"/>
694          <exclude name="**/dijkstra/**"/>
695    
696        <compilerarg line="${build.args}"/>        <compilerarg line="${build.args}"/>
697        <classpath refid="j1.classpath"/>        <classpath refid="j1.classpath"/>
# Line 708  Line 721 
721    <target name="j1" depends="compile-j1"    <target name="j1" depends="compile-j1"
722            description="Runs a standalone JavaOne program">            description="Runs a standalone JavaOne program">
723    
724      <java classname="jsr166.misc.SortedEnumSet" fork="true">      <java classname="${j1.test}" fork="true">
725        <classpath refid="j1.classpath"/>        <classpath refid="j1.classpath"/>
726          <jvmarg value="-client"/>
727    
728          <!-- TestPseudoRandom args -->
729          <arg value="2"/>
730          <arg value="25"/>
731          <arg value="100000"/>
732    
733          <!-- WebCrawler args -->
734          <!--
735          <arg value="jsr166.webcrawler.WebCrawler3"/>
736          <arg value="http://www.priorartisans.com"/>
737          <arg value="25"/>
738          -->
739    
740      </java>      </java>
741    
742    </target>    </target>
# Line 924  Line 951 
951    
952    </target>    </target>
953    
954      <!-- jsr166x -->
955    
956    
957      <target name="jsr166xcompile"
958              depends="init, configure-compiler"
959              description="Compiles jsr166x sources">
960    
961        <mkdir dir="${build.jsr166x.dir}"/>
962    
963        <javac srcdir="${jsr166xsrc.dir}"
964              destdir="${build.jsr166x.dir}"
965                debug="${build.debug}"
966           debuglevel="${build.debuglevel}"
967          deprecation="${build.deprecation}"
968               source="${build.sourcelevel}"
969                 fork="true">
970    
971          <include name="**/*.java"/>
972          <compilerarg line="${build.args}"/>
973    
974        </javac>
975    
976      </target>
977    
978    
979    
980      <target name="jsr166xjar"
981              depends="jsr166xcompile"
982              description="Builds library jar from compiled sources">
983    
984        <mkdir dir="${build.jsr166xlib.dir}"/>
985    
986        <jar destfile="${jsr166xproduct.jar}">
987          <fileset dir="${build.jsr166x.dir}"/>
988        </jar>
989    
990      </target>
991    
992    
993    
994      <target name="jsr166xdocs"
995              description="Builds javadocs with custom tags to build folder">
996    
997        <delete dir="${build.jsr166xjavadocs.dir}"/>
998        <mkdir dir="${build.jsr166xjavadocs.dir}"/>
999    
1000        <javadoc destdir="${build.jsr166xjavadocs.dir}"
1001                    link="http://java.sun.com/j2se/1.5.0/docs/api/"
1002        >
1003          <packageset dir="${topsrc.dir}" defaultexcludes="yes">
1004          <include name="jsr166x"/>
1005          </packageset>
1006    
1007    
1008        </javadoc>
1009    
1010      </target>
1011    
1012    
1013      <target name="jsr166xdist"
1014              depends="jsr166xdist-clean, jsr166xdist-jar, jsr166xdist-docs"
1015              description="Puts all distributable products in single hierarchy"/>
1016    
1017    
1018    
1019      <target name="jsr166xclean"
1020              description="Removes all build products">
1021    
1022        <delete dir="${build.jsr166x.dir}"/>
1023        <delete dir="${build.jsr166xlib.dir}"/>
1024    
1025      </target>
1026    
1027    
1028    
1029      <target name="jsr166xdist-clean"
1030              description="Removes all build and distribution products">
1031    
1032      </target>
1033    
1034    
1035    
1036      <target name="jsr166xdist-docs"
1037              description="Builds javadocs without custom tags to dist folder">
1038    
1039        <delete dir="${dist.jsr166xjavadocs.dir}"/>
1040        <mkdir dir="${dist.jsr166xjavadocs.dir}"/>
1041    
1042        <javadoc destdir="${dist.jsr166xjavadocs.dir}"
1043                    link="http://java.sun.com/j2se/1.5.0/docs/api/"
1044                  source="${build.sourcelevel}">
1045    
1046          <packageset dir="${topsrc.dir}" defaultexcludes="yes">
1047          <include name="jsr166x"/>
1048          </packageset>
1049    
1050        </javadoc>
1051    
1052      </target>
1053    
1054      <target name="jsr166xdist-jar"
1055              depends="jsr166xclean, jsr166xjar">
1056    
1057        <copy file="${jsr166xproduct.jar}" todir="${dist.dir}"/>
1058    
1059      </target>
1060    
1061  </project>  </project>

Legend:
Removed from v.1.65  
changed lines
  Added in v.1.70

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