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

Annotation of /jsr166/build.xml

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.83 - (hide annotations)
Sat Nov 13 13:20:12 2010 UTC (9 years, 1 month ago) by dl
Branch: MAIN
Changes since 1.82: +11 -9 lines
File MIME type: text/xml
update api URL

1 tim 1.18 <project name="jsr166" default="usage">
2 tim 1.1
3     <description>
4 tim 1.29 ------------------------------------------------------------------------------
5     Build file for JSR-166
6 tim 1.18
7 tim 1.29 Usage: ant [target]
8    
9     User-specific settings are read from user.properties.
10 tim 1.32 See user.properties.sample for an explanation of some useful settings.
11 tim 1.29 ------------------------------------------------------------------------------
12 tim 1.18 </description>
13 tim 1.11
14 tim 1.29 <target name="usage" description="Advises user to run with -projecthelp">
15     <echo>Run "ant -projecthelp" for full usage information.</echo>
16     </target>
17 tim 1.3
18 tim 1.11
19 tim 1.27 <!-- User-specific settings -->
20 tim 1.23 <property file="user.properties"/>
21 tim 1.27
22 tim 1.1
23     <!-- Compilation options -->
24 dl 1.80 <property name="build.sourcelevel" value="1.6"/>
25 tim 1.1 <property name="build.debug" value="true"/>
26     <property name="build.debuglevel" value="source,lines,vars"/>
27 tim 1.13 <property name="build.deprecation" value="false"/>
28 tim 1.1
29     <!-- Build locations -->
30 jsr166 1.79 <property name="build.dir" location="build"/>
31     <property name="build.classes.dir" location="${build.dir}/classes"/>
32     <property name="build.testcases.dir" location="${build.dir}/testcases"/>
33     <property name="build.loops.dir" location="${build.dir}/loops"/>
34     <property name="build.lib.dir" location="${build.dir}/lib"/>
35     <property name="build.javadocs.dir" location="${build.dir}/javadocs"/>
36     <property name="build.reports.dir" location="${build.dir}/reports"/>
37     <property name="build.jsr166x.dir" location="${build.dir}/jsr166x"/>
38 dl 1.70 <property name="build.jsr166xlib.dir" location="${build.dir}/jsr166xlib"/>
39     <property name="build.jsr166xjavadocs.dir" location="${build.dir}/jsr166xjavadocs"/>
40 tim 1.1
41 jsr166 1.79 <property name="build.jsr166y.dir" location="${build.dir}/jsr166y"/>
42 dl 1.74 <property name="build.jsr166ylib.dir" location="${build.dir}/jsr166ylib"/>
43     <property name="build.jsr166yjavadocs.dir" location="${build.dir}/jsr166yjavadocs"/>
44    
45 jsr166 1.79 <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 dl 1.76
49 tim 1.1 <!-- Source locations -->
50 tim 1.22 <property name="src.dir" location="${basedir}/src/main"/>
51     <property name="test.src.dir" location="${basedir}/src/test"/>
52 jsr166 1.65 <property name="loops.src.dir" location="${basedir}/src/loops"/>
53 tim 1.60 <property name="tck.src.dir" location="${test.src.dir}/tck"/>
54 tim 1.62 <property name="jtreg.src.dir" location="${test.src.dir}/jtreg"/>
55 tim 1.1 <property name="lib.dir" location="${basedir}/lib"/>
56 tim 1.9 <property name="dist.dir" location="${basedir}/dist"/>
57 dl 1.70 <property name="topsrc.dir" location="${basedir}/src"/>
58     <property name="jsr166xsrc.dir" location="${basedir}/src/jsr166x"/>
59 dl 1.74 <property name="jsr166ysrc.dir" location="${basedir}/src/jsr166y"/>
60 jsr166 1.79 <property name="extra166ysrc.dir" location="${basedir}/src/extra166y"/>
61 dl 1.80 <property name="jdksrc.dir" location="/home/dl/1.6.0/j2se/martin/j2se/src/share/classes"/>
62 tim 1.9 <!-- Distribution locations -->
63 jsr166 1.79 <property name="dist.javadocs.dir" location="${dist.dir}/docs"/>
64 dl 1.70 <property name="dist.jsr166xjavadocs.dir" location="${dist.dir}/jsr166xdocs"/>
65 dl 1.74 <property name="dist.jsr166yjavadocs.dir" location="${dist.dir}/jsr166ydocs"/>
66 jsr166 1.79 <property name="dist.extra166yjavadocs.dir" location="${dist.dir}/extra166ydocs"/>
67 tim 1.1
68     <!-- Jar locations -->
69     <property name="product.jar" location="${build.lib.dir}/jsr166.jar"/>
70 dl 1.70 <property name="jsr166xproduct.jar" location="${build.jsr166xlib.dir}/jsr166x.jar"/>
71 dl 1.74 <property name="jsr166yproduct.jar" location="${build.jsr166ylib.dir}/jsr166y.jar"/>
72 jsr166 1.79 <property name="extra166yproduct.jar" location="${build.extra166ylib.dir}/extra166y.jar"/>
73 tim 1.1 <property name="junit.jar" location="${lib.dir}/junit.jar"/>
74 jsr166 1.65
75 tim 1.59 <!-- Bootclasspath argument -->
76     <property name="bootclasspath.args" value="-Xbootclasspath/p:${product.jar}"/>
77 tim 1.27
78 tim 1.59 <!-- Test classpath -->
79     <path id="test.classpath">
80     <pathelement location="${build.testcases.dir}"/>
81     <pathelement location="${junit.jar}"/>
82     </path>
83 tim 1.28
84 jsr166 1.65 <!-- ALoops classpath -->
85     <path id="loops.classpath">
86     <pathelement location="${build.loops.dir}"/>
87     </path>
88    
89 tim 1.28
90 tim 1.59 <!-- Main targets -->
91 tim 1.28
92 dl 1.80 <target name="dists"
93     depends="dist, jsr166xdist, jsr166ydist, extra166ydist"
94     description="Builds all public jars and docs"/>
95 tim 1.11
96 tim 1.28 <target name="compile"
97 tim 1.60 depends="init, configure-compiler"
98 tim 1.27 description="Compiles main sources to build folder">
99    
100 tim 1.1 <mkdir dir="${build.classes.dir}"/>
101 tim 1.27
102 tim 1.60 <javac srcdir="${src.dir}"
103 tim 1.1 destdir="${build.classes.dir}"
104     debug="${build.debug}"
105     debuglevel="${build.debuglevel}"
106     deprecation="${build.deprecation}"
107     source="${build.sourcelevel}"
108     fork="true">
109    
110 jsr166 1.68 <include name="**/*.java"/>
111 dl 1.83 <compilerarg value="-XDignore.symbol.file=true"/>
112 dl 1.74
113 dl 1.72 <!--
114 jsr166 1.68 <exclude name="java/lang/**"/>
115 dl 1.73 <compilerarg line="${build.args}"/>
116     <compilerarg line="-Xlint -Xmaxwarns 1000"/>
117 dl 1.72 -->
118 tim 1.1
119     </javac>
120 tim 1.27
121 tim 1.1 </target>
122    
123    
124 tim 1.59
125 tim 1.28 <target name="jar"
126 tim 1.59 depends="compile"
127     description="Builds library jar from compiled sources">
128    
129     <mkdir dir="${build.lib.dir}"/>
130    
131     <jar destfile="${product.jar}">
132     <fileset dir="${build.classes.dir}"/>
133     </jar>
134    
135     </target>
136    
137 tim 1.1
138    
139 tim 1.28 <target name="test"
140 tim 1.32 depends="init, configure-tests, report-tests"
141 tim 1.29 description="Runs all tests (requires JUnit 3.8.1 in ${ant.home}/lib)" />
142 tim 1.1
143    
144 tim 1.59
145     <target name="docs"
146     description="Builds javadocs with custom tags to build folder">
147    
148     <delete dir="${build.javadocs.dir}"/>
149     <mkdir dir="${build.javadocs.dir}"/>
150    
151     <javadoc destdir="${build.javadocs.dir}"
152 dl 1.83 link="http://download.oracle.com/javase/6/docs/api/"
153 tim 1.59 overview="${src.dir}/intro.html"
154 dl 1.80 sourcepath="${src.dir}:${jdksrc.dir}"
155 jsr166 1.82 >
156 tim 1.59
157     <packageset dir="${src.dir}"/>
158    
159     </javadoc>
160    
161     </target>
162    
163    
164    
165 tim 1.28 <target name="dist"
166     depends="init, dist-clean, dist-jar, dist-docs"
167 tim 1.16 description="Puts all distributable products in single hierarchy"/>
168 tim 1.1
169 tim 1.58
170 tim 1.42 <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 tim 1.58 <!-- <exclude name="build/**"/> -->
178 tim 1.42 <exclude name="${release.jar}"/>
179     <exclude name="user.properties"/>
180     <exclude name="etc/notes/**"/>
181 tim 1.58 <exclude name="src/emulation/**"/>
182 tim 1.44 <exclude name="**/SyntaxTest.java"/>
183 tim 1.58 <exclude name="**/SuperfluousAbstract.java"/>
184 tim 1.42 </jar>
185    
186     </target>
187 tim 1.1
188 tim 1.59
189    
190 tim 1.11 <target name="clean"
191     description="Removes all build products">
192 tim 1.27
193 tim 1.11 <delete dir="${build.dir}"/>
194     <delete dir="${build.classes.dir}"/>
195     <delete dir="${build.lib.dir}"/>
196 tim 1.27
197 tim 1.1 </target>
198    
199    
200 tim 1.59
201 tim 1.11 <target name="dist-clean"
202     description="Removes all build and distribution products">
203 tim 1.27
204 tim 1.11 <delete dir="${dist.dir}"/>
205 tim 1.27
206 tim 1.9 </target>
207 tim 1.10
208    
209 tim 1.59
210 tim 1.28 <target name="dist-docs"
211     description="Builds javadocs without custom tags to dist folder">
212    
213     <delete dir="${dist.javadocs.dir}"/>
214     <mkdir dir="${dist.javadocs.dir}"/>
215    
216     <javadoc destdir="${dist.javadocs.dir}"
217 dl 1.83 link="http://download.oracle.com/javase/6/docs/api/"
218 tim 1.28 overview="${src.dir}/intro.html"
219 tim 1.14
220 dl 1.80 sourcepath="${src.dir}:${jdksrc.dir}"
221 dl 1.72 >
222 dl 1.74 <!--
223 dl 1.72 <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 dl 1.74 -->
229 dl 1.72 <fileset dir="${topsrc.dir}" defaultexcludes="yes">
230 dl 1.74 <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 dl 1.72 <include name="main/java/util/*.java"/>
234 dl 1.74 <!--
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 dl 1.73 <include name="main/java/util/*.html"/>
239 dl 1.74 -->
240 dl 1.72 <!-- <include name="jsr166x/*.java"/> -->
241     </fileset>
242 tim 1.28 </javadoc>
243 tim 1.14
244     </target>
245    
246    
247 tim 1.28
248 tim 1.11 <!-- Internal targets -->
249 tim 1.9
250 tim 1.16
251 tim 1.32 <target name="init">
252 tim 1.27
253 tim 1.11 <!-- Version is kept in a separate file -->
254     <loadfile property="version" srcFile="version.properties"/>
255     <echo>Building JSR-166 version ${version}</echo>
256 tim 1.54 <echo>java.home is ${java.home}</echo>
257 tim 1.27
258     </target>
259 jsr166 1.65
260    
261 tim 1.28 <target name="dist-jar"
262     depends="clean, jar">
263 tim 1.27
264 tim 1.11 <copy file="${product.jar}" todir="${dist.dir}"/>
265 tim 1.27
266 tim 1.11 </target>
267    
268    
269 tim 1.28 <target name="compile-tests"
270     depends="jar">
271 tim 1.27
272 tim 1.1 <mkdir dir="${build.testcases.dir}"/>
273 tim 1.37
274 tim 1.60 <javac srcdir="${tck.src.dir}"
275     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 jsr166 1.65
285 tim 1.60 <classpath refid="test.classpath"/>
286    
287     </javac>
288    
289     <javac srcdir="${test.src.dir}"
290 tim 1.1 destdir="${build.testcases.dir}"
291     debug="${build.debug}"
292     debuglevel="${build.debuglevel}"
293     deprecation="${build.deprecation}"
294     source="${build.sourcelevel}"
295     fork="true">
296    
297 tim 1.60 <include name="jsr166/test/**"/>
298 jsr166 1.65
299 tim 1.59 <compilerarg value="${bootclasspath.args}"/>
300 tim 1.57 <compilerarg line="${build.args}"/>
301 jsr166 1.65
302 tim 1.57 <classpath refid="test.classpath"/>
303 tim 1.1
304     </javac>
305 tim 1.27
306 tim 1.62 <!--
307     <javac srcdir="${jtreg.src.dir}"
308     destdir="${build.testcases.dir}"
309     debug="${build.debug}"
310     debuglevel="${build.debuglevel}"
311     deprecation="${build.deprecation}"
312     source="${build.sourcelevel}"
313     fork="true">
314    
315     <compilerarg value="${bootclasspath.args}"/>
316     <compilerarg line="${build.args}"/>
317 jsr166 1.65
318 tim 1.62 <classpath refid="test.classpath"/>
319    
320     </javac>
321     -->
322    
323 tim 1.1 </target>
324 tim 1.11
325 tim 1.1
326 tim 1.28 <target name="run-tests"
327     depends="compile-tests">
328 tim 1.27
329     <!-- May be overridden by user.properties -->
330     <property name="testcase" value="*"/>
331    
332 tim 1.1 <mkdir dir="${build.reports.dir}"/>
333 tim 1.27
334 tim 1.1 <junit printsummary="true"
335     showoutput="true"
336     errorProperty="junit.failed"
337     failureProperty="junit.failed"
338 tim 1.12 dir="${build.reports.dir}"
339     fork="true">
340    
341 tim 1.59 <jvmarg value="${bootclasspath.args}"/>
342 tim 1.64 <jvmarg value="-server"/>
343     <jvmarg value="-showversion"/>
344 jsr166 1.65
345 tim 1.59 <classpath refid="test.classpath"/>
346 tim 1.1
347     <formatter type="xml"/>
348    
349 tim 1.62 <batchtest todir="${build.reports.dir}" unless="no.test.tck">
350 tim 1.60 <fileset dir="${tck.src.dir}">
351     <include name="**/${testcase}Test.java"/>
352     </fileset>
353 tim 1.62 </batchtest>
354 jsr166 1.65
355 tim 1.62 <batchtest todir="${build.reports.dir}" if="do.test.old">
356 tim 1.60 <fileset dir="${test.src.dir}">
357     <include name="jsr166/test/**/${testcase}Test.java"/>
358 tim 1.1 </fileset>
359     </batchtest>
360 tim 1.62
361 jsr166 1.65 <!--
362 tim 1.62 <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 tim 1.1
369     </junit>
370 tim 1.27
371 tim 1.1 </target>
372    
373    
374 tim 1.28 <target name="report-tests"
375     depends="run-tests">
376    
377 tim 1.54 <!-- Sets junit.report.format to frames if redirection is present,
378 tim 1.1 otherwise sets it to noframes. -->
379     <available property="junit.report.format"
380     value="frames"
381     classname="org.apache.xalan.lib.Redirect"
382     />
383     <property name="junit.report.format" value="noframes"/>
384    
385     <junitreport todir="${build.reports.dir}">
386     <fileset dir="${build.reports.dir}">
387     <include name="TEST-*.xml"/>
388     </fileset>
389 jsr166 1.75 <report format="${junit.report.format}" todir="${build.reports.dir}"
390 tim 1.1 />
391     </junitreport>
392    
393     <fail message="Test Cases Failed" if="junit.failed"/>
394 tim 1.28
395 tim 1.18 </target>
396    
397    
398 tim 1.32 <target name="configure-compiler">
399 tim 1.54
400     <property name="unchecked.option" value="-Xlint:unchecked"/>
401    
402     <condition property="warnunchecked.arg" value="${unchecked.option}">
403 tim 1.57 <istrue value="${build.warnunchecked}"/>
404 tim 1.32 </condition>
405    
406 tim 1.37 <property name="warnunchecked.arg" value=""/>
407 tim 1.34
408 tim 1.32
409     <!-- Common options in javac invocations -->
410 tim 1.57 <property name="build.args" value="${warnunchecked.arg}"/>
411 tim 1.33
412     </target>
413    
414    
415 tim 1.37 <target name="configure-tests"
416     depends="configure-compiler">
417 tim 1.28
418     <!-- junit.framework.Protectable is in JUnit 3.8.1 but not in 3.7 -->
419 tim 1.18 <available property="junit.available"
420 tim 1.28 classname="junit.framework.Protectable"/>
421    
422 tim 1.54 <!-- Xalan -->
423     <available property="xalan.available"
424     classname="org.apache.xalan.Version"/>
425    
426 jsr166 1.65
427 tim 1.59 <!-- Ant 1.6beta and later don't need or want this check -->
428 jsr166 1.65 <!--
429 tim 1.59 <fail message="Need JUnit 3.8.1 in ${ant.home}${file.separator}lib to run tests"
430     unless="junit.available"/>
431    
432 tim 1.54 <fail message="Need Xalan 2.5.1 jar in ${ant.home}${file.separator}lib to run tests"
433     unless="xalan.available"/>
434 tim 1.59 -->
435 tim 1.30
436 tim 1.28 </target>
437    
438    
439 jsr166 1.65 <!-- 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 dl 1.70 <!-- 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>
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 dl 1.83 link="http://download.oracle.com/javase/6/docs/api/"
515 dl 1.80 sourcepath="${topsrc.dir}:${jdksrc.dir}"
516 dl 1.70 >
517     <packageset dir="${topsrc.dir}" defaultexcludes="yes">
518     <include name="jsr166x"/>
519     </packageset>
520    
521    
522     </javadoc>
523    
524     </target>
525    
526    
527     <target name="jsr166xdist"
528     depends="jsr166xdist-clean, jsr166xdist-jar, jsr166xdist-docs"
529     description="Puts all distributable products in single hierarchy"/>
530    
531    
532    
533     <target name="jsr166xclean"
534     description="Removes all build products">
535    
536     <delete dir="${build.jsr166x.dir}"/>
537     <delete dir="${build.jsr166xlib.dir}"/>
538    
539     </target>
540    
541    
542    
543     <target name="jsr166xdist-clean"
544     description="Removes all build and distribution products">
545    
546     </target>
547    
548    
549    
550     <target name="jsr166xdist-docs"
551     description="Builds javadocs without custom tags to dist folder">
552    
553     <delete dir="${dist.jsr166xjavadocs.dir}"/>
554     <mkdir dir="${dist.jsr166xjavadocs.dir}"/>
555    
556     <javadoc destdir="${dist.jsr166xjavadocs.dir}"
557 dl 1.83 link="http://download.oracle.com/javase/6/docs/api/"
558 dl 1.70 source="${build.sourcelevel}">
559    
560     <packageset dir="${topsrc.dir}" defaultexcludes="yes">
561     <include name="jsr166x"/>
562     </packageset>
563    
564     </javadoc>
565    
566     </target>
567    
568     <target name="jsr166xdist-jar"
569     depends="jsr166xclean, jsr166xjar">
570    
571     <copy file="${jsr166xproduct.jar}" todir="${dist.dir}"/>
572    
573     </target>
574    
575 dl 1.74 <!-- jsr166y -->
576    
577    
578     <target name="jsr166ycompile"
579     depends="init, configure-compiler"
580     description="Compiles jsr166y sources">
581    
582     <mkdir dir="${build.jsr166y.dir}"/>
583    
584     <javac srcdir="${jsr166ysrc.dir}"
585     destdir="${build.jsr166y.dir}"
586     debug="${build.debug}"
587     debuglevel="${build.debuglevel}"
588     deprecation="${build.deprecation}"
589     source="${build.sourcelevel}"
590     fork="true">
591    
592     <include name="**/*.java"/>
593     <compilerarg line="${build.args}"/>
594 dl 1.83 <compilerarg value="-XDignore.symbol.file=true"/>
595 dl 1.74 <compilerarg value="${bootclasspath.args}"/>
596    
597     <!-- <compilerarg line="-Xlint -Xmaxwarns 1000"/> -->
598    
599     </javac>
600    
601     </target>
602    
603    
604    
605     <target name="jsr166yjar"
606     depends="jsr166ycompile"
607     description="Builds library jar from compiled sources">
608    
609     <mkdir dir="${build.jsr166ylib.dir}"/>
610    
611 dl 1.76 <jar destfile="${jsr166yproduct.jar}" index="true">
612 dl 1.74 <fileset dir="${build.jsr166y.dir}"/>
613     </jar>
614    
615     </target>
616    
617    
618    
619     <target name="jsr166ydocs"
620     description="Builds javadocs with custom tags to build folder">
621    
622     <delete dir="${build.jsr166yjavadocs.dir}"/>
623     <mkdir dir="${build.jsr166yjavadocs.dir}"/>
624    
625     <javadoc destdir="${build.jsr166yjavadocs.dir}"
626 dl 1.83 link="http://download.oracle.com/javase/6/docs/api/"
627 dl 1.80 sourcepath="${topsrc.dir}:${jdksrc.dir}"
628 dl 1.74 >
629     <packageset dir="${topsrc.dir}" defaultexcludes="no">
630     <include name="jsr166y"/>
631     </packageset>
632    
633    
634     </javadoc>
635    
636     </target>
637    
638    
639     <target name="jsr166ydist"
640     depends="jsr166ydist-clean, jsr166ydist-jar, jsr166ydist-docs"
641     description="Puts all distributable products in single hierarchy"/>
642    
643    
644    
645     <target name="jsr166yclean"
646     description="Removes all build products">
647    
648     <delete dir="${build.jsr166y.dir}"/>
649     <delete dir="${build.jsr166ylib.dir}"/>
650    
651     </target>
652    
653    
654    
655     <target name="jsr166ydist-clean"
656     description="Removes all build and distribution products">
657    
658     </target>
659    
660     <target name="jsr166ydist-docs"
661     description="Builds javadocs without custom tags to dist folder">
662    
663     <delete dir="${dist.jsr166yjavadocs.dir}"/>
664     <mkdir dir="${dist.jsr166yjavadocs.dir}"/>
665    
666     <javadoc destdir="${dist.jsr166yjavadocs.dir}"
667 dl 1.83 link="http://download.oracle.com/javase/6/docs/api/"
668 dl 1.78 source="${build.sourcelevel}"
669 dl 1.80 sourcepath="${topsrc.dir}:${jdksrc.dir}"
670 jsr166 1.82 >
671 dl 1.74 <fileset dir="${topsrc.dir}" defaultexcludes="yes">
672     <include name="jsr166y/*.java"/>
673     </fileset>
674     </javadoc>
675    
676     </target>
677    
678     <target name="jsr166ydist-jar"
679     depends="jsr166yclean, jsr166yjar">
680    
681     <copy file="${jsr166yproduct.jar}" todir="${dist.dir}"/>
682    
683     </target>
684    
685 dl 1.76 <!-- extra166y -->
686    
687    
688     <target name="extra166ycompile"
689 dl 1.77 depends="init, configure-compiler, jsr166ycompile"
690 dl 1.76 description="Compiles extra166y sources">
691    
692     <mkdir dir="${build.extra166y.dir}"/>
693    
694     <javac srcdir="${extra166ysrc.dir}"
695     destdir="${build.extra166y.dir}"
696     debug="${build.debug}"
697 dl 1.77 classpath="${jsr166yproduct.jar}"
698 dl 1.76 debuglevel="${build.debuglevel}"
699     deprecation="${build.deprecation}"
700     source="${build.sourcelevel}"
701     fork="true">
702    
703     <include name="**/*.java"/>
704     <compilerarg line="${build.args}"/>
705 dl 1.83 <compilerarg value="-XDignore.symbol.file=true"/>
706 dl 1.76 <compilerarg value="${bootclasspath.args}"/>
707    
708     <!-- <compilerarg line="-Xlint -Xmaxwarns 1000"/> -->
709    
710     </javac>
711    
712     </target>
713    
714    
715    
716     <target name="extra166yjar"
717     depends="extra166ycompile"
718     description="Builds library jar from compiled sources">
719    
720     <mkdir dir="${build.extra166ylib.dir}"/>
721    
722     <jar destfile="${extra166yproduct.jar}" index="true">
723     <fileset dir="${build.extra166y.dir}"/>
724     </jar>
725    
726     </target>
727    
728    
729    
730     <target name="extra166ydocs"
731     description="Builds javadocs with custom tags to build folder">
732    
733     <delete dir="${build.extra166yjavadocs.dir}"/>
734     <mkdir dir="${build.extra166yjavadocs.dir}"/>
735    
736     <javadoc destdir="${build.extra166yjavadocs.dir}"
737 dl 1.83 link="http://download.oracle.com/javase/6/docs/api/"
738 dl 1.80 sourcepath="${topsrc.dir}:${jdksrc.dir}"
739 dl 1.76 >
740     <packageset dir="${topsrc.dir}" defaultexcludes="no">
741     <include name="extra166y"/>
742     </packageset>
743    
744    
745     </javadoc>
746    
747     </target>
748    
749    
750     <target name="extra166ydist"
751     depends="extra166ydist-clean, extra166ydist-jar, extra166ydist-docs"
752     description="Puts all distributable products in single hierarchy"/>
753    
754    
755    
756     <target name="extra166yclean"
757     description="Removes all build products">
758    
759     <delete dir="${build.extra166y.dir}"/>
760     <delete dir="${build.extra166ylib.dir}"/>
761    
762     </target>
763    
764    
765    
766     <target name="extra166ydist-clean"
767     description="Removes all build and distribution products">
768    
769     </target>
770    
771     <target name="extra166ydist-docs"
772     description="Builds javadocs without custom tags to dist folder">
773    
774     <delete dir="${dist.extra166yjavadocs.dir}"/>
775     <mkdir dir="${dist.extra166yjavadocs.dir}"/>
776    
777     <javadoc destdir="${dist.extra166yjavadocs.dir}"
778 dl 1.83 link="http://download.oracle.com/javase/6/docs/api/"
779 dl 1.78 source="${build.sourcelevel}"
780 dl 1.80 sourcepath="${topsrc.dir}:${jdksrc.dir}"
781 dl 1.78 >
782 dl 1.76 <fileset dir="${topsrc.dir}" defaultexcludes="yes">
783     <include name="extra166y/*.java"/>
784     </fileset>
785     </javadoc>
786    
787     </target>
788    
789     <target name="extra166ydist-jar"
790     depends="extra166yclean, extra166yjar">
791    
792     <copy file="${extra166yproduct.jar}" todir="${dist.dir}"/>
793    
794     </target>
795    
796 tim 1.1 </project>

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