/[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.88 by jsr166, Sun May 29 16:00:20 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 145  Line 148 
148      <delete dir="${build.javadocs.dir}"/>      <delete dir="${build.javadocs.dir}"/>
149      <mkdir dir="${build.javadocs.dir}"/>      <mkdir dir="${build.javadocs.dir}"/>
150    
151      <javadoc destdir="${build.javadocs.dir}"      <!-- the packagenames="none" hack below prevents scanning the -->
152                  link="http://java.sun.com/javase/6/docs/api/"      <!-- sourcepath for packages -->
             overview="${src.dir}/intro.html"  
             sourcepath="${src.dir}:/home/dl/1.6.0/j2se/martin/j2se/src/share/classes"  
     >            
   
       <packageset dir="${src.dir}"/>  
153    
154        <javadoc destdir="${build.javadocs.dir}"
155                 packagenames="none"
156                 link="http://download.oracle.com/javase/7/docs/api/"
157                 overview="${src.dir}/intro.html"
158                 sourcepath="${src.dir}:${jdksrc.dir}" >
159          <fileset dir="${src.dir}" defaultexcludes="yes">
160          <include name="**/*.java"/>
161          </fileset>
162      </javadoc>      </javadoc>
163    
164    </target>    </target>
# Line 164  Line 170 
170            description="Puts all distributable products in single hierarchy"/>            description="Puts all distributable products in single hierarchy"/>
171    
172    
   
173    <target name="release"    <target name="release"
174            depends="dist"            depends="dist"
175            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 216 
216      <delete dir="${dist.javadocs.dir}"/>      <delete dir="${dist.javadocs.dir}"/>
217      <mkdir dir="${dist.javadocs.dir}"/>      <mkdir dir="${dist.javadocs.dir}"/>
218    
219      <javadoc destdir="${dist.javadocs.dir}"      <!-- the packagenames="none" hack below prevents scanning the -->
220              link="http://java.sun.com/javase/6/docs/api/"      <!-- sourcepath for packages -->
             overview="${src.dir}/intro.html"  
221    
222              sourcepath="${src.dir}:/home/dl/1.6.0/j2se/martin/j2se/src/share/classes"      <javadoc destdir="${dist.javadocs.dir}"
223       >               packagenames="none"
224  <!--               link="http://download.oracle.com/javase/7/docs/api/"
225        <packageset dir="${src.dir}" defaultexcludes="yes">               overview="${src.dir}/intro.html"
226        <include name="java/util/concurrent"/>               sourcepath="${src.dir}:${jdksrc.dir}" >
227        <include name="java/util/concurrent/atomic"/>        <fileset dir="${src.dir}" defaultexcludes="yes">
228        <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"/> -->  
229        </fileset>        </fileset>
230      </javadoc>      </javadoc>
231    
# Line 279  Line 269 
269    
270        <compilerarg value="${bootclasspath.args}"/>        <compilerarg value="${bootclasspath.args}"/>
271        <compilerarg line="${build.args}"/>        <compilerarg line="${build.args}"/>
272          <compilerarg value="-XDignore.symbol.file=true"/>
273    
274        <classpath refid="test.classpath"/>        <classpath refid="test.classpath"/>
275    
# Line 296  Line 287 
287    
288        <compilerarg value="${bootclasspath.args}"/>        <compilerarg value="${bootclasspath.args}"/>
289        <compilerarg line="${build.args}"/>        <compilerarg line="${build.args}"/>
290          <compilerarg value="-XDignore.symbol.file=true"/>
291    
292        <classpath refid="test.classpath"/>        <classpath refid="test.classpath"/>
293    
# Line 312  Line 304 
304    
305        <compilerarg value="${bootclasspath.args}"/>        <compilerarg value="${bootclasspath.args}"/>
306        <compilerarg line="${build.args}"/>        <compilerarg line="${build.args}"/>
307          <compilerarg value="-XDignore.symbol.file=true"/>
308    
309        <classpath refid="test.classpath"/>        <classpath refid="test.classpath"/>
310    
# Line 452  Line 445 
445    
446        <compilerarg line="${build.args}"/>        <compilerarg line="${build.args}"/>
447        <classpath refid="loops.classpath"/>        <classpath refid="loops.classpath"/>
448          <compilerarg value="-XDignore.symbol.file=true"/>
449    
450      </javac>      </javac>
451    
# Line 481  Line 475 
475    
476        <include name="**/*.java"/>        <include name="**/*.java"/>
477        <compilerarg line="${build.args}"/>        <compilerarg line="${build.args}"/>
478          <compilerarg value="-XDignore.symbol.file=true"/>
479    
480      </javac>      </javac>
481    
# Line 509  Line 504 
504      <mkdir dir="${build.jsr166xjavadocs.dir}"/>      <mkdir dir="${build.jsr166xjavadocs.dir}"/>
505    
506      <javadoc destdir="${build.jsr166xjavadocs.dir}"      <javadoc destdir="${build.jsr166xjavadocs.dir}"
507               link="http://java.sun.com/javase/6/docs/api/"               packagenames="jsr166x"
508                 link="http://download.oracle.com/javase/7/docs/api/"
509              sourcepath="${jsr166xsrc.dir}:/home/dl/1.5.0/j2se/martin/j2se/src/share/classes"               source="${build.sourcelevel}"
510                 sourcepath="${topsrc.dir}:${jdksrc.dir}" />
     >  
       <packageset dir="${topsrc.dir}" defaultexcludes="yes">  
       <include name="jsr166x"/>  
       </packageset>  
   
   
     </javadoc>  
511    
512    </target>    </target>
513    
# Line 554  Line 542 
542      <mkdir dir="${dist.jsr166xjavadocs.dir}"/>      <mkdir dir="${dist.jsr166xjavadocs.dir}"/>
543    
544      <javadoc destdir="${dist.jsr166xjavadocs.dir}"      <javadoc destdir="${dist.jsr166xjavadocs.dir}"
545                  link="http://java.sun.com/javase/6/docs/api/"               packagenames="jsr166x"
546                source="${build.sourcelevel}">               link="http://download.oracle.com/javase/7/docs/api/"
547                 source="${build.sourcelevel}"
548        <packageset dir="${topsrc.dir}" defaultexcludes="yes">               sourcepath="${topsrc.dir}:${jdksrc.dir}" />
       <include name="jsr166x"/>  
       </packageset>  
   
     </javadoc>  
549    
550    </target>    </target>
551    
# Line 591  Line 575 
575    
576        <include name="**/*.java"/>        <include name="**/*.java"/>
577        <compilerarg line="${build.args}"/>        <compilerarg line="${build.args}"/>
578          <compilerarg value="-XDignore.symbol.file=true"/>
579        <compilerarg value="${bootclasspath.args}"/>        <compilerarg value="${bootclasspath.args}"/>
580    
581  <!--       <compilerarg line="-Xlint -Xmaxwarns 1000"/> -->  <!--       <compilerarg line="-Xlint -Xmaxwarns 1000"/> -->
# Line 622  Line 607 
607      <mkdir dir="${build.jsr166yjavadocs.dir}"/>      <mkdir dir="${build.jsr166yjavadocs.dir}"/>
608    
609      <javadoc destdir="${build.jsr166yjavadocs.dir}"      <javadoc destdir="${build.jsr166yjavadocs.dir}"
610                  link="http://java.sun.com/javase/6/docs/api/"               packagenames="jsr166y"
611              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/"
612                 source="${build.sourcelevel}"
613      >               sourcepath="${topsrc.dir}:${jdksrc.dir}" />
       <packageset dir="${topsrc.dir}" defaultexcludes="no">  
       <include name="jsr166y"/>  
       </packageset>  
   
   
     </javadoc>  
614    
615    </target>    </target>
616    
# Line 664  Line 643 
643      <mkdir dir="${dist.jsr166yjavadocs.dir}"/>      <mkdir dir="${dist.jsr166yjavadocs.dir}"/>
644    
645      <javadoc destdir="${dist.jsr166yjavadocs.dir}"      <javadoc destdir="${dist.jsr166yjavadocs.dir}"
646                  link="http://java.sun.com/javase/6/docs/api/"               packagenames="jsr166y"
647                source="${build.sourcelevel}"               link="http://download.oracle.com/javase/7/docs/api/"
648              sourcepath="${src.dir}:${jsr166ysrc.dir}:/home/dl/1.6.0/j2se/martin/j2se/src/share/classes"               source="${build.sourcelevel}"
649              >                         sourcepath="${topsrc.dir}:${jdksrc.dir}" />
       <fileset dir="${topsrc.dir}" defaultexcludes="yes">  
       <include name="jsr166y/*.java"/>  
             </fileset>  
     </javadoc>  
650    
651    </target>    </target>
652    
# Line 702  Line 677 
677    
678        <include name="**/*.java"/>        <include name="**/*.java"/>
679        <compilerarg line="${build.args}"/>        <compilerarg line="${build.args}"/>
680          <compilerarg value="-XDignore.symbol.file=true"/>
681        <compilerarg value="${bootclasspath.args}"/>        <compilerarg value="${bootclasspath.args}"/>
682    
683  <!--       <compilerarg line="-Xlint -Xmaxwarns 1000"/> -->  <!--       <compilerarg line="-Xlint -Xmaxwarns 1000"/> -->
# Line 733  Line 709 
709      <mkdir dir="${build.extra166yjavadocs.dir}"/>      <mkdir dir="${build.extra166yjavadocs.dir}"/>
710    
711      <javadoc destdir="${build.extra166yjavadocs.dir}"      <javadoc destdir="${build.extra166yjavadocs.dir}"
712                  link="http://java.sun.com/javase/6/docs/api/"               packagenames="extra166y"
713              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/"
714                 source="${build.sourcelevel}"
715      >               sourcepath="${topsrc.dir}:${jdksrc.dir}" />
       <packageset dir="${topsrc.dir}" defaultexcludes="no">  
       <include name="extra166y"/>  
       </packageset>  
   
   
     </javadoc>  
716    
717    </target>    </target>
718    
# Line 775  Line 745 
745      <mkdir dir="${dist.extra166yjavadocs.dir}"/>      <mkdir dir="${dist.extra166yjavadocs.dir}"/>
746    
747      <javadoc destdir="${dist.extra166yjavadocs.dir}"      <javadoc destdir="${dist.extra166yjavadocs.dir}"
748                  link="http://java.sun.com/javase/6/docs/api/"               packagenames="extra166y"
749                source="${build.sourcelevel}"               link="http://download.oracle.com/javase/7/docs/api/"
750              sourcepath="${src.dir}:${jsr166ysrc.dir}:${extra166ysrc.dir}:/home/dl/1.6.0/j2se/martin/j2se/src/share/classes"               source="${build.sourcelevel}"
751              >               sourcepath="${topsrc.dir}:${jdksrc.dir}" />
       <fileset dir="${topsrc.dir}" defaultexcludes="yes">  
       <include name="extra166y/*.java"/>  
             </fileset>  
     </javadoc>  
752    
753    </target>    </target>
754    

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

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