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

Diff of /jsr166/build.xml

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

revision 1.78 by dl, Sat Aug 1 13:05:44 2009 UTC revision 1.87 by jsr166, Sat May 28 02:32:19 2011 UTC
# Line 21  Line 21 
21    
22    
23    <!-- Compilation options -->    <!-- Compilation options -->
24    <property name="build.sourcelevel"    value="1.5"/>    <property name="build.sourcelevel"    value="1.6"/>
25    <property name="build.debug"          value="true"/>    <property name="build.debug"          value="true"/>
26    <property name="build.debuglevel"     value="source,lines,vars"/>    <property name="build.debuglevel"     value="source,lines,vars"/>
27    <property name="build.deprecation"    value="false"/>    <property name="build.deprecation"    value="false"/>
28    
29    <!-- Build locations -->    <!-- Build locations -->
30    <property name="build.dir"            location="build"/>    <property name="build.dir"                   location="build"/>
31    <property name="build.classes.dir"    location="${build.dir}/classes"/>    <property name="build.classes.dir"           location="${build.dir}/classes"/>
32    <property name="build.testcases.dir"  location="${build.dir}/testcases"/>    <property name="build.testcases.dir"         location="${build.dir}/testcases"/>
33    <property name="build.loops.dir"      location="${build.dir}/loops"/>    <property name="build.loops.dir"             location="${build.dir}/loops"/>
34    <property name="build.lib.dir"        location="${build.dir}/lib"/>    <property name="build.lib.dir"               location="${build.dir}/lib"/>
35    <property name="build.javadocs.dir"   location="${build.dir}/javadocs"/>    <property name="build.javadocs.dir"          location="${build.dir}/javadocs"/>
36    <property name="build.reports.dir"    location="${build.dir}/reports"/>    <property name="build.reports.dir"           location="${build.dir}/reports"/>
37    <property name="build.jsr166x.dir"    location="${build.dir}/jsr166x"/>    <property name="build.jsr166x.dir"           location="${build.dir}/jsr166x"/>
38    <property name="build.jsr166xlib.dir"        location="${build.dir}/jsr166xlib"/>    <property name="build.jsr166xlib.dir"        location="${build.dir}/jsr166xlib"/>
39    <property name="build.jsr166xjavadocs.dir"   location="${build.dir}/jsr166xjavadocs"/>    <property name="build.jsr166xjavadocs.dir"   location="${build.dir}/jsr166xjavadocs"/>
40    
41    <property name="build.jsr166y.dir"    location="${build.dir}/jsr166y"/>    <property name="build.jsr166y.dir"           location="${build.dir}/jsr166y"/>
42    <property name="build.jsr166ylib.dir"        location="${build.dir}/jsr166ylib"/>    <property name="build.jsr166ylib.dir"        location="${build.dir}/jsr166ylib"/>
43    <property name="build.jsr166yjavadocs.dir"   location="${build.dir}/jsr166yjavadocs"/>    <property name="build.jsr166yjavadocs.dir"   location="${build.dir}/jsr166yjavadocs"/>
44    
45    <property name="build.extra166y.dir"    location="${build.dir}/extra166y"/>    <property name="build.extra166y.dir"         location="${build.dir}/extra166y"/>
46    <property name="build.extra166ylib.dir"        location="${build.dir}/extra166ylib"/>    <property name="build.extra166ylib.dir"      location="${build.dir}/extra166ylib"/>
47    <property name="build.extra166yjavadocs.dir"   location="${build.dir}/extra166yjavadocs"/>    <property name="build.extra166yjavadocs.dir" location="${build.dir}/extra166yjavadocs"/>
48    
49    <!-- Source locations -->    <!-- Source locations -->
50    <property name="src.dir"              location="${basedir}/src/main"/>    <property name="src.dir"              location="${basedir}/src/main"/>
# Line 57  Line 57 
57    <property name="topsrc.dir"           location="${basedir}/src"/>    <property name="topsrc.dir"           location="${basedir}/src"/>
58    <property name="jsr166xsrc.dir"       location="${basedir}/src/jsr166x"/>    <property name="jsr166xsrc.dir"       location="${basedir}/src/jsr166x"/>
59    <property name="jsr166ysrc.dir"       location="${basedir}/src/jsr166y"/>    <property name="jsr166ysrc.dir"       location="${basedir}/src/jsr166y"/>
60    <property name="extra166ysrc.dir"       location="${basedir}/src/extra166y"/>    <property name="extra166ysrc.dir"     location="${basedir}/src/extra166y"/>
61      <property name="jdksrc.dir"           location="/home/dl/1.6.0/j2se/martin/j2se/src/share/classes"/>
62    <!-- Distribution locations -->    <!-- Distribution locations -->
63    <property name="dist.javadocs.dir"    location="${dist.dir}/docs"/>    <property name="dist.javadocs.dir"           location="${dist.dir}/docs"/>
64    <property name="dist.jsr166xjavadocs.dir"    location="${dist.dir}/jsr166xdocs"/>    <property name="dist.jsr166xjavadocs.dir"    location="${dist.dir}/jsr166xdocs"/>
65    <property name="dist.jsr166yjavadocs.dir"    location="${dist.dir}/jsr166ydocs"/>    <property name="dist.jsr166yjavadocs.dir"    location="${dist.dir}/jsr166ydocs"/>
66    <property name="dist.extra166yjavadocs.dir"    location="${dist.dir}/extra166ydocs"/>    <property name="dist.extra166yjavadocs.dir"  location="${dist.dir}/extra166ydocs"/>
67    
68    <!-- Jar locations -->    <!-- Jar locations -->
69    <property name="product.jar"          location="${build.lib.dir}/jsr166.jar"/>    <property name="product.jar"          location="${build.lib.dir}/jsr166.jar"/>
70    <property name="jsr166xproduct.jar"   location="${build.jsr166xlib.dir}/jsr166x.jar"/>    <property name="jsr166xproduct.jar"   location="${build.jsr166xlib.dir}/jsr166x.jar"/>
71    <property name="jsr166yproduct.jar"   location="${build.jsr166ylib.dir}/jsr166y.jar"/>    <property name="jsr166yproduct.jar"   location="${build.jsr166ylib.dir}/jsr166y.jar"/>
72    <property name="extra166yproduct.jar"   location="${build.extra166ylib.dir}/extra166y.jar"/>    <property name="extra166yproduct.jar" location="${build.extra166ylib.dir}/extra166y.jar"/>
73    <property name="junit.jar"            location="${lib.dir}/junit.jar"/>    <property name="junit.jar"            location="${lib.dir}/junit.jar"/>
74    
75    <!-- Bootclasspath argument -->    <!-- Bootclasspath argument -->
# Line 89  Line 89 
89    
90    <!-- Main targets -->    <!-- Main targets -->
91    
92      <target name="dists"
93              depends="dist, jsr166xdist, jsr166ydist, extra166ydist"
94              description="Builds all public jars and docs"/>
95    
96    <target name="compile"    <target name="compile"
97            depends="init, configure-compiler"            depends="init, configure-compiler"
# Line 105  Line 108 
108               fork="true">               fork="true">
109    
110        <include name="**/*.java"/>        <include name="**/*.java"/>
111        <compilerarg value="-XDignore.symbol.file"/>        <compilerarg value="-XDignore.symbol.file=true"/>
112    
113  <!--  <!--
114        <exclude name="java/lang/**"/>        <exclude name="java/lang/**"/>
# Line 146  Line 149 
149      <mkdir dir="${build.javadocs.dir}"/>      <mkdir dir="${build.javadocs.dir}"/>
150    
151      <javadoc destdir="${build.javadocs.dir}"      <javadoc destdir="${build.javadocs.dir}"
152                  link="http://java.sun.com/javase/6/docs/api/"                  link="http://download.oracle.com/javase/7/docs/api/"
153              overview="${src.dir}/intro.html"              overview="${src.dir}/intro.html"
154              sourcepath="${src.dir}:/home/dl/1.6.0/j2se/martin/j2se/src/share/classes"              sourcepath="${src.dir}:${jdksrc.dir}"
155      >                >
156    
157        <packageset dir="${src.dir}"/>        <packageset dir="${src.dir}"/>
158    
# Line 164  Line 167 
167            description="Puts all distributable products in single hierarchy"/>            description="Puts all distributable products in single hierarchy"/>
168    
169    
   
170    <target name="release"    <target name="release"
171            depends="dist"            depends="dist"
172            description="Puts entire CVS tree, plus distribution productions, in a jar">            description="Puts entire CVS tree, plus distribution productions, in a jar">
# Line 211  Line 213 
213      <delete dir="${dist.javadocs.dir}"/>      <delete dir="${dist.javadocs.dir}"/>
214      <mkdir dir="${dist.javadocs.dir}"/>      <mkdir dir="${dist.javadocs.dir}"/>
215    
216      <javadoc destdir="${dist.javadocs.dir}"      <!-- the packagenames="none" hack below prevents scanning the -->
217              link="http://java.sun.com/javase/6/docs/api/"      <!-- sourcepath for packages -->
             overview="${src.dir}/intro.html"  
218    
219              sourcepath="${src.dir}:/home/dl/1.6.0/j2se/martin/j2se/src/share/classes"      <javadoc destdir="${dist.javadocs.dir}"
220       >               packagenames="none"
221  <!--               link="http://download.oracle.com/javase/7/docs/api/"
222        <packageset dir="${src.dir}" defaultexcludes="yes">               overview="${src.dir}/intro.html"
223        <include name="java/util/concurrent"/>               sourcepath="${src.dir}:${jdksrc.dir}" >
224        <include name="java/util/concurrent/atomic"/>        <fileset dir="${src.dir}" defaultexcludes="yes">
225        <include name="java/util/concurrent/locks"/>        <include name="**/*.java"/>
       </packageset>  
 -->  
       <fileset dir="${topsrc.dir}" defaultexcludes="yes">  
       <include name="main/java/util/concurrent/*.java"/>  
       <include name="main/java/util/concurrent/atomic/*.java"/>  
       <include name="main/java/util/concurrent/locks/*.java"/>  
       <include name="main/java/util/*.java"/>  
 <!--  
       <include name="main/java/util/concurrent/*.html"/>  
       <include name="main/java/util/concurrent/atomic/*.html"/>  
       <include name="main/java/util/concurrent/locks/*.html"/>  
       <include name="main/java/util/*.html"/>  
 -->  
 <!--      <include name="jsr166x/*.java"/> -->  
226        </fileset>        </fileset>
227      </javadoc>      </javadoc>
228    
# Line 279  Line 266 
266    
267        <compilerarg value="${bootclasspath.args}"/>        <compilerarg value="${bootclasspath.args}"/>
268        <compilerarg line="${build.args}"/>        <compilerarg line="${build.args}"/>
269          <compilerarg value="-XDignore.symbol.file=true"/>
270    
271        <classpath refid="test.classpath"/>        <classpath refid="test.classpath"/>
272    
# Line 296  Line 284 
284    
285        <compilerarg value="${bootclasspath.args}"/>        <compilerarg value="${bootclasspath.args}"/>
286        <compilerarg line="${build.args}"/>        <compilerarg line="${build.args}"/>
287          <compilerarg value="-XDignore.symbol.file=true"/>
288    
289        <classpath refid="test.classpath"/>        <classpath refid="test.classpath"/>
290    
# Line 312  Line 301 
301    
302        <compilerarg value="${bootclasspath.args}"/>        <compilerarg value="${bootclasspath.args}"/>
303        <compilerarg line="${build.args}"/>        <compilerarg line="${build.args}"/>
304          <compilerarg value="-XDignore.symbol.file=true"/>
305    
306        <classpath refid="test.classpath"/>        <classpath refid="test.classpath"/>
307    
# Line 452  Line 442 
442    
443        <compilerarg line="${build.args}"/>        <compilerarg line="${build.args}"/>
444        <classpath refid="loops.classpath"/>        <classpath refid="loops.classpath"/>
445          <compilerarg value="-XDignore.symbol.file=true"/>
446    
447      </javac>      </javac>
448    
# Line 481  Line 472 
472    
473        <include name="**/*.java"/>        <include name="**/*.java"/>
474        <compilerarg line="${build.args}"/>        <compilerarg line="${build.args}"/>
475          <compilerarg value="-XDignore.symbol.file=true"/>
476    
477      </javac>      </javac>
478    
# Line 509  Line 501 
501      <mkdir dir="${build.jsr166xjavadocs.dir}"/>      <mkdir dir="${build.jsr166xjavadocs.dir}"/>
502    
503      <javadoc destdir="${build.jsr166xjavadocs.dir}"      <javadoc destdir="${build.jsr166xjavadocs.dir}"
504               link="http://java.sun.com/javase/6/docs/api/"               packagenames="jsr166x"
505                 link="http://download.oracle.com/javase/7/docs/api/"
506              sourcepath="${jsr166xsrc.dir}:/home/dl/1.5.0/j2se/martin/j2se/src/share/classes"               source="${build.sourcelevel}"
507                 sourcepath="${topsrc.dir}:${jdksrc.dir}" />
     >  
       <packageset dir="${topsrc.dir}" defaultexcludes="yes">  
       <include name="jsr166x"/>  
       </packageset>  
   
   
     </javadoc>  
508    
509    </target>    </target>
510    
# Line 554  Line 539 
539      <mkdir dir="${dist.jsr166xjavadocs.dir}"/>      <mkdir dir="${dist.jsr166xjavadocs.dir}"/>
540    
541      <javadoc destdir="${dist.jsr166xjavadocs.dir}"      <javadoc destdir="${dist.jsr166xjavadocs.dir}"
542                  link="http://java.sun.com/javase/6/docs/api/"               packagenames="jsr166x"
543                source="${build.sourcelevel}">               link="http://download.oracle.com/javase/7/docs/api/"
544                 source="${build.sourcelevel}"
545        <packageset dir="${topsrc.dir}" defaultexcludes="yes">               sourcepath="${topsrc.dir}:${jdksrc.dir}" />
       <include name="jsr166x"/>  
       </packageset>  
   
     </javadoc>  
546    
547    </target>    </target>
548    
# Line 591  Line 572 
572    
573        <include name="**/*.java"/>        <include name="**/*.java"/>
574        <compilerarg line="${build.args}"/>        <compilerarg line="${build.args}"/>
575          <compilerarg value="-XDignore.symbol.file=true"/>
576        <compilerarg value="${bootclasspath.args}"/>        <compilerarg value="${bootclasspath.args}"/>
577    
578  <!--       <compilerarg line="-Xlint -Xmaxwarns 1000"/> -->  <!--       <compilerarg line="-Xlint -Xmaxwarns 1000"/> -->
# Line 622  Line 604 
604      <mkdir dir="${build.jsr166yjavadocs.dir}"/>      <mkdir dir="${build.jsr166yjavadocs.dir}"/>
605    
606      <javadoc destdir="${build.jsr166yjavadocs.dir}"      <javadoc destdir="${build.jsr166yjavadocs.dir}"
607                  link="http://java.sun.com/javase/6/docs/api/"               packagenames="jsr166y"
608              sourcepath="${src.dir}:${jsr166ysrc.dir}:/home/dl/1.6.0/j2se/martin/j2se/src/share/classes"               link="http://download.oracle.com/javase/7/docs/api/"
609                 source="${build.sourcelevel}"
610      >               sourcepath="${topsrc.dir}:${jdksrc.dir}" />
       <packageset dir="${topsrc.dir}" defaultexcludes="no">  
       <include name="jsr166y"/>  
       </packageset>  
   
   
     </javadoc>  
611    
612    </target>    </target>
613    
# Line 664  Line 640 
640      <mkdir dir="${dist.jsr166yjavadocs.dir}"/>      <mkdir dir="${dist.jsr166yjavadocs.dir}"/>
641    
642      <javadoc destdir="${dist.jsr166yjavadocs.dir}"      <javadoc destdir="${dist.jsr166yjavadocs.dir}"
643                  link="http://java.sun.com/javase/6/docs/api/"               packagenames="jsr166y"
644                source="${build.sourcelevel}"               link="http://download.oracle.com/javase/7/docs/api/"
645              sourcepath="${src.dir}:${jsr166ysrc.dir}:/home/dl/1.6.0/j2se/martin/j2se/src/share/classes"               source="${build.sourcelevel}"
646              >                         sourcepath="${topsrc.dir}:${jdksrc.dir}" />
       <fileset dir="${topsrc.dir}" defaultexcludes="yes">  
       <include name="jsr166y/*.java"/>  
             </fileset>  
     </javadoc>  
647    
648    </target>    </target>
649    
# Line 702  Line 674 
674    
675        <include name="**/*.java"/>        <include name="**/*.java"/>
676        <compilerarg line="${build.args}"/>        <compilerarg line="${build.args}"/>
677          <compilerarg value="-XDignore.symbol.file=true"/>
678        <compilerarg value="${bootclasspath.args}"/>        <compilerarg value="${bootclasspath.args}"/>
679    
680  <!--       <compilerarg line="-Xlint -Xmaxwarns 1000"/> -->  <!--       <compilerarg line="-Xlint -Xmaxwarns 1000"/> -->
# Line 733  Line 706 
706      <mkdir dir="${build.extra166yjavadocs.dir}"/>      <mkdir dir="${build.extra166yjavadocs.dir}"/>
707    
708      <javadoc destdir="${build.extra166yjavadocs.dir}"      <javadoc destdir="${build.extra166yjavadocs.dir}"
709                  link="http://java.sun.com/javase/6/docs/api/"               packagenames="extra166y"
710              sourcepath="${src.dir}:${jsr166ysrc.dir}:${extra166ysrc.dir}:/home/dl/1.6.0/j2se/martin/j2se/src/share/classes"               link="http://download.oracle.com/javase/7/docs/api/"
711                 source="${build.sourcelevel}"
712      >               sourcepath="${topsrc.dir}:${jdksrc.dir}" />
       <packageset dir="${topsrc.dir}" defaultexcludes="no">  
       <include name="extra166y"/>  
       </packageset>  
   
   
     </javadoc>  
713    
714    </target>    </target>
715    
# Line 775  Line 742 
742      <mkdir dir="${dist.extra166yjavadocs.dir}"/>      <mkdir dir="${dist.extra166yjavadocs.dir}"/>
743    
744      <javadoc destdir="${dist.extra166yjavadocs.dir}"      <javadoc destdir="${dist.extra166yjavadocs.dir}"
745                  link="http://java.sun.com/javase/6/docs/api/"               packagenames="extra166y"
746                source="${build.sourcelevel}"               link="http://download.oracle.com/javase/7/docs/api/"
747              sourcepath="${src.dir}:${jsr166ysrc.dir}:${extra166ysrc.dir}:/home/dl/1.6.0/j2se/martin/j2se/src/share/classes"               source="${build.sourcelevel}"
748              >               sourcepath="${topsrc.dir}:${jdksrc.dir}" />
       <fileset dir="${topsrc.dir}" defaultexcludes="yes">  
       <include name="extra166y/*.java"/>  
             </fileset>  
     </javadoc>  
749    
750    </target>    </target>
751    

Legend:
Removed from v.1.78  
changed lines
  Added in v.1.87

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