ViewVC Help
View File | Revision Log | Show Annotations | Download File | Root Listing
root/jsr166/jsr166/build.xml
Revision: 1.77
Committed: Thu Jul 23 13:06:55 2009 UTC (14 years, 9 months ago) by dl
Content type: text/xml
Branch: MAIN
Changes since 1.76: +2 -1 lines
Log Message:
Fix extra166y targets

File Contents

# User Rev Content
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 tim 1.11 <property name="build.sourcelevel" value="1.5"/>
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     <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 jsr166 1.65 <property name="build.loops.dir" location="${build.dir}/loops"/>
34 tim 1.1 <property name="build.lib.dir" location="${build.dir}/lib"/>
35 tim 1.9 <property name="build.javadocs.dir" location="${build.dir}/javadocs"/>
36 tim 1.1 <property name="build.reports.dir" location="${build.dir}/reports"/>
37 dl 1.70 <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 tim 1.1
41 dl 1.74 <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 dl 1.76 <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 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 dl 1.76 <property name="extra166ysrc.dir" location="${basedir}/src/extra166y"/>
61 tim 1.9
62     <!-- Distribution locations -->
63     <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 dl 1.76 <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 dl 1.76 <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 tim 1.11
93 tim 1.28 <target name="compile"
94 tim 1.60 depends="init, configure-compiler"
95 tim 1.27 description="Compiles main sources to build folder">
96    
97 tim 1.1 <mkdir dir="${build.classes.dir}"/>
98 tim 1.27
99 tim 1.60 <javac srcdir="${src.dir}"
100 tim 1.1 destdir="${build.classes.dir}"
101     debug="${build.debug}"
102     debuglevel="${build.debuglevel}"
103     deprecation="${build.deprecation}"
104     source="${build.sourcelevel}"
105     fork="true">
106    
107 jsr166 1.68 <include name="**/*.java"/>
108 dl 1.74 <compilerarg value="-XDignore.symbol.file"/>
109    
110 dl 1.72 <!--
111 jsr166 1.68 <exclude name="java/lang/**"/>
112 dl 1.73 <compilerarg line="${build.args}"/>
113     <compilerarg line="-Xlint -Xmaxwarns 1000"/>
114 dl 1.72 -->
115 tim 1.1
116     </javac>
117 tim 1.27
118 tim 1.1 </target>
119    
120    
121 tim 1.59
122 tim 1.28 <target name="jar"
123 tim 1.59 depends="compile"
124     description="Builds library jar from compiled sources">
125    
126     <mkdir dir="${build.lib.dir}"/>
127    
128     <jar destfile="${product.jar}">
129     <fileset dir="${build.classes.dir}"/>
130     </jar>
131    
132     </target>
133    
134 tim 1.1
135    
136 tim 1.28 <target name="test"
137 tim 1.32 depends="init, configure-tests, report-tests"
138 tim 1.29 description="Runs all tests (requires JUnit 3.8.1 in ${ant.home}/lib)" />
139 tim 1.1
140    
141 tim 1.59
142     <target name="docs"
143     description="Builds javadocs with custom tags to build folder">
144    
145     <delete dir="${build.javadocs.dir}"/>
146     <mkdir dir="${build.javadocs.dir}"/>
147    
148     <javadoc destdir="${build.javadocs.dir}"
149 dl 1.74 link="http://java.sun.com/javase/6/docs/api/"
150 tim 1.59 overview="${src.dir}/intro.html"
151 dl 1.73 sourcepath="${src.dir}:/home/dl/1.6.0/j2se/martin/j2se/src/share/classes"
152 dl 1.72 >
153 tim 1.59
154     <packageset dir="${src.dir}"/>
155    
156     </javadoc>
157    
158     </target>
159    
160    
161    
162 tim 1.28 <target name="dist"
163     depends="init, dist-clean, dist-jar, dist-docs"
164 tim 1.16 description="Puts all distributable products in single hierarchy"/>
165 tim 1.1
166 tim 1.58
167 tim 1.59
168 tim 1.42 <target name="release"
169     depends="dist"
170     description="Puts entire CVS tree, plus distribution productions, in a jar">
171    
172     <property name="release.jar" value="dist/jsr166-${version}-dist.jar"/>
173    
174     <jar basedir="${basedir}" destfile="${release.jar}">
175 tim 1.58 <!-- <exclude name="build/**"/> -->
176 tim 1.42 <exclude name="${release.jar}"/>
177     <exclude name="user.properties"/>
178     <exclude name="etc/notes/**"/>
179 tim 1.58 <exclude name="src/emulation/**"/>
180 tim 1.44 <exclude name="**/SyntaxTest.java"/>
181 tim 1.58 <exclude name="**/SuperfluousAbstract.java"/>
182 tim 1.42 </jar>
183    
184     </target>
185 tim 1.1
186 tim 1.59
187    
188 tim 1.11 <target name="clean"
189     description="Removes all build products">
190 tim 1.27
191 tim 1.11 <delete dir="${build.dir}"/>
192     <delete dir="${build.classes.dir}"/>
193     <delete dir="${build.lib.dir}"/>
194 tim 1.27
195 tim 1.1 </target>
196    
197    
198 tim 1.59
199 tim 1.11 <target name="dist-clean"
200     description="Removes all build and distribution products">
201 tim 1.27
202 tim 1.11 <delete dir="${dist.dir}"/>
203 tim 1.27
204 tim 1.9 </target>
205 tim 1.10
206    
207 tim 1.59
208 tim 1.28 <target name="dist-docs"
209     description="Builds javadocs without custom tags to dist folder">
210    
211     <delete dir="${dist.javadocs.dir}"/>
212     <mkdir dir="${dist.javadocs.dir}"/>
213    
214     <javadoc destdir="${dist.javadocs.dir}"
215 dl 1.74 link="http://java.sun.com/javase/6/docs/api/"
216 tim 1.28 overview="${src.dir}/intro.html"
217 tim 1.14
218 dl 1.73 sourcepath="${src.dir}:/home/dl/1.6.0/j2se/martin/j2se/src/share/classes"
219 dl 1.72 >
220 dl 1.74 <!--
221 dl 1.72 <packageset dir="${src.dir}" defaultexcludes="yes">
222     <include name="java/util/concurrent"/>
223     <include name="java/util/concurrent/atomic"/>
224     <include name="java/util/concurrent/locks"/>
225     </packageset>
226 dl 1.74 -->
227 dl 1.72 <fileset dir="${topsrc.dir}" defaultexcludes="yes">
228 dl 1.74 <include name="main/java/util/concurrent/*.java"/>
229     <include name="main/java/util/concurrent/atomic/*.java"/>
230     <include name="main/java/util/concurrent/locks/*.java"/>
231 dl 1.72 <include name="main/java/util/*.java"/>
232 dl 1.74 <!--
233     <include name="main/java/util/concurrent/*.html"/>
234     <include name="main/java/util/concurrent/atomic/*.html"/>
235     <include name="main/java/util/concurrent/locks/*.html"/>
236 dl 1.73 <include name="main/java/util/*.html"/>
237 dl 1.74 -->
238 dl 1.72 <!-- <include name="jsr166x/*.java"/> -->
239     </fileset>
240 tim 1.28 </javadoc>
241 tim 1.14
242     </target>
243    
244    
245 tim 1.28
246 tim 1.11 <!-- Internal targets -->
247 tim 1.9
248 tim 1.16
249 tim 1.32 <target name="init">
250 tim 1.27
251 tim 1.11 <!-- Version is kept in a separate file -->
252     <loadfile property="version" srcFile="version.properties"/>
253     <echo>Building JSR-166 version ${version}</echo>
254 tim 1.54 <echo>java.home is ${java.home}</echo>
255 tim 1.27
256     </target>
257 jsr166 1.65
258    
259 tim 1.28 <target name="dist-jar"
260     depends="clean, jar">
261 tim 1.27
262 tim 1.11 <copy file="${product.jar}" todir="${dist.dir}"/>
263 tim 1.27
264 tim 1.11 </target>
265    
266    
267 tim 1.28 <target name="compile-tests"
268     depends="jar">
269 tim 1.27
270 tim 1.1 <mkdir dir="${build.testcases.dir}"/>
271 tim 1.37
272 tim 1.60 <javac srcdir="${tck.src.dir}"
273     destdir="${build.testcases.dir}"
274     debug="${build.debug}"
275     debuglevel="${build.debuglevel}"
276     deprecation="${build.deprecation}"
277     source="${build.sourcelevel}"
278     fork="true">
279    
280     <compilerarg value="${bootclasspath.args}"/>
281     <compilerarg line="${build.args}"/>
282 jsr166 1.65
283 tim 1.60 <classpath refid="test.classpath"/>
284    
285     </javac>
286    
287     <javac srcdir="${test.src.dir}"
288 tim 1.1 destdir="${build.testcases.dir}"
289     debug="${build.debug}"
290     debuglevel="${build.debuglevel}"
291     deprecation="${build.deprecation}"
292     source="${build.sourcelevel}"
293     fork="true">
294    
295 tim 1.60 <include name="jsr166/test/**"/>
296 jsr166 1.65
297 tim 1.59 <compilerarg value="${bootclasspath.args}"/>
298 tim 1.57 <compilerarg line="${build.args}"/>
299 jsr166 1.65
300 tim 1.57 <classpath refid="test.classpath"/>
301 tim 1.1
302     </javac>
303 tim 1.27
304 tim 1.62 <!--
305     <javac srcdir="${jtreg.src.dir}"
306     destdir="${build.testcases.dir}"
307     debug="${build.debug}"
308     debuglevel="${build.debuglevel}"
309     deprecation="${build.deprecation}"
310     source="${build.sourcelevel}"
311     fork="true">
312    
313     <compilerarg value="${bootclasspath.args}"/>
314     <compilerarg line="${build.args}"/>
315 jsr166 1.65
316 tim 1.62 <classpath refid="test.classpath"/>
317    
318     </javac>
319     -->
320    
321 tim 1.1 </target>
322 tim 1.11
323 tim 1.1
324 tim 1.28 <target name="run-tests"
325     depends="compile-tests">
326 tim 1.27
327     <!-- May be overridden by user.properties -->
328     <property name="testcase" value="*"/>
329    
330 tim 1.1 <mkdir dir="${build.reports.dir}"/>
331 tim 1.27
332 tim 1.1 <junit printsummary="true"
333     showoutput="true"
334     errorProperty="junit.failed"
335     failureProperty="junit.failed"
336 tim 1.12 dir="${build.reports.dir}"
337     fork="true">
338    
339 tim 1.59 <jvmarg value="${bootclasspath.args}"/>
340 tim 1.64 <jvmarg value="-server"/>
341     <jvmarg value="-showversion"/>
342 jsr166 1.65
343 tim 1.59 <classpath refid="test.classpath"/>
344 tim 1.1
345     <formatter type="xml"/>
346    
347 tim 1.62 <batchtest todir="${build.reports.dir}" unless="no.test.tck">
348 tim 1.60 <fileset dir="${tck.src.dir}">
349     <include name="**/${testcase}Test.java"/>
350     </fileset>
351 tim 1.62 </batchtest>
352 jsr166 1.65
353 tim 1.62 <batchtest todir="${build.reports.dir}" if="do.test.old">
354 tim 1.60 <fileset dir="${test.src.dir}">
355     <include name="jsr166/test/**/${testcase}Test.java"/>
356 tim 1.1 </fileset>
357     </batchtest>
358 tim 1.62
359 jsr166 1.65 <!--
360 tim 1.62 <batchtest todir="${build.reports.dir}" if="do.test.jtreg">
361     <fileset dir="${jtreg.src.dir}">
362     <include name="**/${testcase}Test.java"/>
363     </fileset>
364     </batchtest>
365     -->
366 tim 1.1
367     </junit>
368 tim 1.27
369 tim 1.1 </target>
370    
371    
372 tim 1.28 <target name="report-tests"
373     depends="run-tests">
374    
375 tim 1.54 <!-- Sets junit.report.format to frames if redirection is present,
376 tim 1.1 otherwise sets it to noframes. -->
377     <available property="junit.report.format"
378     value="frames"
379     classname="org.apache.xalan.lib.Redirect"
380     />
381     <property name="junit.report.format" value="noframes"/>
382    
383     <junitreport todir="${build.reports.dir}">
384     <fileset dir="${build.reports.dir}">
385     <include name="TEST-*.xml"/>
386     </fileset>
387 jsr166 1.75 <report format="${junit.report.format}" todir="${build.reports.dir}"
388 tim 1.1 />
389     </junitreport>
390    
391     <fail message="Test Cases Failed" if="junit.failed"/>
392 tim 1.28
393 tim 1.18 </target>
394    
395    
396 tim 1.32 <target name="configure-compiler">
397 tim 1.54
398     <property name="unchecked.option" value="-Xlint:unchecked"/>
399    
400     <condition property="warnunchecked.arg" value="${unchecked.option}">
401 tim 1.57 <istrue value="${build.warnunchecked}"/>
402 tim 1.32 </condition>
403    
404 tim 1.37 <property name="warnunchecked.arg" value=""/>
405 tim 1.34
406 tim 1.32
407     <!-- Common options in javac invocations -->
408 tim 1.57 <property name="build.args" value="${warnunchecked.arg}"/>
409 tim 1.33
410     </target>
411    
412    
413 tim 1.37 <target name="configure-tests"
414     depends="configure-compiler">
415 tim 1.28
416     <!-- junit.framework.Protectable is in JUnit 3.8.1 but not in 3.7 -->
417 tim 1.18 <available property="junit.available"
418 tim 1.28 classname="junit.framework.Protectable"/>
419    
420 tim 1.54 <!-- Xalan -->
421     <available property="xalan.available"
422     classname="org.apache.xalan.Version"/>
423    
424 jsr166 1.65
425 tim 1.59 <!-- Ant 1.6beta and later don't need or want this check -->
426 jsr166 1.65 <!--
427 tim 1.59 <fail message="Need JUnit 3.8.1 in ${ant.home}${file.separator}lib to run tests"
428     unless="junit.available"/>
429    
430 tim 1.54 <fail message="Need Xalan 2.5.1 jar in ${ant.home}${file.separator}lib to run tests"
431     unless="xalan.available"/>
432 tim 1.59 -->
433 tim 1.30
434 tim 1.28 </target>
435    
436    
437 jsr166 1.65 <!-- Various demos and test programs -->
438    
439    
440     <target name="loops" depends="init, configure-compiler"
441     description="Benchmark from Doug Lea's AQS paper">
442    
443     <mkdir dir="${build.loops.dir}"/>
444    
445     <javac srcdir="${loops.src.dir}"
446     destdir="${build.loops.dir}"
447     debug="${build.debug}"
448     debuglevel="${build.debuglevel}"
449     deprecation="${build.deprecation}"
450     source="${build.sourcelevel}"
451     fork="true">
452    
453     <compilerarg line="${build.args}"/>
454     <classpath refid="loops.classpath"/>
455    
456     </javac>
457    
458     <java classname="ALoops" fork="true">
459     <classpath refid="loops.classpath"/>
460     </java>
461    
462     </target>
463    
464    
465 dl 1.70 <!-- jsr166x -->
466    
467    
468     <target name="jsr166xcompile"
469     depends="init, configure-compiler"
470     description="Compiles jsr166x sources">
471    
472     <mkdir dir="${build.jsr166x.dir}"/>
473    
474     <javac srcdir="${jsr166xsrc.dir}"
475     destdir="${build.jsr166x.dir}"
476     debug="${build.debug}"
477     debuglevel="${build.debuglevel}"
478     deprecation="${build.deprecation}"
479     source="${build.sourcelevel}"
480     fork="true">
481    
482     <include name="**/*.java"/>
483     <compilerarg line="${build.args}"/>
484    
485     </javac>
486    
487     </target>
488    
489    
490    
491     <target name="jsr166xjar"
492     depends="jsr166xcompile"
493     description="Builds library jar from compiled sources">
494    
495     <mkdir dir="${build.jsr166xlib.dir}"/>
496    
497     <jar destfile="${jsr166xproduct.jar}">
498     <fileset dir="${build.jsr166x.dir}"/>
499     </jar>
500    
501     </target>
502    
503    
504    
505     <target name="jsr166xdocs"
506     description="Builds javadocs with custom tags to build folder">
507    
508     <delete dir="${build.jsr166xjavadocs.dir}"/>
509     <mkdir dir="${build.jsr166xjavadocs.dir}"/>
510    
511     <javadoc destdir="${build.jsr166xjavadocs.dir}"
512 dl 1.74 link="http://java.sun.com/javase/6/docs/api/"
513    
514 dl 1.72 sourcepath="${jsr166xsrc.dir}:/home/dl/1.5.0/j2se/martin/j2se/src/share/classes"
515    
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.74 link="http://java.sun.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     <compilerarg value="${bootclasspath.args}"/>
595    
596     <!-- <compilerarg line="-Xlint -Xmaxwarns 1000"/> -->
597    
598     </javac>
599    
600     </target>
601    
602    
603    
604     <target name="jsr166yjar"
605     depends="jsr166ycompile"
606     description="Builds library jar from compiled sources">
607    
608     <mkdir dir="${build.jsr166ylib.dir}"/>
609    
610 dl 1.76 <jar destfile="${jsr166yproduct.jar}" index="true">
611 dl 1.74 <fileset dir="${build.jsr166y.dir}"/>
612     </jar>
613    
614     </target>
615    
616    
617    
618     <target name="jsr166ydocs"
619     description="Builds javadocs with custom tags to build folder">
620    
621     <delete dir="${build.jsr166yjavadocs.dir}"/>
622     <mkdir dir="${build.jsr166yjavadocs.dir}"/>
623    
624     <javadoc destdir="${build.jsr166yjavadocs.dir}"
625     link="http://java.sun.com/javase/6/docs/api/"
626     sourcepath="${jsr166ysrc.dir}:/home/dl/1.5.0/j2se/martin/j2se/src/share/classes"
627    
628     >
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     link="http://java.sun.com/javase/6/docs/api/"
668     source="${build.sourcelevel}">
669     <fileset dir="${topsrc.dir}" defaultexcludes="yes">
670     <include name="jsr166y/*.java"/>
671     </fileset>
672     </javadoc>
673    
674     </target>
675    
676     <target name="jsr166ydist-jar"
677     depends="jsr166yclean, jsr166yjar">
678    
679     <copy file="${jsr166yproduct.jar}" todir="${dist.dir}"/>
680    
681     </target>
682    
683 dl 1.76 <!-- extra166y -->
684    
685    
686     <target name="extra166ycompile"
687 dl 1.77 depends="init, configure-compiler, jsr166ycompile"
688 dl 1.76 description="Compiles extra166y sources">
689    
690     <mkdir dir="${build.extra166y.dir}"/>
691    
692     <javac srcdir="${extra166ysrc.dir}"
693     destdir="${build.extra166y.dir}"
694     debug="${build.debug}"
695 dl 1.77 classpath="${jsr166yproduct.jar}"
696 dl 1.76 debuglevel="${build.debuglevel}"
697     deprecation="${build.deprecation}"
698     source="${build.sourcelevel}"
699     fork="true">
700    
701     <include name="**/*.java"/>
702     <compilerarg line="${build.args}"/>
703     <compilerarg value="${bootclasspath.args}"/>
704    
705     <!-- <compilerarg line="-Xlint -Xmaxwarns 1000"/> -->
706    
707     </javac>
708    
709     </target>
710    
711    
712    
713     <target name="extra166yjar"
714     depends="extra166ycompile"
715     description="Builds library jar from compiled sources">
716    
717     <mkdir dir="${build.extra166ylib.dir}"/>
718    
719     <jar destfile="${extra166yproduct.jar}" index="true">
720     <fileset dir="${build.extra166y.dir}"/>
721     </jar>
722    
723     </target>
724    
725    
726    
727     <target name="extra166ydocs"
728     description="Builds javadocs with custom tags to build folder">
729    
730     <delete dir="${build.extra166yjavadocs.dir}"/>
731     <mkdir dir="${build.extra166yjavadocs.dir}"/>
732    
733     <javadoc destdir="${build.extra166yjavadocs.dir}"
734     link="http://java.sun.com/javase/6/docs/api/"
735     sourcepath="${extra166ysrc.dir}:/home/dl/1.5.0/j2se/martin/j2se/src/share/classes"
736    
737     >
738     <packageset dir="${topsrc.dir}" defaultexcludes="no">
739     <include name="extra166y"/>
740     </packageset>
741    
742    
743     </javadoc>
744    
745     </target>
746    
747    
748     <target name="extra166ydist"
749     depends="extra166ydist-clean, extra166ydist-jar, extra166ydist-docs"
750     description="Puts all distributable products in single hierarchy"/>
751    
752    
753    
754     <target name="extra166yclean"
755     description="Removes all build products">
756    
757     <delete dir="${build.extra166y.dir}"/>
758     <delete dir="${build.extra166ylib.dir}"/>
759    
760     </target>
761    
762    
763    
764     <target name="extra166ydist-clean"
765     description="Removes all build and distribution products">
766    
767     </target>
768    
769     <target name="extra166ydist-docs"
770     description="Builds javadocs without custom tags to dist folder">
771    
772     <delete dir="${dist.extra166yjavadocs.dir}"/>
773     <mkdir dir="${dist.extra166yjavadocs.dir}"/>
774    
775     <javadoc destdir="${dist.extra166yjavadocs.dir}"
776     link="http://java.sun.com/javase/6/docs/api/"
777     source="${build.sourcelevel}">
778     <fileset dir="${topsrc.dir}" defaultexcludes="yes">
779     <include name="extra166y/*.java"/>
780     </fileset>
781     </javadoc>
782    
783     </target>
784    
785     <target name="extra166ydist-jar"
786     depends="extra166yclean, extra166yjar">
787    
788     <copy file="${extra166yproduct.jar}" todir="${dist.dir}"/>
789    
790     </target>
791    
792 tim 1.1 </project>