ViewVC Help
View File | Revision Log | Show Annotations | Download File | Root Listing
root/jsr166/jsr166/build.xml
Revision: 1.90
Committed: Fri Jul 15 13:21:07 2011 UTC (12 years, 9 months ago) by dl
Content type: text/xml
Branch: MAIN
Changes since 1.89: +112 -1 lines
Log Message:
Initial checkin of jdk8 target classes

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 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 dl 1.90 <property name="build.jsr166e.dir" location="${build.dir}/jsr166e"/>
46     <property name="build.jsr166elib.dir" location="${build.dir}/jsr166elib"/>
47     <property name="build.jsr166ejavadocs.dir" location="${build.dir}/jsr166ejavadocs"/>
48    
49 jsr166 1.79 <property name="build.extra166y.dir" location="${build.dir}/extra166y"/>
50     <property name="build.extra166ylib.dir" location="${build.dir}/extra166ylib"/>
51     <property name="build.extra166yjavadocs.dir" location="${build.dir}/extra166yjavadocs"/>
52 dl 1.76
53 tim 1.1 <!-- Source locations -->
54 tim 1.22 <property name="src.dir" location="${basedir}/src/main"/>
55     <property name="test.src.dir" location="${basedir}/src/test"/>
56 jsr166 1.65 <property name="loops.src.dir" location="${basedir}/src/loops"/>
57 tim 1.60 <property name="tck.src.dir" location="${test.src.dir}/tck"/>
58 tim 1.62 <property name="jtreg.src.dir" location="${test.src.dir}/jtreg"/>
59 tim 1.1 <property name="lib.dir" location="${basedir}/lib"/>
60 tim 1.9 <property name="dist.dir" location="${basedir}/dist"/>
61 dl 1.70 <property name="topsrc.dir" location="${basedir}/src"/>
62     <property name="jsr166xsrc.dir" location="${basedir}/src/jsr166x"/>
63 dl 1.74 <property name="jsr166ysrc.dir" location="${basedir}/src/jsr166y"/>
64 dl 1.90 <property name="jsr166esrc.dir" location="${basedir}/src/jsr166e"/>
65 jsr166 1.79 <property name="extra166ysrc.dir" location="${basedir}/src/extra166y"/>
66 dl 1.80 <property name="jdksrc.dir" location="/home/dl/1.6.0/j2se/martin/j2se/src/share/classes"/>
67 tim 1.9 <!-- Distribution locations -->
68 jsr166 1.79 <property name="dist.javadocs.dir" location="${dist.dir}/docs"/>
69 dl 1.70 <property name="dist.jsr166xjavadocs.dir" location="${dist.dir}/jsr166xdocs"/>
70 dl 1.74 <property name="dist.jsr166yjavadocs.dir" location="${dist.dir}/jsr166ydocs"/>
71 dl 1.90 <property name="dist.jsr166ejavadocs.dir" location="${dist.dir}/jsr166edocs"/>
72 jsr166 1.79 <property name="dist.extra166yjavadocs.dir" location="${dist.dir}/extra166ydocs"/>
73 tim 1.1
74     <!-- Jar locations -->
75     <property name="product.jar" location="${build.lib.dir}/jsr166.jar"/>
76 dl 1.70 <property name="jsr166xproduct.jar" location="${build.jsr166xlib.dir}/jsr166x.jar"/>
77 dl 1.74 <property name="jsr166yproduct.jar" location="${build.jsr166ylib.dir}/jsr166y.jar"/>
78 dl 1.90 <property name="jsr166eproduct.jar" location="${build.jsr166elib.dir}/jsr166e.jar"/>
79 jsr166 1.79 <property name="extra166yproduct.jar" location="${build.extra166ylib.dir}/extra166y.jar"/>
80 tim 1.1 <property name="junit.jar" location="${lib.dir}/junit.jar"/>
81 jsr166 1.65
82 tim 1.59 <!-- Bootclasspath argument -->
83     <property name="bootclasspath.args" value="-Xbootclasspath/p:${product.jar}"/>
84 tim 1.27
85 tim 1.59 <!-- Test classpath -->
86     <path id="test.classpath">
87     <pathelement location="${build.testcases.dir}"/>
88     <pathelement location="${junit.jar}"/>
89     </path>
90 tim 1.28
91 jsr166 1.65 <!-- ALoops classpath -->
92     <path id="loops.classpath">
93     <pathelement location="${build.loops.dir}"/>
94     </path>
95    
96 tim 1.28
97 tim 1.59 <!-- Main targets -->
98 tim 1.28
99 dl 1.80 <target name="dists"
100 dl 1.90 depends="dist, jsr166xdist, jsr166ydist,jsr166edist, extra166ydist"
101 dl 1.80 description="Builds all public jars and docs"/>
102 tim 1.11
103 tim 1.28 <target name="compile"
104 tim 1.60 depends="init, configure-compiler"
105 tim 1.27 description="Compiles main sources to build folder">
106    
107 tim 1.1 <mkdir dir="${build.classes.dir}"/>
108 tim 1.27
109 tim 1.60 <javac srcdir="${src.dir}"
110 tim 1.1 destdir="${build.classes.dir}"
111     debug="${build.debug}"
112     debuglevel="${build.debuglevel}"
113     deprecation="${build.deprecation}"
114     source="${build.sourcelevel}"
115     fork="true">
116    
117 jsr166 1.68 <include name="**/*.java"/>
118 dl 1.83 <compilerarg value="-XDignore.symbol.file=true"/>
119 dl 1.74
120 dl 1.72 <!--
121 jsr166 1.68 <exclude name="java/lang/**"/>
122 dl 1.73 <compilerarg line="${build.args}"/>
123     <compilerarg line="-Xlint -Xmaxwarns 1000"/>
124 dl 1.72 -->
125 tim 1.1
126     </javac>
127 tim 1.27
128 tim 1.1 </target>
129    
130    
131 tim 1.59
132 tim 1.28 <target name="jar"
133 tim 1.59 depends="compile"
134     description="Builds library jar from compiled sources">
135    
136     <mkdir dir="${build.lib.dir}"/>
137    
138     <jar destfile="${product.jar}">
139     <fileset dir="${build.classes.dir}"/>
140     </jar>
141    
142     </target>
143    
144 tim 1.1
145    
146 tim 1.28 <target name="test"
147 tim 1.32 depends="init, configure-tests, report-tests"
148 tim 1.29 description="Runs all tests (requires JUnit 3.8.1 in ${ant.home}/lib)" />
149 tim 1.1
150    
151 tim 1.59
152     <target name="docs"
153     description="Builds javadocs with custom tags to build folder">
154    
155     <delete dir="${build.javadocs.dir}"/>
156     <mkdir dir="${build.javadocs.dir}"/>
157    
158 jsr166 1.88 <!-- the packagenames="none" hack below prevents scanning the -->
159     <!-- sourcepath for packages -->
160    
161 tim 1.59 <javadoc destdir="${build.javadocs.dir}"
162 jsr166 1.88 packagenames="none"
163     link="http://download.oracle.com/javase/7/docs/api/"
164     overview="${src.dir}/intro.html"
165 jsr166 1.89 sourcepath="${src.dir}:${jdksrc.dir}"
166     additionalparam="-XDignore.symbol.file=true" >
167 jsr166 1.88 <fileset dir="${src.dir}" defaultexcludes="yes">
168     <include name="**/*.java"/>
169     </fileset>
170 tim 1.59 </javadoc>
171    
172     </target>
173    
174    
175    
176 tim 1.28 <target name="dist"
177     depends="init, dist-clean, dist-jar, dist-docs"
178 tim 1.16 description="Puts all distributable products in single hierarchy"/>
179 tim 1.1
180 tim 1.58
181 tim 1.42 <target name="release"
182     depends="dist"
183     description="Puts entire CVS tree, plus distribution productions, in a jar">
184    
185     <property name="release.jar" value="dist/jsr166-${version}-dist.jar"/>
186    
187     <jar basedir="${basedir}" destfile="${release.jar}">
188 tim 1.58 <!-- <exclude name="build/**"/> -->
189 tim 1.42 <exclude name="${release.jar}"/>
190     <exclude name="user.properties"/>
191     <exclude name="etc/notes/**"/>
192 tim 1.58 <exclude name="src/emulation/**"/>
193 tim 1.44 <exclude name="**/SyntaxTest.java"/>
194 tim 1.58 <exclude name="**/SuperfluousAbstract.java"/>
195 tim 1.42 </jar>
196    
197     </target>
198 tim 1.1
199 tim 1.59
200    
201 tim 1.11 <target name="clean"
202     description="Removes all build products">
203 tim 1.27
204 tim 1.11 <delete dir="${build.dir}"/>
205     <delete dir="${build.classes.dir}"/>
206     <delete dir="${build.lib.dir}"/>
207 tim 1.27
208 tim 1.1 </target>
209    
210    
211 tim 1.59
212 tim 1.11 <target name="dist-clean"
213     description="Removes all build and distribution products">
214 tim 1.27
215 tim 1.11 <delete dir="${dist.dir}"/>
216 tim 1.27
217 tim 1.9 </target>
218 tim 1.10
219    
220 tim 1.59
221 tim 1.28 <target name="dist-docs"
222     description="Builds javadocs without custom tags to dist folder">
223    
224     <delete dir="${dist.javadocs.dir}"/>
225     <mkdir dir="${dist.javadocs.dir}"/>
226    
227 jsr166 1.86 <!-- the packagenames="none" hack below prevents scanning the -->
228     <!-- sourcepath for packages -->
229    
230 tim 1.28 <javadoc destdir="${dist.javadocs.dir}"
231 jsr166 1.86 packagenames="none"
232 jsr166 1.87 link="http://download.oracle.com/javase/7/docs/api/"
233 jsr166 1.86 overview="${src.dir}/intro.html"
234 jsr166 1.89 sourcepath="${src.dir}:${jdksrc.dir}"
235     additionalparam="-XDignore.symbol.file=true" >
236 jsr166 1.86 <fileset dir="${src.dir}" defaultexcludes="yes">
237     <include name="**/*.java"/>
238 dl 1.72 </fileset>
239 tim 1.28 </javadoc>
240 tim 1.14
241     </target>
242    
243    
244 tim 1.28
245 tim 1.11 <!-- Internal targets -->
246 tim 1.9
247 tim 1.16
248 tim 1.32 <target name="init">
249 tim 1.27
250 tim 1.11 <!-- Version is kept in a separate file -->
251     <loadfile property="version" srcFile="version.properties"/>
252     <echo>Building JSR-166 version ${version}</echo>
253 tim 1.54 <echo>java.home is ${java.home}</echo>
254 tim 1.27
255     </target>
256 jsr166 1.65
257    
258 tim 1.28 <target name="dist-jar"
259     depends="clean, jar">
260 tim 1.27
261 tim 1.11 <copy file="${product.jar}" todir="${dist.dir}"/>
262 tim 1.27
263 tim 1.11 </target>
264    
265    
266 tim 1.28 <target name="compile-tests"
267     depends="jar">
268 tim 1.27
269 tim 1.1 <mkdir dir="${build.testcases.dir}"/>
270 tim 1.37
271 tim 1.60 <javac srcdir="${tck.src.dir}"
272     destdir="${build.testcases.dir}"
273     debug="${build.debug}"
274     debuglevel="${build.debuglevel}"
275     deprecation="${build.deprecation}"
276     source="${build.sourcelevel}"
277     fork="true">
278    
279     <compilerarg value="${bootclasspath.args}"/>
280     <compilerarg line="${build.args}"/>
281 dl 1.84 <compilerarg value="-XDignore.symbol.file=true"/>
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 dl 1.84 <compilerarg value="-XDignore.symbol.file=true"/>
300 jsr166 1.65
301 tim 1.57 <classpath refid="test.classpath"/>
302 tim 1.1
303     </javac>
304 tim 1.27
305 tim 1.62 <!--
306     <javac srcdir="${jtreg.src.dir}"
307     destdir="${build.testcases.dir}"
308     debug="${build.debug}"
309     debuglevel="${build.debuglevel}"
310     deprecation="${build.deprecation}"
311     source="${build.sourcelevel}"
312     fork="true">
313    
314     <compilerarg value="${bootclasspath.args}"/>
315     <compilerarg line="${build.args}"/>
316 dl 1.84 <compilerarg value="-XDignore.symbol.file=true"/>
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 dl 1.84 <compilerarg value="-XDignore.symbol.file=true"/>
458 jsr166 1.65
459     </javac>
460    
461     <java classname="ALoops" fork="true">
462     <classpath refid="loops.classpath"/>
463     </java>
464    
465     </target>
466    
467    
468 dl 1.70 <!-- jsr166x -->
469    
470    
471     <target name="jsr166xcompile"
472     depends="init, configure-compiler"
473     description="Compiles jsr166x sources">
474    
475     <mkdir dir="${build.jsr166x.dir}"/>
476    
477     <javac srcdir="${jsr166xsrc.dir}"
478     destdir="${build.jsr166x.dir}"
479     debug="${build.debug}"
480     debuglevel="${build.debuglevel}"
481     deprecation="${build.deprecation}"
482     source="${build.sourcelevel}"
483     fork="true">
484    
485     <include name="**/*.java"/>
486     <compilerarg line="${build.args}"/>
487 dl 1.84 <compilerarg value="-XDignore.symbol.file=true"/>
488 dl 1.70
489     </javac>
490    
491     </target>
492    
493    
494    
495     <target name="jsr166xjar"
496     depends="jsr166xcompile"
497     description="Builds library jar from compiled sources">
498    
499     <mkdir dir="${build.jsr166xlib.dir}"/>
500    
501     <jar destfile="${jsr166xproduct.jar}">
502     <fileset dir="${build.jsr166x.dir}"/>
503     </jar>
504    
505     </target>
506    
507    
508    
509     <target name="jsr166xdocs"
510     description="Builds javadocs with custom tags to build folder">
511    
512     <delete dir="${build.jsr166xjavadocs.dir}"/>
513     <mkdir dir="${build.jsr166xjavadocs.dir}"/>
514    
515     <javadoc destdir="${build.jsr166xjavadocs.dir}"
516 jsr166 1.85 packagenames="jsr166x"
517 jsr166 1.87 link="http://download.oracle.com/javase/7/docs/api/"
518 jsr166 1.85 source="${build.sourcelevel}"
519 jsr166 1.89 sourcepath="${topsrc.dir}:${jdksrc.dir}"
520     additionalparam="-XDignore.symbol.file=true" />
521 dl 1.70
522     </target>
523    
524    
525     <target name="jsr166xdist"
526     depends="jsr166xdist-clean, jsr166xdist-jar, jsr166xdist-docs"
527     description="Puts all distributable products in single hierarchy"/>
528    
529    
530    
531     <target name="jsr166xclean"
532     description="Removes all build products">
533    
534     <delete dir="${build.jsr166x.dir}"/>
535     <delete dir="${build.jsr166xlib.dir}"/>
536    
537     </target>
538    
539    
540    
541     <target name="jsr166xdist-clean"
542     description="Removes all build and distribution products">
543    
544     </target>
545    
546    
547    
548     <target name="jsr166xdist-docs"
549     description="Builds javadocs without custom tags to dist folder">
550    
551     <delete dir="${dist.jsr166xjavadocs.dir}"/>
552     <mkdir dir="${dist.jsr166xjavadocs.dir}"/>
553    
554     <javadoc destdir="${dist.jsr166xjavadocs.dir}"
555 jsr166 1.85 packagenames="jsr166x"
556 jsr166 1.87 link="http://download.oracle.com/javase/7/docs/api/"
557 jsr166 1.85 source="${build.sourcelevel}"
558 jsr166 1.89 sourcepath="${topsrc.dir}:${jdksrc.dir}"
559     additionalparam="-XDignore.symbol.file=true" />
560 dl 1.70
561     </target>
562    
563     <target name="jsr166xdist-jar"
564     depends="jsr166xclean, jsr166xjar">
565    
566     <copy file="${jsr166xproduct.jar}" todir="${dist.dir}"/>
567    
568     </target>
569    
570 dl 1.74 <!-- jsr166y -->
571    
572    
573     <target name="jsr166ycompile"
574     depends="init, configure-compiler"
575     description="Compiles jsr166y sources">
576    
577     <mkdir dir="${build.jsr166y.dir}"/>
578    
579     <javac srcdir="${jsr166ysrc.dir}"
580     destdir="${build.jsr166y.dir}"
581     debug="${build.debug}"
582     debuglevel="${build.debuglevel}"
583     deprecation="${build.deprecation}"
584     source="${build.sourcelevel}"
585     fork="true">
586    
587     <include name="**/*.java"/>
588     <compilerarg line="${build.args}"/>
589 dl 1.83 <compilerarg value="-XDignore.symbol.file=true"/>
590 dl 1.74 <compilerarg value="${bootclasspath.args}"/>
591    
592     <!-- <compilerarg line="-Xlint -Xmaxwarns 1000"/> -->
593    
594     </javac>
595    
596     </target>
597    
598    
599    
600     <target name="jsr166yjar"
601     depends="jsr166ycompile"
602     description="Builds library jar from compiled sources">
603    
604     <mkdir dir="${build.jsr166ylib.dir}"/>
605    
606 dl 1.76 <jar destfile="${jsr166yproduct.jar}" index="true">
607 dl 1.74 <fileset dir="${build.jsr166y.dir}"/>
608     </jar>
609    
610     </target>
611    
612    
613    
614     <target name="jsr166ydocs"
615     description="Builds javadocs with custom tags to build folder">
616    
617     <delete dir="${build.jsr166yjavadocs.dir}"/>
618     <mkdir dir="${build.jsr166yjavadocs.dir}"/>
619    
620     <javadoc destdir="${build.jsr166yjavadocs.dir}"
621 jsr166 1.85 packagenames="jsr166y"
622 jsr166 1.87 link="http://download.oracle.com/javase/7/docs/api/"
623 jsr166 1.85 source="${build.sourcelevel}"
624 jsr166 1.89 sourcepath="${topsrc.dir}:${jdksrc.dir}"
625     additionalparam="-XDignore.symbol.file=true" />
626 dl 1.74
627     </target>
628    
629    
630     <target name="jsr166ydist"
631     depends="jsr166ydist-clean, jsr166ydist-jar, jsr166ydist-docs"
632     description="Puts all distributable products in single hierarchy"/>
633    
634    
635    
636     <target name="jsr166yclean"
637     description="Removes all build products">
638    
639     <delete dir="${build.jsr166y.dir}"/>
640     <delete dir="${build.jsr166ylib.dir}"/>
641    
642     </target>
643    
644    
645    
646     <target name="jsr166ydist-clean"
647     description="Removes all build and distribution products">
648    
649     </target>
650    
651     <target name="jsr166ydist-docs"
652     description="Builds javadocs without custom tags to dist folder">
653    
654     <delete dir="${dist.jsr166yjavadocs.dir}"/>
655     <mkdir dir="${dist.jsr166yjavadocs.dir}"/>
656    
657     <javadoc destdir="${dist.jsr166yjavadocs.dir}"
658 jsr166 1.85 packagenames="jsr166y"
659 jsr166 1.87 link="http://download.oracle.com/javase/7/docs/api/"
660 jsr166 1.85 source="${build.sourcelevel}"
661 jsr166 1.89 sourcepath="${topsrc.dir}:${jdksrc.dir}"
662     additionalparam="-XDignore.symbol.file=true" />
663 dl 1.74
664     </target>
665    
666     <target name="jsr166ydist-jar"
667     depends="jsr166yclean, jsr166yjar">
668    
669     <copy file="${jsr166yproduct.jar}" todir="${dist.dir}"/>
670    
671     </target>
672    
673 dl 1.90
674 dl 1.76 <!-- extra166y -->
675    
676    
677     <target name="extra166ycompile"
678 dl 1.77 depends="init, configure-compiler, jsr166ycompile"
679 dl 1.76 description="Compiles extra166y sources">
680    
681     <mkdir dir="${build.extra166y.dir}"/>
682    
683     <javac srcdir="${extra166ysrc.dir}"
684     destdir="${build.extra166y.dir}"
685     debug="${build.debug}"
686 dl 1.77 classpath="${jsr166yproduct.jar}"
687 dl 1.76 debuglevel="${build.debuglevel}"
688     deprecation="${build.deprecation}"
689     source="${build.sourcelevel}"
690     fork="true">
691    
692     <include name="**/*.java"/>
693     <compilerarg line="${build.args}"/>
694 dl 1.83 <compilerarg value="-XDignore.symbol.file=true"/>
695 dl 1.76 <compilerarg value="${bootclasspath.args}"/>
696    
697     <!-- <compilerarg line="-Xlint -Xmaxwarns 1000"/> -->
698    
699     </javac>
700    
701     </target>
702    
703    
704    
705     <target name="extra166yjar"
706     depends="extra166ycompile"
707     description="Builds library jar from compiled sources">
708    
709     <mkdir dir="${build.extra166ylib.dir}"/>
710    
711     <jar destfile="${extra166yproduct.jar}" index="true">
712     <fileset dir="${build.extra166y.dir}"/>
713     </jar>
714    
715     </target>
716    
717    
718    
719     <target name="extra166ydocs"
720     description="Builds javadocs with custom tags to build folder">
721    
722     <delete dir="${build.extra166yjavadocs.dir}"/>
723     <mkdir dir="${build.extra166yjavadocs.dir}"/>
724    
725     <javadoc destdir="${build.extra166yjavadocs.dir}"
726 jsr166 1.85 packagenames="extra166y"
727 jsr166 1.87 link="http://download.oracle.com/javase/7/docs/api/"
728 jsr166 1.85 source="${build.sourcelevel}"
729 jsr166 1.89 sourcepath="${topsrc.dir}:${jdksrc.dir}"
730     additionalparam="-XDignore.symbol.file=true" />
731 dl 1.76
732     </target>
733    
734    
735     <target name="extra166ydist"
736     depends="extra166ydist-clean, extra166ydist-jar, extra166ydist-docs"
737     description="Puts all distributable products in single hierarchy"/>
738    
739    
740    
741     <target name="extra166yclean"
742     description="Removes all build products">
743    
744     <delete dir="${build.extra166y.dir}"/>
745     <delete dir="${build.extra166ylib.dir}"/>
746    
747     </target>
748    
749    
750    
751     <target name="extra166ydist-clean"
752     description="Removes all build and distribution products">
753    
754     </target>
755    
756     <target name="extra166ydist-docs"
757     description="Builds javadocs without custom tags to dist folder">
758    
759     <delete dir="${dist.extra166yjavadocs.dir}"/>
760     <mkdir dir="${dist.extra166yjavadocs.dir}"/>
761    
762     <javadoc destdir="${dist.extra166yjavadocs.dir}"
763 jsr166 1.85 packagenames="extra166y"
764 jsr166 1.87 link="http://download.oracle.com/javase/7/docs/api/"
765 jsr166 1.85 source="${build.sourcelevel}"
766 jsr166 1.89 sourcepath="${topsrc.dir}:${jdksrc.dir}"
767     additionalparam="-XDignore.symbol.file=true" />
768 dl 1.76
769     </target>
770    
771     <target name="extra166ydist-jar"
772     depends="extra166yclean, extra166yjar">
773    
774     <copy file="${extra166yproduct.jar}" todir="${dist.dir}"/>
775    
776     </target>
777    
778 dl 1.90 <!-- jsr166e -->
779    
780    
781     <target name="jsr166ecompile"
782     depends="init, configure-compiler"
783     description="Compiles jsr166e sources">
784    
785     <mkdir dir="${build.jsr166e.dir}"/>
786    
787     <javac srcdir="${jsr166esrc.dir}"
788     destdir="${build.jsr166e.dir}"
789     debug="${build.debug}"
790     debuglevel="${build.debuglevel}"
791     deprecation="${build.deprecation}"
792     source="1.7"
793     fork="true">
794    
795     <include name="**/*.java"/>
796     <compilerarg line="${build.args}"/>
797     <compilerarg value="-XDignore.symbol.file=true"/>
798     <compilerarg value="${bootclasspath.args}"/>
799    
800     <!-- <compilerarg line="-Xlint -Xmaxwarns 1000"/> -->
801    
802     </javac>
803    
804     </target>
805    
806    
807    
808     <target name="jsr166ejar"
809     depends="jsr166ecompile"
810     description="Builds library jar from compiled sources">
811    
812     <mkdir dir="${build.jsr166elib.dir}"/>
813    
814     <jar destfile="${jsr166eproduct.jar}" index="true">
815     <fileset dir="${build.jsr166e.dir}"/>
816     </jar>
817    
818     </target>
819    
820    
821    
822     <target name="jsr166edocs"
823     description="Builds javadocs with custom tags to build folder">
824    
825     <delete dir="${build.jsr166ejavadocs.dir}"/>
826     <mkdir dir="${build.jsr166ejavadocs.dir}"/>
827    
828     <javadoc destdir="${build.jsr166ejavadocs.dir}"
829     packagenames="jsr166e,jsr166e.extra"
830     link="http://download.oracle.com/javase/7/docs/api/"
831     source="1.7"
832     sourcepath="${topsrc.dir}:${jdksrc.dir}"
833     additionalparam="-XDignore.symbol.file=true" />
834    
835     </target>
836    
837    
838     <target name="jsr166edist"
839     depends="jsr166edist-clean, jsr166edist-jar, jsr166edist-docs"
840     description="Puts all distributable products in single hierarchy"/>
841    
842    
843    
844     <target name="jsr166eclean"
845     description="Removes all build products">
846    
847     <delete dir="${build.jsr166e.dir}"/>
848     <delete dir="${build.jsr166elib.dir}"/>
849    
850     </target>
851    
852    
853    
854     <target name="jsr166edist-clean"
855     description="Removes all build and distribution products">
856    
857     </target>
858    
859     <target name="jsr166edist-docs"
860     description="Builds javadocs without custom tags to dist folder">
861    
862     <delete dir="${dist.jsr166ejavadocs.dir}"/>
863     <mkdir dir="${dist.jsr166ejavadocs.dir}"/>
864    
865     <javadoc destdir="${dist.jsr166ejavadocs.dir}"
866     packagenames="jsr166e,jsr166e.extra"
867     link="http://download.oracle.com/javase/7/docs/api/"
868     source="1.7"
869     sourcepath="${topsrc.dir}:${jdksrc.dir}"
870     additionalparam="-XDignore.symbol.file=true" />
871    
872     </target>
873    
874     <target name="jsr166edist-jar"
875     depends="jsr166eclean, jsr166ejar">
876    
877     <copy file="${jsr166eproduct.jar}" todir="${dist.dir}"/>
878    
879     </target>
880    
881 tim 1.1 </project>