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

Diff of /jsr166/build.xml

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

revision 1.12 by tim, Wed Dec 11 21:40:56 2002 UTC revision 1.80 by dl, Sat Aug 1 23:35:22 2009 UTC
# Line 1  Line 1 
1  <project name="jsr166" default="jar">  <project name="jsr166" default="usage">
2    
3    <description>    <description>
4    ------------------------------------------------------------------------------
5      Build file for JSR-166
6    
7      Build file for JSR-166    Usage: ant [target]
   
     Note that junit.jar must be in ${ant.home}/lib for the  
     test target to work. [FIXME: This should be automatically  
     enforced by this build file by failing with a message if  
     junit.jar is not in the right place.]  
8    
9      User-specific settings are read from user.properties.
10      See user.properties.sample for an explanation of some useful settings.
11    ------------------------------------------------------------------------------
12    </description>    </description>
13    
14      <target name="usage" description="Advises user to run with -projecthelp">
15        <echo>Run "ant -projecthelp" for full usage information.</echo>
16      </target>
17    
18    
19      <!-- User-specific settings -->
20      <property file="user.properties"/>
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="true"/>    <property name="build.deprecation"    value="false"/>
   <property name="build.warnings"       value="true"/>  
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.lib.dir"        location="${build.dir}/lib"/>    <property name="build.loops.dir"             location="${build.dir}/loops"/>
34    <property name="build.ant.dir"        location="${build.dir}/ant"/>    <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.filter.src.dir" location="${build.dir}/filtersrc"/>    <property name="build.jsr166x.dir"           location="${build.dir}/jsr166x"/>
38      <property name="build.jsr166xlib.dir"        location="${build.dir}/jsr166xlib"/>
39      <property name="build.jsr166xjavadocs.dir"   location="${build.dir}/jsr166xjavadocs"/>
40    
41      <property name="build.jsr166y.dir"           location="${build.dir}/jsr166y"/>
42      <property name="build.jsr166ylib.dir"        location="${build.dir}/jsr166ylib"/>
43      <property name="build.jsr166yjavadocs.dir"   location="${build.dir}/jsr166yjavadocs"/>
44    
45      <property name="build.extra166y.dir"         location="${build.dir}/extra166y"/>
46      <property name="build.extra166ylib.dir"      location="${build.dir}/extra166ylib"/>
47      <property name="build.extra166yjavadocs.dir" location="${build.dir}/extra166yjavadocs"/>
48    
49    <!-- Source locations -->    <!-- Source locations -->
50    <property name="src.dir"              location="${basedir}"/>    <property name="src.dir"              location="${basedir}/src/main"/>
51    <property name="test.src.dir"         location="${basedir}/etc/testcases"/>    <property name="test.src.dir"         location="${basedir}/src/test"/>
52    <property name="ant.src.dir"          location="${basedir}/etc/ant"/>    <property name="loops.src.dir"        location="${basedir}/src/loops"/>
53    <property name="stylesheet.dir"       location="${basedir}/etc/xsl"/>    <property name="tck.src.dir"          location="${test.src.dir}/tck"/>
54      <property name="jtreg.src.dir"        location="${test.src.dir}/jtreg"/>
55    <property name="lib.dir"              location="${basedir}/lib"/>    <property name="lib.dir"              location="${basedir}/lib"/>
56    <property name="dist.dir"             location="${basedir}/dist"/>    <property name="dist.dir"             location="${basedir}/dist"/>
57      <property name="topsrc.dir"           location="${basedir}/src"/>
58      <property name="jsr166xsrc.dir"       location="${basedir}/src/jsr166x"/>
59      <property name="jsr166ysrc.dir"       location="${basedir}/src/jsr166y"/>
60      <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"/>
65      <property name="dist.jsr166yjavadocs.dir"    location="${dist.dir}/jsr166ydocs"/>
66      <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="javac.jar"            location="${lib.dir}/javac.jar"/>    <property name="jsr166xproduct.jar"   location="${build.jsr166xlib.dir}/jsr166x.jar"/>
71    <property name="collect.jar"          location="${lib.dir}/collect.jar"/>    <property name="jsr166yproduct.jar"   location="${build.jsr166ylib.dir}/jsr166y.jar"/>
72      <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"/>
   <property name="rt.jar"               location="${java.home}/lib/rt.jar"/>  
74    
75    <property name="javac.args"           value='-J-Xbootclasspath/p:${javac.jar}'/>    <!-- Bootclasspath argument -->
76      <property name="bootclasspath.args"   value="-Xbootclasspath/p:${product.jar}"/>
77    
78    <path id="javac.bootclasspath">    <!-- Test classpath -->
79      <pathelement location="${collect.jar}"/>    <path id="test.classpath">
80      <pathelement location="${rt.jar}"/>      <pathelement location="${build.testcases.dir}"/>
81        <pathelement location="${junit.jar}"/>
82    </path>    </path>
83    
84    <path id="test.classpath">    <!-- ALoops classpath -->
85      <pathelement location="${product.jar}"/>    <path id="loops.classpath">
86        <pathelement location="${build.loops.dir}"/>
87    </path>    </path>
88    
89    
90    <!-- Main targets -->    <!-- Main targets -->
91    
92    <target name="compile" depends="init"    <target name="dists"
93            description="Compiles all sources to build folder">            depends="dist, jsr166xdist, jsr166ydist, extra166ydist"
94              description="Builds all public jars and docs"/>
95    
96      <target name="compile"
97              depends="init, configure-compiler"
98              description="Compiles main sources to build folder">
99    
100      <mkdir dir="${build.classes.dir}"/>      <mkdir dir="${build.classes.dir}"/>
101    
102      <javac srcdir="${src.dir}"      <javac srcdir="${src.dir}"
103            destdir="${build.classes.dir}"            destdir="${build.classes.dir}"
104              debug="${build.debug}"              debug="${build.debug}"
# Line 71  Line 107 
107             source="${build.sourcelevel}"             source="${build.sourcelevel}"
108               fork="true">               fork="true">
109    
110        <bootclasspath refid="javac.bootclasspath"/>        <include name="**/*.java"/>
111        <compilerarg line="${javac.args} ${build.warnings.option}"/>        <compilerarg value="-XDignore.symbol.file"/>
112    
113        <!-- need this because srcdir is basedir! -->  <!--
114        <include name="java/**/*.java"/>        <exclude name="java/lang/**"/>
115          <compilerarg line="${build.args}"/>
116          <compilerarg line="-Xlint -Xmaxwarns 1000"/>
117    -->
118    
119      </javac>      </javac>
120    
121    </target>    </target>
122    
123    
124    <target name="jar" depends="compile"  
125      <target name="jar"
126              depends="compile"
127            description="Builds library jar from compiled sources">            description="Builds library jar from compiled sources">
128    
129      <mkdir dir="${build.lib.dir}"/>      <mkdir dir="${build.lib.dir}"/>
130      <jar basedir="${build.classes.dir}"  
131          destfile="${product.jar}"      <jar destfile="${product.jar}">
132      />        <fileset dir="${build.classes.dir}"/>
133        </jar>
134    
135    </target>    </target>
136    
137    
138    <target name="test" depends="init, report-tests"  
139            description="Runs all tests"/>    <target name="test"
140              depends="init, configure-tests, report-tests"
141              description="Runs all tests (requires JUnit 3.8.1 in ${ant.home}/lib)" />
142    
143    
144    
145    <target name="docs" depends="init, clean-filtered-src, filter-src"    <target name="docs"
146            description="Builds javadocs with custom tags to build folder">            description="Builds javadocs with custom tags to build folder">
147    
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}"      <javadoc destdir="${build.javadocs.dir}"
152                  link="http://java.sun.com/j2se/1.4.1/docs/api"                  link="http://java.sun.com/javase/6/docs/api/"
153              overview="${src.dir}/intro.html"              overview="${src.dir}/intro.html"
154                source="${build.sourcelevel}">              sourcepath="${src.dir}:${jdksrc.dir}"
155        >          
156    
157        <tag name="revised" description="Last revised:"/>        <packageset dir="${src.dir}"/>
       <tag name="spec" description="Specified by:"/>  
       <tag name="editor" description="Last edited by:"/>  
       <tag name="fixme" description="FIX ME:"/>  
       <packageset dir="${build.filter.src.dir}">  
         <include name="java/**"/>  
       </packageset>  
158    
159      </javadoc>      </javadoc>
160    
161    </target>    </target>
162    
163    
164    <target name="dist" depends="init, dist-clean, dist-jar, dist-docs"/>  
165      <target name="dist"
166              depends="init, dist-clean, dist-jar, dist-docs"
167              description="Puts all distributable products in single hierarchy"/>
168    
169    
170      <target name="release"
171              depends="dist"
172              description="Puts entire CVS tree, plus distribution productions, in a jar">
173    
174        <property name="release.jar" value="dist/jsr166-${version}-dist.jar"/>
175    
176        <jar basedir="${basedir}" destfile="${release.jar}">
177          <!-- <exclude name="build/**"/> -->
178          <exclude name="${release.jar}"/>
179          <exclude name="user.properties"/>
180          <exclude name="etc/notes/**"/>
181          <exclude name="src/emulation/**"/>
182          <exclude name="**/SyntaxTest.java"/>
183          <exclude name="**/SuperfluousAbstract.java"/>
184        </jar>
185    
186      </target>
187    
188    
189    
190    <target name="clean"    <target name="clean"
191            description="Removes all build products">            description="Removes all build products">
192    
193      <delete dir="${build.dir}"/>      <delete dir="${build.dir}"/>
194      <delete dir="${build.classes.dir}"/>      <delete dir="${build.classes.dir}"/>
195      <delete dir="${build.lib.dir}"/>      <delete dir="${build.lib.dir}"/>
196    
197    </target>    </target>
198    
199    
200    
201    <target name="dist-clean"    <target name="dist-clean"
202            description="Removes all build and distribution products">            description="Removes all build and distribution products">
203    
204      <delete dir="${dist.dir}"/>      <delete dir="${dist.dir}"/>
205    
206    </target>    </target>
207    
208    
   <!-- Internal targets -->  
209    
210    <target name="set-warnings-if" if="build.warnings">    <target name="dist-docs"
211      <property name="build.warnings.option" value="-warnunchecked"/>            description="Builds javadocs without custom tags to dist folder">
212    </target>  
213        <delete dir="${dist.javadocs.dir}"/>
214        <mkdir dir="${dist.javadocs.dir}"/>
215    
216        <javadoc destdir="${dist.javadocs.dir}"
217                link="http://java.sun.com/javase/6/docs/api/"
218                overview="${src.dir}/intro.html"
219    
220                sourcepath="${src.dir}:${jdksrc.dir}"
221         >
222    <!--
223          <packageset dir="${src.dir}" defaultexcludes="yes">
224          <include name="java/util/concurrent"/>
225          <include name="java/util/concurrent/atomic"/>
226          <include name="java/util/concurrent/locks"/>
227          </packageset>
228    -->
229          <fileset dir="${topsrc.dir}" defaultexcludes="yes">
230          <include name="main/java/util/concurrent/*.java"/>
231          <include name="main/java/util/concurrent/atomic/*.java"/>
232          <include name="main/java/util/concurrent/locks/*.java"/>
233          <include name="main/java/util/*.java"/>
234    <!--
235          <include name="main/java/util/concurrent/*.html"/>
236          <include name="main/java/util/concurrent/atomic/*.html"/>
237          <include name="main/java/util/concurrent/locks/*.html"/>
238          <include name="main/java/util/*.html"/>
239    -->
240    <!--      <include name="jsr166x/*.java"/> -->
241          </fileset>
242        </javadoc>
243    
   <target name="set-warnings-unless" unless="build.warnings">  
     <property name="build.warnings.option" value=""/>  
244    </target>    </target>
245    
246    <target name="init" depends="set-warnings-if, set-warnings-unless">  
247    
248      <!-- Internal targets -->
249    
250    
251      <target name="init">
252    
253      <!-- Version is kept in a separate file -->      <!-- Version is kept in a separate file -->
254      <loadfile property="version" srcFile="version.properties"/>      <loadfile property="version" srcFile="version.properties"/>
255      <echo>Building JSR-166 version ${version}</echo>      <echo>Building JSR-166 version ${version}</echo>
256    </target>      <echo>java.home is ${java.home}</echo>
257    
   
   <target name="clean-filtered-src">  
     <delete dir="${build.filter.src.dir}"/>  
258    </target>    </target>
259    
260    
261    <target name="dist-jar" depends="clean, jar">    <target name="dist-jar"
262              depends="clean, jar">
263    
264      <copy file="${product.jar}" todir="${dist.dir}"/>      <copy file="${product.jar}" todir="${dist.dir}"/>
265    
266    </target>    </target>
267    
268    
269    <target name="dist-docs" depends="clean-filtered-src, filter-src"    <target name="compile-tests"
270            description="Builds javadocs without custom tags to dist folder">            depends="jar">
     <delete dir="${dist.javadocs.dir}"/>  
     <mkdir dir="${dist.javadocs.dir}"/>  
     <javadoc destdir="${dist.javadocs.dir}"  
                 link="http://java.sun.com/j2se/1.4.1/docs/api"  
             overview="${src.dir}/intro.html"  
               source="${build.sourcelevel}">  
271    
272        <packageset dir="${build.filter.src.dir}">      <mkdir dir="${build.testcases.dir}"/>
         <include name="java/**"/>  
       </packageset>  
273    
274      </javadoc>      <javac srcdir="${tck.src.dir}"
275    </target>            destdir="${build.testcases.dir}"
276                debug="${build.debug}"
277           debuglevel="${build.debuglevel}"
278          deprecation="${build.deprecation}"
279               source="${build.sourcelevel}"
280                 fork="true">
281    
282          <compilerarg value="${bootclasspath.args}"/>
283          <compilerarg line="${build.args}"/>
284    
285    <target name="compile-ant-filter">        <classpath refid="test.classpath"/>
     <mkdir dir="${build.ant.dir}"/>  
     <javac srcdir="${ant.src.dir}"  
           destdir="${build.ant.dir}"  
            source="1.4"  
     />  
   </target>  
286    
287        </javac>
288    
289    <target name="filter-src" depends="compile-ant-filter">      <javac srcdir="${test.src.dir}"
290      <mkdir dir="${build.filter.src.dir}"/>            destdir="${build.testcases.dir}"
291      <copy todir="${build.filter.src.dir}">              debug="${build.debug}"
292        <fileset dir="${src.dir}">         debuglevel="${build.debuglevel}"
293          <include name="**/*.java"/>        deprecation="${build.deprecation}"
294        </fileset>             source="${build.sourcelevel}"
295        <filterchain>               fork="true">
         <filterreader classname="jsr166.ant.filters.ReplaceFilter"  
                       classpath="${build.ant.dir}">  
           <!--  
            # These arguments are to get rid of angle-bracketed type  
            # parameters so that javadoc can run on the result. The  
            # following heuristic that seems to work:  
            #  
            # For all lines not starting with space(s)-asterisk-space(s),  
            #   replace <something> with a space, where there may be more  
            #   than one right angle bracket at the end, and "something"  
            #   must not contain parens or pipes. (This may need some  
            #   tweaking.)  
            -->  
           <param name="notmatching" value="^\s+\*\s.*$"/>  
           <param name="pattern" value="&lt;[^|>()]+?>+"/>  
           <param name="replacement" value=" "/>  
         </filterreader>  
         <filterreader classname="jsr166.ant.filters.ReplaceFilter"  
                       classpath="${build.ant.dir}">  
           <!--  
            # These arguments are to uncomment lines beginning with  
            # "//@" so that javadoc can see imports that are needed  
            # to resolve links but that shouldn't be in the compiled  
            # code.  
            -->  
           <param name="matching" value="^//@.*$"/>  
           <param name="pattern" value="^//@"/>  
           <param name="replacement" value=""/>  
         </filterreader>  
       </filterchain>  
     </copy>  
   </target>  
296    
297          <include name="jsr166/test/**"/>
298    
299    <target name="compile-tests" depends="jar">        <compilerarg value="${bootclasspath.args}"/>
300      <mkdir dir="${build.testcases.dir}"/>        <compilerarg line="${build.args}"/>
301      <javac srcdir="${test.src.dir}"  
302          <classpath refid="test.classpath"/>
303    
304        </javac>
305    
306    <!--
307        <javac srcdir="${jtreg.src.dir}"
308            destdir="${build.testcases.dir}"            destdir="${build.testcases.dir}"
309              debug="${build.debug}"              debug="${build.debug}"
310         debuglevel="${build.debuglevel}"         debuglevel="${build.debuglevel}"
# Line 236  Line 312 
312             source="${build.sourcelevel}"             source="${build.sourcelevel}"
313               fork="true">               fork="true">
314    
315        <bootclasspath refid="javac.bootclasspath"/>        <compilerarg value="${bootclasspath.args}"/>
316        <compilerarg line="${javac.args} ${build.warnings.option}"/>        <compilerarg line="${build.args}"/>
317    
318        <classpath refid="test.classpath"/>        <classpath refid="test.classpath"/>
       <include name="**/*Test.java"/>  
319    
320      </javac>      </javac>
321    -->
322    
323    </target>    </target>
324    
325    
326    <target name="run-tests" depends="compile-tests">    <target name="run-tests"
327              depends="compile-tests">
328    
329        <!-- May be overridden by user.properties -->
330        <property name="testcase" value="*"/>
331    
332      <mkdir dir="${build.reports.dir}"/>      <mkdir dir="${build.reports.dir}"/>
333    
334      <junit printsummary="true"      <junit printsummary="true"
335               showoutput="true"               showoutput="true"
336            errorProperty="junit.failed"            errorProperty="junit.failed"
# Line 254  Line 338 
338                      dir="${build.reports.dir}"                      dir="${build.reports.dir}"
339                     fork="true">                     fork="true">
340    
341        <jvmarg value="-Xbootclasspath/p:${product.jar}"/>        <jvmarg value="${bootclasspath.args}"/>
342          <jvmarg value="-server"/>
343          <jvmarg value="-showversion"/>
344    
345        <classpath>        <classpath refid="test.classpath"/>
         <!-- <path refid="test.classpath"/> -->  
         <pathelement location="${build.testcases.dir}"/>  
       </classpath>  
346    
347        <formatter type="xml"/>        <formatter type="xml"/>
348    
349        <batchtest todir="${build.reports.dir}">        <batchtest todir="${build.reports.dir}" unless="no.test.tck">
350            <fileset dir="${tck.src.dir}">
351              <include name="**/${testcase}Test.java"/>
352            </fileset>
353          </batchtest>
354    
355          <batchtest todir="${build.reports.dir}" if="do.test.old">
356          <fileset dir="${test.src.dir}">          <fileset dir="${test.src.dir}">
357            <include name="**/*Test.java"/>            <include name="jsr166/test/**/${testcase}Test.java"/>
358          </fileset>          </fileset>
359        </batchtest>        </batchtest>
360    
361    <!--
362          <batchtest todir="${build.reports.dir}" if="do.test.jtreg">
363            <fileset dir="${jtreg.src.dir}">
364              <include name="**/${testcase}Test.java"/>
365            </fileset>
366          </batchtest>
367    -->
368    
369      </junit>      </junit>
370    
371    </target>    </target>
372    
373    
374    <target name="report-tests" depends="run-tests">    <target name="report-tests"
375      <!-- Sets junit.report.format to frames if Xalan is present,            depends="run-tests">
376    
377        <!-- Sets junit.report.format to frames if redirection is present,
378           otherwise sets it to noframes. -->           otherwise sets it to noframes. -->
379      <available property="junit.report.format"      <available property="junit.report.format"
380                    value="frames"                    value="frames"
# Line 286  Line 386 
386        <fileset dir="${build.reports.dir}">        <fileset dir="${build.reports.dir}">
387          <include name="TEST-*.xml"/>          <include name="TEST-*.xml"/>
388        </fileset>        </fileset>
389        <report styledir="${stylesheet.dir}"        <report format="${junit.report.format}" todir="${build.reports.dir}"
                 format="${junit.report.format}"  
                  todir="${build.reports.dir}"  
390        />        />
391      </junitreport>      </junitreport>
392    
393      <fail message="Test Cases Failed" if="junit.failed"/>      <fail message="Test Cases Failed" if="junit.failed"/>
394    
395      </target>
396    
397    
398      <target name="configure-compiler">
399    
400        <property name="unchecked.option" value="-Xlint:unchecked"/>
401    
402        <condition property="warnunchecked.arg" value="${unchecked.option}">
403          <istrue value="${build.warnunchecked}"/>
404        </condition>
405    
406        <property name="warnunchecked.arg" value=""/>
407    
408    
409        <!-- Common options in javac invocations -->
410        <property name="build.args" value="${warnunchecked.arg}"/>
411    
412      </target>
413    
414    
415      <target name="configure-tests"
416           depends="configure-compiler">
417    
418        <!-- junit.framework.Protectable is in JUnit 3.8.1 but not in 3.7 -->
419        <available property="junit.available"
420                   classname="junit.framework.Protectable"/>
421    
422        <!-- Xalan -->
423        <available property="xalan.available"
424                   classname="org.apache.xalan.Version"/>
425    
426    
427        <!-- Ant 1.6beta and later don't need or want this check -->
428        <!--
429        <fail message="Need JUnit 3.8.1 in ${ant.home}${file.separator}lib to run tests"
430              unless="junit.available"/>
431    
432        <fail message="Need Xalan 2.5.1 jar in ${ant.home}${file.separator}lib to run tests"
433              unless="xalan.available"/>
434        -->
435    
436      </target>
437    
438    
439      <!-- Various demos and test programs -->
440    
441    
442      <target name="loops" depends="init, configure-compiler"
443              description="Benchmark from Doug Lea's AQS paper">
444    
445        <mkdir dir="${build.loops.dir}"/>
446    
447        <javac srcdir="${loops.src.dir}"
448              destdir="${build.loops.dir}"
449                debug="${build.debug}"
450           debuglevel="${build.debuglevel}"
451          deprecation="${build.deprecation}"
452               source="${build.sourcelevel}"
453                 fork="true">
454    
455          <compilerarg line="${build.args}"/>
456          <classpath refid="loops.classpath"/>
457    
458        </javac>
459    
460        <java classname="ALoops" fork="true">
461          <classpath refid="loops.classpath"/>
462        </java>
463    
464      </target>
465    
466    
467      <!-- jsr166x -->
468    
469    
470      <target name="jsr166xcompile"
471              depends="init, configure-compiler"
472              description="Compiles jsr166x sources">
473    
474        <mkdir dir="${build.jsr166x.dir}"/>
475    
476        <javac srcdir="${jsr166xsrc.dir}"
477              destdir="${build.jsr166x.dir}"
478                debug="${build.debug}"
479           debuglevel="${build.debuglevel}"
480          deprecation="${build.deprecation}"
481               source="${build.sourcelevel}"
482                 fork="true">
483    
484          <include name="**/*.java"/>
485          <compilerarg line="${build.args}"/>
486    
487        </javac>
488    
489    </target>    </target>
490    
491    
492    
493      <target name="jsr166xjar"
494              depends="jsr166xcompile"
495              description="Builds library jar from compiled sources">
496    
497        <mkdir dir="${build.jsr166xlib.dir}"/>
498    
499        <jar destfile="${jsr166xproduct.jar}">
500          <fileset dir="${build.jsr166x.dir}"/>
501        </jar>
502    
503      </target>
504    
505    
506    
507      <target name="jsr166xdocs"
508              description="Builds javadocs with custom tags to build folder">
509    
510        <delete dir="${build.jsr166xjavadocs.dir}"/>
511        <mkdir dir="${build.jsr166xjavadocs.dir}"/>
512    
513        <javadoc destdir="${build.jsr166xjavadocs.dir}"
514                 link="http://java.sun.com/javase/6/docs/api/"
515    
516                sourcepath="${topsrc.dir}:${jdksrc.dir}"
517    
518        >
519          <packageset dir="${topsrc.dir}" defaultexcludes="yes">
520          <include name="jsr166x"/>
521          </packageset>
522    
523    
524        </javadoc>
525    
526      </target>
527    
528    
529      <target name="jsr166xdist"
530              depends="jsr166xdist-clean, jsr166xdist-jar, jsr166xdist-docs"
531              description="Puts all distributable products in single hierarchy"/>
532    
533    
534    
535      <target name="jsr166xclean"
536              description="Removes all build products">
537    
538        <delete dir="${build.jsr166x.dir}"/>
539        <delete dir="${build.jsr166xlib.dir}"/>
540    
541      </target>
542    
543    
544    
545      <target name="jsr166xdist-clean"
546              description="Removes all build and distribution products">
547    
548      </target>
549    
550    
551    
552      <target name="jsr166xdist-docs"
553              description="Builds javadocs without custom tags to dist folder">
554    
555        <delete dir="${dist.jsr166xjavadocs.dir}"/>
556        <mkdir dir="${dist.jsr166xjavadocs.dir}"/>
557    
558        <javadoc destdir="${dist.jsr166xjavadocs.dir}"
559                    link="http://java.sun.com/javase/6/docs/api/"
560                  source="${build.sourcelevel}">
561    
562          <packageset dir="${topsrc.dir}" defaultexcludes="yes">
563          <include name="jsr166x"/>
564          </packageset>
565    
566        </javadoc>
567    
568      </target>
569    
570      <target name="jsr166xdist-jar"
571              depends="jsr166xclean, jsr166xjar">
572    
573        <copy file="${jsr166xproduct.jar}" todir="${dist.dir}"/>
574    
575      </target>
576    
577      <!-- jsr166y -->
578    
579    
580      <target name="jsr166ycompile"
581              depends="init, configure-compiler"
582              description="Compiles jsr166y sources">
583    
584        <mkdir dir="${build.jsr166y.dir}"/>
585    
586        <javac srcdir="${jsr166ysrc.dir}"
587              destdir="${build.jsr166y.dir}"
588                debug="${build.debug}"
589           debuglevel="${build.debuglevel}"
590          deprecation="${build.deprecation}"
591               source="${build.sourcelevel}"
592                 fork="true">
593    
594          <include name="**/*.java"/>
595          <compilerarg line="${build.args}"/>
596          <compilerarg value="${bootclasspath.args}"/>
597    
598    <!--       <compilerarg line="-Xlint -Xmaxwarns 1000"/> -->
599    
600        </javac>
601    
602      </target>
603    
604    
605    
606      <target name="jsr166yjar"
607              depends="jsr166ycompile"
608              description="Builds library jar from compiled sources">
609    
610        <mkdir dir="${build.jsr166ylib.dir}"/>
611    
612        <jar destfile="${jsr166yproduct.jar}" index="true">
613          <fileset dir="${build.jsr166y.dir}"/>
614        </jar>
615    
616      </target>
617    
618    
619    
620      <target name="jsr166ydocs"
621              description="Builds javadocs with custom tags to build folder">
622    
623        <delete dir="${build.jsr166yjavadocs.dir}"/>
624        <mkdir dir="${build.jsr166yjavadocs.dir}"/>
625    
626        <javadoc destdir="${build.jsr166yjavadocs.dir}"
627                    link="http://java.sun.com/javase/6/docs/api/"
628                sourcepath="${topsrc.dir}:${jdksrc.dir}"
629    
630        >
631          <packageset dir="${topsrc.dir}" defaultexcludes="no">
632          <include name="jsr166y"/>
633          </packageset>
634    
635    
636        </javadoc>
637    
638      </target>
639    
640    
641      <target name="jsr166ydist"
642              depends="jsr166ydist-clean, jsr166ydist-jar, jsr166ydist-docs"
643              description="Puts all distributable products in single hierarchy"/>
644    
645    
646    
647      <target name="jsr166yclean"
648              description="Removes all build products">
649    
650        <delete dir="${build.jsr166y.dir}"/>
651        <delete dir="${build.jsr166ylib.dir}"/>
652    
653      </target>
654    
655    
656    
657      <target name="jsr166ydist-clean"
658              description="Removes all build and distribution products">
659    
660      </target>
661    
662      <target name="jsr166ydist-docs"
663              description="Builds javadocs without custom tags to dist folder">
664    
665        <delete dir="${dist.jsr166yjavadocs.dir}"/>
666        <mkdir dir="${dist.jsr166yjavadocs.dir}"/>
667    
668        <javadoc destdir="${dist.jsr166yjavadocs.dir}"
669                    link="http://java.sun.com/javase/6/docs/api/"
670                  source="${build.sourcelevel}"
671                sourcepath="${topsrc.dir}:${jdksrc.dir}"
672                >          
673          <fileset dir="${topsrc.dir}" defaultexcludes="yes">
674          <include name="jsr166y/*.java"/>
675                </fileset>
676        </javadoc>
677    
678      </target>
679    
680      <target name="jsr166ydist-jar"
681              depends="jsr166yclean, jsr166yjar">
682    
683        <copy file="${jsr166yproduct.jar}" todir="${dist.dir}"/>
684    
685      </target>
686    
687      <!-- extra166y -->
688    
689    
690      <target name="extra166ycompile"
691              depends="init, configure-compiler, jsr166ycompile"
692              description="Compiles extra166y sources">
693    
694        <mkdir dir="${build.extra166y.dir}"/>
695    
696        <javac srcdir="${extra166ysrc.dir}"
697              destdir="${build.extra166y.dir}"
698                debug="${build.debug}"
699                classpath="${jsr166yproduct.jar}"
700           debuglevel="${build.debuglevel}"
701          deprecation="${build.deprecation}"
702               source="${build.sourcelevel}"
703                 fork="true">
704    
705          <include name="**/*.java"/>
706          <compilerarg line="${build.args}"/>
707          <compilerarg value="${bootclasspath.args}"/>
708    
709    <!--       <compilerarg line="-Xlint -Xmaxwarns 1000"/> -->
710    
711        </javac>
712    
713      </target>
714    
715    
716    
717      <target name="extra166yjar"
718              depends="extra166ycompile"
719              description="Builds library jar from compiled sources">
720    
721        <mkdir dir="${build.extra166ylib.dir}"/>
722    
723        <jar destfile="${extra166yproduct.jar}" index="true">
724          <fileset dir="${build.extra166y.dir}"/>
725        </jar>
726    
727      </target>
728    
729    
730    
731      <target name="extra166ydocs"
732              description="Builds javadocs with custom tags to build folder">
733    
734        <delete dir="${build.extra166yjavadocs.dir}"/>
735        <mkdir dir="${build.extra166yjavadocs.dir}"/>
736    
737        <javadoc destdir="${build.extra166yjavadocs.dir}"
738                    link="http://java.sun.com/javase/6/docs/api/"
739                sourcepath="${topsrc.dir}:${jdksrc.dir}"
740    
741        >
742          <packageset dir="${topsrc.dir}" defaultexcludes="no">
743          <include name="extra166y"/>
744          </packageset>
745    
746    
747        </javadoc>
748    
749      </target>
750    
751    
752      <target name="extra166ydist"
753              depends="extra166ydist-clean, extra166ydist-jar, extra166ydist-docs"
754              description="Puts all distributable products in single hierarchy"/>
755    
756    
757    
758      <target name="extra166yclean"
759              description="Removes all build products">
760    
761        <delete dir="${build.extra166y.dir}"/>
762        <delete dir="${build.extra166ylib.dir}"/>
763    
764      </target>
765    
766    
767    
768      <target name="extra166ydist-clean"
769              description="Removes all build and distribution products">
770    
771      </target>
772    
773      <target name="extra166ydist-docs"
774              description="Builds javadocs without custom tags to dist folder">
775    
776        <delete dir="${dist.extra166yjavadocs.dir}"/>
777        <mkdir dir="${dist.extra166yjavadocs.dir}"/>
778    
779        <javadoc destdir="${dist.extra166yjavadocs.dir}"
780                    link="http://java.sun.com/javase/6/docs/api/"
781                  source="${build.sourcelevel}"
782                sourcepath="${topsrc.dir}:${jdksrc.dir}"
783                >
784          <fileset dir="${topsrc.dir}" defaultexcludes="yes">
785          <include name="extra166y/*.java"/>
786                </fileset>
787        </javadoc>
788    
789      </target>
790    
791      <target name="extra166ydist-jar"
792              depends="extra166yclean, extra166yjar">
793    
794        <copy file="${extra166yproduct.jar}" todir="${dist.dir}"/>
795    
796      </target>
797    
798  </project>  </project>

Legend:
Removed from v.1.12  
changed lines
  Added in v.1.80

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