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

Annotation of /jsr166/build.xml

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.91 - (hide annotations)
Sun Nov 18 06:21:11 2012 UTC (6 years, 10 months ago) by jsr166
Branch: MAIN
Changes since 1.90: +21 -10 lines
File MIME type: text/xml
clean up canonical locations of java se api docs

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 jsr166 1.91
68 tim 1.9 <!-- Distribution locations -->
69 jsr166 1.79 <property name="dist.javadocs.dir" location="${dist.dir}/docs"/>
70 dl 1.70 <property name="dist.jsr166xjavadocs.dir" location="${dist.dir}/jsr166xdocs"/>
71 dl 1.74 <property name="dist.jsr166yjavadocs.dir" location="${dist.dir}/jsr166ydocs"/>
72 dl 1.90 <property name="dist.jsr166ejavadocs.dir" location="${dist.dir}/jsr166edocs"/>
73 jsr166 1.79 <property name="dist.extra166yjavadocs.dir" location="${dist.dir}/extra166ydocs"/>
74 tim 1.1
75     <!-- Jar locations -->
76     <property name="product.jar" location="${build.lib.dir}/jsr166.jar"/>
77 dl 1.70 <property name="jsr166xproduct.jar" location="${build.jsr166xlib.dir}/jsr166x.jar"/>
78 dl 1.74 <property name="jsr166yproduct.jar" location="${build.jsr166ylib.dir}/jsr166y.jar"/>
79 dl 1.90 <property name="jsr166eproduct.jar" location="${build.jsr166elib.dir}/jsr166e.jar"/>
80 jsr166 1.79 <property name="extra166yproduct.jar" location="${build.extra166ylib.dir}/extra166y.jar"/>
81 tim 1.1 <property name="junit.jar" location="${lib.dir}/junit.jar"/>
82 jsr166 1.65
83 tim 1.59 <!-- Bootclasspath argument -->
84     <property name="bootclasspath.args" value="-Xbootclasspath/p:${product.jar}"/>
85 tim 1.27
86 jsr166 1.91 <!-- Canonical location of jdk API docs, to use with javadoc link attribute -->
87     <property name="jdkapi5docs.url" value="http://docs.oracle.com/javase/1.5.0/docs/api/"/>
88     <property name="jdkapi6docs.url" value="http://docs.oracle.com/javase/6/docs/api/"/>
89     <property name="jdkapi7docs.url" value="http://docs.oracle.com/javase/7/docs/api/"/>
90    
91     <property name="jdkapi8docs.url" value="http://download.java.net/jdk8/docs/api/"/>
92     <!-- The below does not yet exist as of 2012-11 -->
93     <!-- <property name="jdkapi8docs.url" value="http://docs.oracle.com/javase/8/docs/api/"/> -->
94     <property name="jdkapidocs.url" value="${jdkapi7docs.url}"/>
95    
96 tim 1.59 <!-- Test classpath -->
97     <path id="test.classpath">
98     <pathelement location="${build.testcases.dir}"/>
99     <pathelement location="${junit.jar}"/>
100     </path>
101 tim 1.28
102 jsr166 1.65 <!-- ALoops classpath -->
103     <path id="loops.classpath">
104     <pathelement location="${build.loops.dir}"/>
105     </path>
106    
107 tim 1.28
108 tim 1.59 <!-- Main targets -->
109 tim 1.28
110 dl 1.80 <target name="dists"
111 dl 1.90 depends="dist, jsr166xdist, jsr166ydist,jsr166edist, extra166ydist"
112 dl 1.80 description="Builds all public jars and docs"/>
113 tim 1.11
114 tim 1.28 <target name="compile"
115 tim 1.60 depends="init, configure-compiler"
116 tim 1.27 description="Compiles main sources to build folder">
117    
118 tim 1.1 <mkdir dir="${build.classes.dir}"/>
119 tim 1.27
120 tim 1.60 <javac srcdir="${src.dir}"
121 tim 1.1 destdir="${build.classes.dir}"
122     debug="${build.debug}"
123     debuglevel="${build.debuglevel}"
124     deprecation="${build.deprecation}"
125     source="${build.sourcelevel}"
126     fork="true">
127    
128 jsr166 1.68 <include name="**/*.java"/>
129 dl 1.83 <compilerarg value="-XDignore.symbol.file=true"/>
130 dl 1.74
131 dl 1.72 <!--
132 jsr166 1.68 <exclude name="java/lang/**"/>
133 dl 1.73 <compilerarg line="${build.args}"/>
134     <compilerarg line="-Xlint -Xmaxwarns 1000"/>
135 dl 1.72 -->
136 tim 1.1
137     </javac>
138 tim 1.27
139 tim 1.1 </target>
140    
141    
142 tim 1.59
143 tim 1.28 <target name="jar"
144 tim 1.59 depends="compile"
145     description="Builds library jar from compiled sources">
146    
147     <mkdir dir="${build.lib.dir}"/>
148    
149     <jar destfile="${product.jar}">
150     <fileset dir="${build.classes.dir}"/>
151     </jar>
152    
153     </target>
154    
155 tim 1.1
156    
157 tim 1.28 <target name="test"
158 tim 1.32 depends="init, configure-tests, report-tests"
159 tim 1.29 description="Runs all tests (requires JUnit 3.8.1 in ${ant.home}/lib)" />
160 tim 1.1
161    
162 tim 1.59
163     <target name="docs"
164     description="Builds javadocs with custom tags to build folder">
165    
166     <delete dir="${build.javadocs.dir}"/>
167     <mkdir dir="${build.javadocs.dir}"/>
168    
169 jsr166 1.88 <!-- the packagenames="none" hack below prevents scanning the -->
170     <!-- sourcepath for packages -->
171    
172 tim 1.59 <javadoc destdir="${build.javadocs.dir}"
173 jsr166 1.88 packagenames="none"
174 jsr166 1.91 link="${jdkapidocs.url}"
175 jsr166 1.88 overview="${src.dir}/intro.html"
176 jsr166 1.89 sourcepath="${src.dir}:${jdksrc.dir}"
177     additionalparam="-XDignore.symbol.file=true" >
178 jsr166 1.88 <fileset dir="${src.dir}" defaultexcludes="yes">
179     <include name="**/*.java"/>
180     </fileset>
181 tim 1.59 </javadoc>
182    
183     </target>
184    
185    
186    
187 tim 1.28 <target name="dist"
188     depends="init, dist-clean, dist-jar, dist-docs"
189 tim 1.16 description="Puts all distributable products in single hierarchy"/>
190 tim 1.1
191 tim 1.58
192 tim 1.42 <target name="release"
193     depends="dist"
194     description="Puts entire CVS tree, plus distribution productions, in a jar">
195    
196     <property name="release.jar" value="dist/jsr166-${version}-dist.jar"/>
197    
198     <jar basedir="${basedir}" destfile="${release.jar}">
199 tim 1.58 <!-- <exclude name="build/**"/> -->
200 tim 1.42 <exclude name="${release.jar}"/>
201     <exclude name="user.properties"/>
202     <exclude name="etc/notes/**"/>
203 tim 1.58 <exclude name="src/emulation/**"/>
204 tim 1.44 <exclude name="**/SyntaxTest.java"/>
205 tim 1.58 <exclude name="**/SuperfluousAbstract.java"/>
206 tim 1.42 </jar>
207    
208     </target>
209 tim 1.1
210 tim 1.59
211    
212 tim 1.11 <target name="clean"
213     description="Removes all build products">
214 tim 1.27
215 tim 1.11 <delete dir="${build.dir}"/>
216     <delete dir="${build.classes.dir}"/>
217     <delete dir="${build.lib.dir}"/>
218 tim 1.27
219 tim 1.1 </target>
220    
221    
222 tim 1.59
223 tim 1.11 <target name="dist-clean"
224     description="Removes all build and distribution products">
225 tim 1.27
226 tim 1.11 <delete dir="${dist.dir}"/>
227 tim 1.27
228 tim 1.9 </target>
229 tim 1.10
230    
231 tim 1.59
232 tim 1.28 <target name="dist-docs"
233     description="Builds javadocs without custom tags to dist folder">
234    
235     <delete dir="${dist.javadocs.dir}"/>
236     <mkdir dir="${dist.javadocs.dir}"/>
237    
238 jsr166 1.86 <!-- the packagenames="none" hack below prevents scanning the -->
239     <!-- sourcepath for packages -->
240    
241 tim 1.28 <javadoc destdir="${dist.javadocs.dir}"
242 jsr166 1.86 packagenames="none"
243 jsr166 1.91 link="${jdkapidocs.url}"
244 jsr166 1.86 overview="${src.dir}/intro.html"
245 jsr166 1.89 sourcepath="${src.dir}:${jdksrc.dir}"
246     additionalparam="-XDignore.symbol.file=true" >
247 jsr166 1.86 <fileset dir="${src.dir}" defaultexcludes="yes">
248     <include name="**/*.java"/>
249 dl 1.72 </fileset>
250 tim 1.28 </javadoc>
251 tim 1.14
252     </target>
253    
254    
255 tim 1.28
256 tim 1.11 <!-- Internal targets -->
257 tim 1.9
258 tim 1.16
259 tim 1.32 <target name="init">
260 tim 1.27
261 tim 1.11 <!-- Version is kept in a separate file -->
262     <loadfile property="version" srcFile="version.properties"/>
263     <echo>Building JSR-166 version ${version}</echo>
264 tim 1.54 <echo>java.home is ${java.home}</echo>
265 tim 1.27
266     </target>
267 jsr166 1.65
268    
269 tim 1.28 <target name="dist-jar"
270     depends="clean, jar">
271 tim 1.27
272 tim 1.11 <copy file="${product.jar}" todir="${dist.dir}"/>
273 tim 1.27
274 tim 1.11 </target>
275    
276    
277 tim 1.28 <target name="compile-tests"
278     depends="jar">
279 tim 1.27
280 tim 1.1 <mkdir dir="${build.testcases.dir}"/>
281 tim 1.37
282 tim 1.60 <javac srcdir="${tck.src.dir}"
283     destdir="${build.testcases.dir}"
284     debug="${build.debug}"
285     debuglevel="${build.debuglevel}"
286     deprecation="${build.deprecation}"
287     source="${build.sourcelevel}"
288     fork="true">
289    
290     <compilerarg value="${bootclasspath.args}"/>
291     <compilerarg line="${build.args}"/>
292 dl 1.84 <compilerarg value="-XDignore.symbol.file=true"/>
293 jsr166 1.65
294 tim 1.60 <classpath refid="test.classpath"/>
295    
296     </javac>
297    
298     <javac srcdir="${test.src.dir}"
299 tim 1.1 destdir="${build.testcases.dir}"
300     debug="${build.debug}"
301     debuglevel="${build.debuglevel}"
302     deprecation="${build.deprecation}"
303     source="${build.sourcelevel}"
304     fork="true">
305    
306 tim 1.60 <include name="jsr166/test/**"/>
307 jsr166 1.65
308 tim 1.59 <compilerarg value="${bootclasspath.args}"/>
309 tim 1.57 <compilerarg line="${build.args}"/>
310 dl 1.84 <compilerarg value="-XDignore.symbol.file=true"/>
311 jsr166 1.65
312 tim 1.57 <classpath refid="test.classpath"/>
313 tim 1.1
314     </javac>
315 tim 1.27
316 tim 1.62 <!--
317     <javac srcdir="${jtreg.src.dir}"
318     destdir="${build.testcases.dir}"
319     debug="${build.debug}"
320     debuglevel="${build.debuglevel}"
321     deprecation="${build.deprecation}"
322     source="${build.sourcelevel}"
323     fork="true">
324    
325     <compilerarg value="${bootclasspath.args}"/>
326     <compilerarg line="${build.args}"/>
327 dl 1.84 <compilerarg value="-XDignore.symbol.file=true"/>
328 jsr166 1.65
329 tim 1.62 <classpath refid="test.classpath"/>
330    
331     </javac>
332     -->
333    
334 tim 1.1 </target>
335 tim 1.11
336 tim 1.1
337 tim 1.28 <target name="run-tests"
338     depends="compile-tests">
339 tim 1.27
340     <!-- May be overridden by user.properties -->
341     <property name="testcase" value="*"/>
342    
343 tim 1.1 <mkdir dir="${build.reports.dir}"/>
344 tim 1.27
345 tim 1.1 <junit printsummary="true"
346     showoutput="true"
347     errorProperty="junit.failed"
348     failureProperty="junit.failed"
349 tim 1.12 dir="${build.reports.dir}"
350     fork="true">
351    
352 tim 1.59 <jvmarg value="${bootclasspath.args}"/>
353 tim 1.64 <jvmarg value="-server"/>
354     <jvmarg value="-showversion"/>
355 jsr166 1.65
356 tim 1.59 <classpath refid="test.classpath"/>
357 tim 1.1
358     <formatter type="xml"/>
359    
360 tim 1.62 <batchtest todir="${build.reports.dir}" unless="no.test.tck">
361 tim 1.60 <fileset dir="${tck.src.dir}">
362     <include name="**/${testcase}Test.java"/>
363     </fileset>
364 tim 1.62 </batchtest>
365 jsr166 1.65
366 tim 1.62 <batchtest todir="${build.reports.dir}" if="do.test.old">
367 tim 1.60 <fileset dir="${test.src.dir}">
368     <include name="jsr166/test/**/${testcase}Test.java"/>
369 tim 1.1 </fileset>
370     </batchtest>
371 tim 1.62
372 jsr166 1.65 <!--
373 tim 1.62 <batchtest todir="${build.reports.dir}" if="do.test.jtreg">
374     <fileset dir="${jtreg.src.dir}">
375     <include name="**/${testcase}Test.java"/>
376     </fileset>
377     </batchtest>
378     -->
379 tim 1.1
380     </junit>
381 tim 1.27
382 tim 1.1 </target>
383    
384    
385 tim 1.28 <target name="report-tests"
386     depends="run-tests">
387    
388 tim 1.54 <!-- Sets junit.report.format to frames if redirection is present,
389 tim 1.1 otherwise sets it to noframes. -->
390     <available property="junit.report.format"
391     value="frames"
392     classname="org.apache.xalan.lib.Redirect"
393     />
394     <property name="junit.report.format" value="noframes"/>
395    
396     <junitreport todir="${build.reports.dir}">
397     <fileset dir="${build.reports.dir}">
398     <include name="TEST-*.xml"/>
399     </fileset>
400 jsr166 1.75 <report format="${junit.report.format}" todir="${build.reports.dir}"
401 tim 1.1 />
402     </junitreport>
403    
404     <fail message="Test Cases Failed" if="junit.failed"/>
405 tim 1.28
406 tim 1.18 </target>
407    
408    
409 tim 1.32 <target name="configure-compiler">
410 tim 1.54
411     <property name="unchecked.option" value="-Xlint:unchecked"/>
412    
413     <condition property="warnunchecked.arg" value="${unchecked.option}">
414 tim 1.57 <istrue value="${build.warnunchecked}"/>
415 tim 1.32 </condition>
416    
417 tim 1.37 <property name="warnunchecked.arg" value=""/>
418 tim 1.34
419 tim 1.32
420     <!-- Common options in javac invocations -->
421 tim 1.57 <property name="build.args" value="${warnunchecked.arg}"/>
422 tim 1.33
423     </target>
424    
425    
426 tim 1.37 <target name="configure-tests"
427     depends="configure-compiler">
428 tim 1.28
429     <!-- junit.framework.Protectable is in JUnit 3.8.1 but not in 3.7 -->
430 tim 1.18 <available property="junit.available"
431 tim 1.28 classname="junit.framework.Protectable"/>
432    
433 tim 1.54 <!-- Xalan -->
434     <available property="xalan.available"
435     classname="org.apache.xalan.Version"/>
436    
437 jsr166 1.65
438 tim 1.59 <!-- Ant 1.6beta and later don't need or want this check -->
439 jsr166 1.65 <!--
440 tim 1.59 <fail message="Need JUnit 3.8.1 in ${ant.home}${file.separator}lib to run tests"
441     unless="junit.available"/>
442    
443 tim 1.54 <fail message="Need Xalan 2.5.1 jar in ${ant.home}${file.separator}lib to run tests"
444     unless="xalan.available"/>
445 tim 1.59 -->
446 tim 1.30
447 tim 1.28 </target>
448    
449    
450 jsr166 1.65 <!-- Various demos and test programs -->
451    
452    
453     <target name="loops" depends="init, configure-compiler"
454     description="Benchmark from Doug Lea's AQS paper">
455    
456     <mkdir dir="${build.loops.dir}"/>
457    
458     <javac srcdir="${loops.src.dir}"
459     destdir="${build.loops.dir}"
460     debug="${build.debug}"
461     debuglevel="${build.debuglevel}"
462     deprecation="${build.deprecation}"
463     source="${build.sourcelevel}"
464     fork="true">
465    
466     <compilerarg line="${build.args}"/>
467     <classpath refid="loops.classpath"/>
468 dl 1.84 <compilerarg value="-XDignore.symbol.file=true"/>
469 jsr166 1.65
470     </javac>
471    
472     <java classname="ALoops" fork="true">
473     <classpath refid="loops.classpath"/>
474     </java>
475    
476     </target>
477    
478    
479 dl 1.70 <!-- jsr166x -->
480    
481    
482     <target name="jsr166xcompile"
483     depends="init, configure-compiler"
484     description="Compiles jsr166x sources">
485    
486     <mkdir dir="${build.jsr166x.dir}"/>
487    
488     <javac srcdir="${jsr166xsrc.dir}"
489     destdir="${build.jsr166x.dir}"
490     debug="${build.debug}"
491     debuglevel="${build.debuglevel}"
492     deprecation="${build.deprecation}"
493     source="${build.sourcelevel}"
494     fork="true">
495    
496     <include name="**/*.java"/>
497     <compilerarg line="${build.args}"/>
498 dl 1.84 <compilerarg value="-XDignore.symbol.file=true"/>
499 dl 1.70
500     </javac>
501    
502     </target>
503    
504    
505    
506     <target name="jsr166xjar"
507     depends="jsr166xcompile"
508     description="Builds library jar from compiled sources">
509    
510     <mkdir dir="${build.jsr166xlib.dir}"/>
511    
512     <jar destfile="${jsr166xproduct.jar}">
513     <fileset dir="${build.jsr166x.dir}"/>
514     </jar>
515    
516     </target>
517    
518    
519    
520     <target name="jsr166xdocs"
521     description="Builds javadocs with custom tags to build folder">
522    
523     <delete dir="${build.jsr166xjavadocs.dir}"/>
524     <mkdir dir="${build.jsr166xjavadocs.dir}"/>
525    
526     <javadoc destdir="${build.jsr166xjavadocs.dir}"
527 jsr166 1.85 packagenames="jsr166x"
528 jsr166 1.91 link="${jdkapidocs.url}"
529 jsr166 1.85 source="${build.sourcelevel}"
530 jsr166 1.89 sourcepath="${topsrc.dir}:${jdksrc.dir}"
531     additionalparam="-XDignore.symbol.file=true" />
532 dl 1.70
533     </target>
534    
535    
536     <target name="jsr166xdist"
537     depends="jsr166xdist-clean, jsr166xdist-jar, jsr166xdist-docs"
538     description="Puts all distributable products in single hierarchy"/>
539    
540    
541    
542     <target name="jsr166xclean"
543     description="Removes all build products">
544    
545     <delete dir="${build.jsr166x.dir}"/>
546     <delete dir="${build.jsr166xlib.dir}"/>
547    
548     </target>
549    
550    
551    
552     <target name="jsr166xdist-clean"
553     description="Removes all build and distribution products">
554    
555     </target>
556    
557    
558    
559     <target name="jsr166xdist-docs"
560     description="Builds javadocs without custom tags to dist folder">
561    
562     <delete dir="${dist.jsr166xjavadocs.dir}"/>
563     <mkdir dir="${dist.jsr166xjavadocs.dir}"/>
564    
565     <javadoc destdir="${dist.jsr166xjavadocs.dir}"
566 jsr166 1.85 packagenames="jsr166x"
567 jsr166 1.91 link="${jdkapidocs.url}"
568 jsr166 1.85 source="${build.sourcelevel}"
569 jsr166 1.89 sourcepath="${topsrc.dir}:${jdksrc.dir}"
570     additionalparam="-XDignore.symbol.file=true" />
571 dl 1.70
572     </target>
573    
574     <target name="jsr166xdist-jar"
575     depends="jsr166xclean, jsr166xjar">
576    
577     <copy file="${jsr166xproduct.jar}" todir="${dist.dir}"/>
578    
579     </target>
580    
581 dl 1.74 <!-- jsr166y -->
582    
583    
584     <target name="jsr166ycompile"
585     depends="init, configure-compiler"
586     description="Compiles jsr166y sources">
587    
588     <mkdir dir="${build.jsr166y.dir}"/>
589    
590     <javac srcdir="${jsr166ysrc.dir}"
591     destdir="${build.jsr166y.dir}"
592     debug="${build.debug}"
593     debuglevel="${build.debuglevel}"
594     deprecation="${build.deprecation}"
595     source="${build.sourcelevel}"
596     fork="true">
597    
598     <include name="**/*.java"/>
599     <compilerarg line="${build.args}"/>
600 dl 1.83 <compilerarg value="-XDignore.symbol.file=true"/>
601 dl 1.74 <compilerarg value="${bootclasspath.args}"/>
602    
603     <!-- <compilerarg line="-Xlint -Xmaxwarns 1000"/> -->
604    
605     </javac>
606    
607     </target>
608    
609    
610    
611     <target name="jsr166yjar"
612     depends="jsr166ycompile"
613     description="Builds library jar from compiled sources">
614    
615     <mkdir dir="${build.jsr166ylib.dir}"/>
616    
617 dl 1.76 <jar destfile="${jsr166yproduct.jar}" index="true">
618 dl 1.74 <fileset dir="${build.jsr166y.dir}"/>
619     </jar>
620    
621     </target>
622    
623    
624    
625     <target name="jsr166ydocs"
626     description="Builds javadocs with custom tags to build folder">
627    
628     <delete dir="${build.jsr166yjavadocs.dir}"/>
629     <mkdir dir="${build.jsr166yjavadocs.dir}"/>
630    
631     <javadoc destdir="${build.jsr166yjavadocs.dir}"
632 jsr166 1.85 packagenames="jsr166y"
633 jsr166 1.91 link="${jdkapidocs.url}"
634 jsr166 1.85 source="${build.sourcelevel}"
635 jsr166 1.89 sourcepath="${topsrc.dir}:${jdksrc.dir}"
636     additionalparam="-XDignore.symbol.file=true" />
637 dl 1.74
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 jsr166 1.85 packagenames="jsr166y"
670 jsr166 1.91 link="${jdkapidocs.url}"
671 jsr166 1.85 source="${build.sourcelevel}"
672 jsr166 1.89 sourcepath="${topsrc.dir}:${jdksrc.dir}"
673     additionalparam="-XDignore.symbol.file=true" />
674 dl 1.74
675     </target>
676    
677     <target name="jsr166ydist-jar"
678     depends="jsr166yclean, jsr166yjar">
679    
680     <copy file="${jsr166yproduct.jar}" todir="${dist.dir}"/>
681    
682     </target>
683    
684 dl 1.90
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 jsr166 1.85 packagenames="extra166y"
738 jsr166 1.91 link="${jdkapidocs.url}"
739 jsr166 1.85 source="${build.sourcelevel}"
740 jsr166 1.89 sourcepath="${topsrc.dir}:${jdksrc.dir}"
741     additionalparam="-XDignore.symbol.file=true" />
742 dl 1.76
743     </target>
744    
745    
746     <target name="extra166ydist"
747     depends="extra166ydist-clean, extra166ydist-jar, extra166ydist-docs"
748     description="Puts all distributable products in single hierarchy"/>
749    
750    
751    
752     <target name="extra166yclean"
753     description="Removes all build products">
754    
755     <delete dir="${build.extra166y.dir}"/>
756     <delete dir="${build.extra166ylib.dir}"/>
757    
758     </target>
759    
760    
761    
762     <target name="extra166ydist-clean"
763     description="Removes all build and distribution products">
764    
765     </target>
766    
767     <target name="extra166ydist-docs"
768     description="Builds javadocs without custom tags to dist folder">
769    
770     <delete dir="${dist.extra166yjavadocs.dir}"/>
771     <mkdir dir="${dist.extra166yjavadocs.dir}"/>
772    
773     <javadoc destdir="${dist.extra166yjavadocs.dir}"
774 jsr166 1.85 packagenames="extra166y"
775 jsr166 1.91 link="${jdkapidocs.url}"
776 jsr166 1.85 source="${build.sourcelevel}"
777 jsr166 1.89 sourcepath="${topsrc.dir}:${jdksrc.dir}"
778     additionalparam="-XDignore.symbol.file=true" />
779 dl 1.76
780     </target>
781    
782     <target name="extra166ydist-jar"
783     depends="extra166yclean, extra166yjar">
784    
785     <copy file="${extra166yproduct.jar}" todir="${dist.dir}"/>
786    
787     </target>
788    
789 dl 1.90 <!-- jsr166e -->
790    
791    
792     <target name="jsr166ecompile"
793     depends="init, configure-compiler"
794     description="Compiles jsr166e sources">
795    
796     <mkdir dir="${build.jsr166e.dir}"/>
797    
798     <javac srcdir="${jsr166esrc.dir}"
799     destdir="${build.jsr166e.dir}"
800     debug="${build.debug}"
801     debuglevel="${build.debuglevel}"
802     deprecation="${build.deprecation}"
803     source="1.7"
804     fork="true">
805    
806     <include name="**/*.java"/>
807     <compilerarg line="${build.args}"/>
808     <compilerarg value="-XDignore.symbol.file=true"/>
809     <compilerarg value="${bootclasspath.args}"/>
810    
811     <!-- <compilerarg line="-Xlint -Xmaxwarns 1000"/> -->
812    
813     </javac>
814    
815     </target>
816    
817    
818    
819     <target name="jsr166ejar"
820     depends="jsr166ecompile"
821     description="Builds library jar from compiled sources">
822    
823     <mkdir dir="${build.jsr166elib.dir}"/>
824    
825     <jar destfile="${jsr166eproduct.jar}" index="true">
826     <fileset dir="${build.jsr166e.dir}"/>
827     </jar>
828    
829     </target>
830    
831    
832    
833     <target name="jsr166edocs"
834     description="Builds javadocs with custom tags to build folder">
835    
836     <delete dir="${build.jsr166ejavadocs.dir}"/>
837     <mkdir dir="${build.jsr166ejavadocs.dir}"/>
838    
839     <javadoc destdir="${build.jsr166ejavadocs.dir}"
840     packagenames="jsr166e,jsr166e.extra"
841 jsr166 1.91 link="${jdkapidocs.url}"
842 dl 1.90 source="1.7"
843     sourcepath="${topsrc.dir}:${jdksrc.dir}"
844     additionalparam="-XDignore.symbol.file=true" />
845    
846     </target>
847    
848    
849     <target name="jsr166edist"
850     depends="jsr166edist-clean, jsr166edist-jar, jsr166edist-docs"
851     description="Puts all distributable products in single hierarchy"/>
852    
853    
854    
855     <target name="jsr166eclean"
856     description="Removes all build products">
857    
858     <delete dir="${build.jsr166e.dir}"/>
859     <delete dir="${build.jsr166elib.dir}"/>
860    
861     </target>
862    
863    
864    
865     <target name="jsr166edist-clean"
866     description="Removes all build and distribution products">
867    
868     </target>
869    
870     <target name="jsr166edist-docs"
871     description="Builds javadocs without custom tags to dist folder">
872    
873     <delete dir="${dist.jsr166ejavadocs.dir}"/>
874     <mkdir dir="${dist.jsr166ejavadocs.dir}"/>
875    
876     <javadoc destdir="${dist.jsr166ejavadocs.dir}"
877     packagenames="jsr166e,jsr166e.extra"
878 jsr166 1.91 link="${jdkapidocs.url}"
879 dl 1.90 source="1.7"
880     sourcepath="${topsrc.dir}:${jdksrc.dir}"
881     additionalparam="-XDignore.symbol.file=true" />
882    
883     </target>
884    
885     <target name="jsr166edist-jar"
886     depends="jsr166eclean, jsr166ejar">
887    
888     <copy file="${jsr166eproduct.jar}" todir="${dist.dir}"/>
889    
890     </target>
891    
892 tim 1.1 </project>

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