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

Annotation of /jsr166/build.xml

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.89 - (hide annotations)
Fri Jun 10 18:07:30 2011 UTC (8 years, 4 months ago) by jsr166
Branch: MAIN
Changes since 1.88: +16 -8 lines
File MIME type: text/xml
pass -XDignore.symbol.file to javadoc invocations

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 jsr166 1.88 <!-- the packagenames="none" hack below prevents scanning the -->
152     <!-- sourcepath for packages -->
153    
154 tim 1.59 <javadoc destdir="${build.javadocs.dir}"
155 jsr166 1.88 packagenames="none"
156     link="http://download.oracle.com/javase/7/docs/api/"
157     overview="${src.dir}/intro.html"
158 jsr166 1.89 sourcepath="${src.dir}:${jdksrc.dir}"
159     additionalparam="-XDignore.symbol.file=true" >
160 jsr166 1.88 <fileset dir="${src.dir}" defaultexcludes="yes">
161     <include name="**/*.java"/>
162     </fileset>
163 tim 1.59 </javadoc>
164    
165     </target>
166    
167    
168    
169 tim 1.28 <target name="dist"
170     depends="init, dist-clean, dist-jar, dist-docs"
171 tim 1.16 description="Puts all distributable products in single hierarchy"/>
172 tim 1.1
173 tim 1.58
174 tim 1.42 <target name="release"
175     depends="dist"
176     description="Puts entire CVS tree, plus distribution productions, in a jar">
177    
178     <property name="release.jar" value="dist/jsr166-${version}-dist.jar"/>
179    
180     <jar basedir="${basedir}" destfile="${release.jar}">
181 tim 1.58 <!-- <exclude name="build/**"/> -->
182 tim 1.42 <exclude name="${release.jar}"/>
183     <exclude name="user.properties"/>
184     <exclude name="etc/notes/**"/>
185 tim 1.58 <exclude name="src/emulation/**"/>
186 tim 1.44 <exclude name="**/SyntaxTest.java"/>
187 tim 1.58 <exclude name="**/SuperfluousAbstract.java"/>
188 tim 1.42 </jar>
189    
190     </target>
191 tim 1.1
192 tim 1.59
193    
194 tim 1.11 <target name="clean"
195     description="Removes all build products">
196 tim 1.27
197 tim 1.11 <delete dir="${build.dir}"/>
198     <delete dir="${build.classes.dir}"/>
199     <delete dir="${build.lib.dir}"/>
200 tim 1.27
201 tim 1.1 </target>
202    
203    
204 tim 1.59
205 tim 1.11 <target name="dist-clean"
206     description="Removes all build and distribution products">
207 tim 1.27
208 tim 1.11 <delete dir="${dist.dir}"/>
209 tim 1.27
210 tim 1.9 </target>
211 tim 1.10
212    
213 tim 1.59
214 tim 1.28 <target name="dist-docs"
215     description="Builds javadocs without custom tags to dist folder">
216    
217     <delete dir="${dist.javadocs.dir}"/>
218     <mkdir dir="${dist.javadocs.dir}"/>
219    
220 jsr166 1.86 <!-- the packagenames="none" hack below prevents scanning the -->
221     <!-- sourcepath for packages -->
222    
223 tim 1.28 <javadoc destdir="${dist.javadocs.dir}"
224 jsr166 1.86 packagenames="none"
225 jsr166 1.87 link="http://download.oracle.com/javase/7/docs/api/"
226 jsr166 1.86 overview="${src.dir}/intro.html"
227 jsr166 1.89 sourcepath="${src.dir}:${jdksrc.dir}"
228     additionalparam="-XDignore.symbol.file=true" >
229 jsr166 1.86 <fileset dir="${src.dir}" defaultexcludes="yes">
230     <include name="**/*.java"/>
231 dl 1.72 </fileset>
232 tim 1.28 </javadoc>
233 tim 1.14
234     </target>
235    
236    
237 tim 1.28
238 tim 1.11 <!-- Internal targets -->
239 tim 1.9
240 tim 1.16
241 tim 1.32 <target name="init">
242 tim 1.27
243 tim 1.11 <!-- Version is kept in a separate file -->
244     <loadfile property="version" srcFile="version.properties"/>
245     <echo>Building JSR-166 version ${version}</echo>
246 tim 1.54 <echo>java.home is ${java.home}</echo>
247 tim 1.27
248     </target>
249 jsr166 1.65
250    
251 tim 1.28 <target name="dist-jar"
252     depends="clean, jar">
253 tim 1.27
254 tim 1.11 <copy file="${product.jar}" todir="${dist.dir}"/>
255 tim 1.27
256 tim 1.11 </target>
257    
258    
259 tim 1.28 <target name="compile-tests"
260     depends="jar">
261 tim 1.27
262 tim 1.1 <mkdir dir="${build.testcases.dir}"/>
263 tim 1.37
264 tim 1.60 <javac srcdir="${tck.src.dir}"
265     destdir="${build.testcases.dir}"
266     debug="${build.debug}"
267     debuglevel="${build.debuglevel}"
268     deprecation="${build.deprecation}"
269     source="${build.sourcelevel}"
270     fork="true">
271    
272     <compilerarg value="${bootclasspath.args}"/>
273     <compilerarg line="${build.args}"/>
274 dl 1.84 <compilerarg value="-XDignore.symbol.file=true"/>
275 jsr166 1.65
276 tim 1.60 <classpath refid="test.classpath"/>
277    
278     </javac>
279    
280     <javac srcdir="${test.src.dir}"
281 tim 1.1 destdir="${build.testcases.dir}"
282     debug="${build.debug}"
283     debuglevel="${build.debuglevel}"
284     deprecation="${build.deprecation}"
285     source="${build.sourcelevel}"
286     fork="true">
287    
288 tim 1.60 <include name="jsr166/test/**"/>
289 jsr166 1.65
290 tim 1.59 <compilerarg value="${bootclasspath.args}"/>
291 tim 1.57 <compilerarg line="${build.args}"/>
292 dl 1.84 <compilerarg value="-XDignore.symbol.file=true"/>
293 jsr166 1.65
294 tim 1.57 <classpath refid="test.classpath"/>
295 tim 1.1
296     </javac>
297 tim 1.27
298 tim 1.62 <!--
299     <javac srcdir="${jtreg.src.dir}"
300     destdir="${build.testcases.dir}"
301     debug="${build.debug}"
302     debuglevel="${build.debuglevel}"
303     deprecation="${build.deprecation}"
304     source="${build.sourcelevel}"
305     fork="true">
306    
307     <compilerarg value="${bootclasspath.args}"/>
308     <compilerarg line="${build.args}"/>
309 dl 1.84 <compilerarg value="-XDignore.symbol.file=true"/>
310 jsr166 1.65
311 tim 1.62 <classpath refid="test.classpath"/>
312    
313     </javac>
314     -->
315    
316 tim 1.1 </target>
317 tim 1.11
318 tim 1.1
319 tim 1.28 <target name="run-tests"
320     depends="compile-tests">
321 tim 1.27
322     <!-- May be overridden by user.properties -->
323     <property name="testcase" value="*"/>
324    
325 tim 1.1 <mkdir dir="${build.reports.dir}"/>
326 tim 1.27
327 tim 1.1 <junit printsummary="true"
328     showoutput="true"
329     errorProperty="junit.failed"
330     failureProperty="junit.failed"
331 tim 1.12 dir="${build.reports.dir}"
332     fork="true">
333    
334 tim 1.59 <jvmarg value="${bootclasspath.args}"/>
335 tim 1.64 <jvmarg value="-server"/>
336     <jvmarg value="-showversion"/>
337 jsr166 1.65
338 tim 1.59 <classpath refid="test.classpath"/>
339 tim 1.1
340     <formatter type="xml"/>
341    
342 tim 1.62 <batchtest todir="${build.reports.dir}" unless="no.test.tck">
343 tim 1.60 <fileset dir="${tck.src.dir}">
344     <include name="**/${testcase}Test.java"/>
345     </fileset>
346 tim 1.62 </batchtest>
347 jsr166 1.65
348 tim 1.62 <batchtest todir="${build.reports.dir}" if="do.test.old">
349 tim 1.60 <fileset dir="${test.src.dir}">
350     <include name="jsr166/test/**/${testcase}Test.java"/>
351 tim 1.1 </fileset>
352     </batchtest>
353 tim 1.62
354 jsr166 1.65 <!--
355 tim 1.62 <batchtest todir="${build.reports.dir}" if="do.test.jtreg">
356     <fileset dir="${jtreg.src.dir}">
357     <include name="**/${testcase}Test.java"/>
358     </fileset>
359     </batchtest>
360     -->
361 tim 1.1
362     </junit>
363 tim 1.27
364 tim 1.1 </target>
365    
366    
367 tim 1.28 <target name="report-tests"
368     depends="run-tests">
369    
370 tim 1.54 <!-- Sets junit.report.format to frames if redirection is present,
371 tim 1.1 otherwise sets it to noframes. -->
372     <available property="junit.report.format"
373     value="frames"
374     classname="org.apache.xalan.lib.Redirect"
375     />
376     <property name="junit.report.format" value="noframes"/>
377    
378     <junitreport todir="${build.reports.dir}">
379     <fileset dir="${build.reports.dir}">
380     <include name="TEST-*.xml"/>
381     </fileset>
382 jsr166 1.75 <report format="${junit.report.format}" todir="${build.reports.dir}"
383 tim 1.1 />
384     </junitreport>
385    
386     <fail message="Test Cases Failed" if="junit.failed"/>
387 tim 1.28
388 tim 1.18 </target>
389    
390    
391 tim 1.32 <target name="configure-compiler">
392 tim 1.54
393     <property name="unchecked.option" value="-Xlint:unchecked"/>
394    
395     <condition property="warnunchecked.arg" value="${unchecked.option}">
396 tim 1.57 <istrue value="${build.warnunchecked}"/>
397 tim 1.32 </condition>
398    
399 tim 1.37 <property name="warnunchecked.arg" value=""/>
400 tim 1.34
401 tim 1.32
402     <!-- Common options in javac invocations -->
403 tim 1.57 <property name="build.args" value="${warnunchecked.arg}"/>
404 tim 1.33
405     </target>
406    
407    
408 tim 1.37 <target name="configure-tests"
409     depends="configure-compiler">
410 tim 1.28
411     <!-- junit.framework.Protectable is in JUnit 3.8.1 but not in 3.7 -->
412 tim 1.18 <available property="junit.available"
413 tim 1.28 classname="junit.framework.Protectable"/>
414    
415 tim 1.54 <!-- Xalan -->
416     <available property="xalan.available"
417     classname="org.apache.xalan.Version"/>
418    
419 jsr166 1.65
420 tim 1.59 <!-- Ant 1.6beta and later don't need or want this check -->
421 jsr166 1.65 <!--
422 tim 1.59 <fail message="Need JUnit 3.8.1 in ${ant.home}${file.separator}lib to run tests"
423     unless="junit.available"/>
424    
425 tim 1.54 <fail message="Need Xalan 2.5.1 jar in ${ant.home}${file.separator}lib to run tests"
426     unless="xalan.available"/>
427 tim 1.59 -->
428 tim 1.30
429 tim 1.28 </target>
430    
431    
432 jsr166 1.65 <!-- Various demos and test programs -->
433    
434    
435     <target name="loops" depends="init, configure-compiler"
436     description="Benchmark from Doug Lea's AQS paper">
437    
438     <mkdir dir="${build.loops.dir}"/>
439    
440     <javac srcdir="${loops.src.dir}"
441     destdir="${build.loops.dir}"
442     debug="${build.debug}"
443     debuglevel="${build.debuglevel}"
444     deprecation="${build.deprecation}"
445     source="${build.sourcelevel}"
446     fork="true">
447    
448     <compilerarg line="${build.args}"/>
449     <classpath refid="loops.classpath"/>
450 dl 1.84 <compilerarg value="-XDignore.symbol.file=true"/>
451 jsr166 1.65
452     </javac>
453    
454     <java classname="ALoops" fork="true">
455     <classpath refid="loops.classpath"/>
456     </java>
457    
458     </target>
459    
460    
461 dl 1.70 <!-- jsr166x -->
462    
463    
464     <target name="jsr166xcompile"
465     depends="init, configure-compiler"
466     description="Compiles jsr166x sources">
467    
468     <mkdir dir="${build.jsr166x.dir}"/>
469    
470     <javac srcdir="${jsr166xsrc.dir}"
471     destdir="${build.jsr166x.dir}"
472     debug="${build.debug}"
473     debuglevel="${build.debuglevel}"
474     deprecation="${build.deprecation}"
475     source="${build.sourcelevel}"
476     fork="true">
477    
478     <include name="**/*.java"/>
479     <compilerarg line="${build.args}"/>
480 dl 1.84 <compilerarg value="-XDignore.symbol.file=true"/>
481 dl 1.70
482     </javac>
483    
484     </target>
485    
486    
487    
488     <target name="jsr166xjar"
489     depends="jsr166xcompile"
490     description="Builds library jar from compiled sources">
491    
492     <mkdir dir="${build.jsr166xlib.dir}"/>
493    
494     <jar destfile="${jsr166xproduct.jar}">
495     <fileset dir="${build.jsr166x.dir}"/>
496     </jar>
497    
498     </target>
499    
500    
501    
502     <target name="jsr166xdocs"
503     description="Builds javadocs with custom tags to build folder">
504    
505     <delete dir="${build.jsr166xjavadocs.dir}"/>
506     <mkdir dir="${build.jsr166xjavadocs.dir}"/>
507    
508     <javadoc destdir="${build.jsr166xjavadocs.dir}"
509 jsr166 1.85 packagenames="jsr166x"
510 jsr166 1.87 link="http://download.oracle.com/javase/7/docs/api/"
511 jsr166 1.85 source="${build.sourcelevel}"
512 jsr166 1.89 sourcepath="${topsrc.dir}:${jdksrc.dir}"
513     additionalparam="-XDignore.symbol.file=true" />
514 dl 1.70
515     </target>
516    
517    
518     <target name="jsr166xdist"
519     depends="jsr166xdist-clean, jsr166xdist-jar, jsr166xdist-docs"
520     description="Puts all distributable products in single hierarchy"/>
521    
522    
523    
524     <target name="jsr166xclean"
525     description="Removes all build products">
526    
527     <delete dir="${build.jsr166x.dir}"/>
528     <delete dir="${build.jsr166xlib.dir}"/>
529    
530     </target>
531    
532    
533    
534     <target name="jsr166xdist-clean"
535     description="Removes all build and distribution products">
536    
537     </target>
538    
539    
540    
541     <target name="jsr166xdist-docs"
542     description="Builds javadocs without custom tags to dist folder">
543    
544     <delete dir="${dist.jsr166xjavadocs.dir}"/>
545     <mkdir dir="${dist.jsr166xjavadocs.dir}"/>
546    
547     <javadoc destdir="${dist.jsr166xjavadocs.dir}"
548 jsr166 1.85 packagenames="jsr166x"
549 jsr166 1.87 link="http://download.oracle.com/javase/7/docs/api/"
550 jsr166 1.85 source="${build.sourcelevel}"
551 jsr166 1.89 sourcepath="${topsrc.dir}:${jdksrc.dir}"
552     additionalparam="-XDignore.symbol.file=true" />
553 dl 1.70
554     </target>
555    
556     <target name="jsr166xdist-jar"
557     depends="jsr166xclean, jsr166xjar">
558    
559     <copy file="${jsr166xproduct.jar}" todir="${dist.dir}"/>
560    
561     </target>
562    
563 dl 1.74 <!-- jsr166y -->
564    
565    
566     <target name="jsr166ycompile"
567     depends="init, configure-compiler"
568     description="Compiles jsr166y sources">
569    
570     <mkdir dir="${build.jsr166y.dir}"/>
571    
572     <javac srcdir="${jsr166ysrc.dir}"
573     destdir="${build.jsr166y.dir}"
574     debug="${build.debug}"
575     debuglevel="${build.debuglevel}"
576     deprecation="${build.deprecation}"
577     source="${build.sourcelevel}"
578     fork="true">
579    
580     <include name="**/*.java"/>
581     <compilerarg line="${build.args}"/>
582 dl 1.83 <compilerarg value="-XDignore.symbol.file=true"/>
583 dl 1.74 <compilerarg value="${bootclasspath.args}"/>
584    
585     <!-- <compilerarg line="-Xlint -Xmaxwarns 1000"/> -->
586    
587     </javac>
588    
589     </target>
590    
591    
592    
593     <target name="jsr166yjar"
594     depends="jsr166ycompile"
595     description="Builds library jar from compiled sources">
596    
597     <mkdir dir="${build.jsr166ylib.dir}"/>
598    
599 dl 1.76 <jar destfile="${jsr166yproduct.jar}" index="true">
600 dl 1.74 <fileset dir="${build.jsr166y.dir}"/>
601     </jar>
602    
603     </target>
604    
605    
606    
607     <target name="jsr166ydocs"
608     description="Builds javadocs with custom tags to build folder">
609    
610     <delete dir="${build.jsr166yjavadocs.dir}"/>
611     <mkdir dir="${build.jsr166yjavadocs.dir}"/>
612    
613     <javadoc destdir="${build.jsr166yjavadocs.dir}"
614 jsr166 1.85 packagenames="jsr166y"
615 jsr166 1.87 link="http://download.oracle.com/javase/7/docs/api/"
616 jsr166 1.85 source="${build.sourcelevel}"
617 jsr166 1.89 sourcepath="${topsrc.dir}:${jdksrc.dir}"
618     additionalparam="-XDignore.symbol.file=true" />
619 dl 1.74
620     </target>
621    
622    
623     <target name="jsr166ydist"
624     depends="jsr166ydist-clean, jsr166ydist-jar, jsr166ydist-docs"
625     description="Puts all distributable products in single hierarchy"/>
626    
627    
628    
629     <target name="jsr166yclean"
630     description="Removes all build products">
631    
632     <delete dir="${build.jsr166y.dir}"/>
633     <delete dir="${build.jsr166ylib.dir}"/>
634    
635     </target>
636    
637    
638    
639     <target name="jsr166ydist-clean"
640     description="Removes all build and distribution products">
641    
642     </target>
643    
644     <target name="jsr166ydist-docs"
645     description="Builds javadocs without custom tags to dist folder">
646    
647     <delete dir="${dist.jsr166yjavadocs.dir}"/>
648     <mkdir dir="${dist.jsr166yjavadocs.dir}"/>
649    
650     <javadoc destdir="${dist.jsr166yjavadocs.dir}"
651 jsr166 1.85 packagenames="jsr166y"
652 jsr166 1.87 link="http://download.oracle.com/javase/7/docs/api/"
653 jsr166 1.85 source="${build.sourcelevel}"
654 jsr166 1.89 sourcepath="${topsrc.dir}:${jdksrc.dir}"
655     additionalparam="-XDignore.symbol.file=true" />
656 dl 1.74
657     </target>
658    
659     <target name="jsr166ydist-jar"
660     depends="jsr166yclean, jsr166yjar">
661    
662     <copy file="${jsr166yproduct.jar}" todir="${dist.dir}"/>
663    
664     </target>
665    
666 dl 1.76 <!-- extra166y -->
667    
668    
669     <target name="extra166ycompile"
670 dl 1.77 depends="init, configure-compiler, jsr166ycompile"
671 dl 1.76 description="Compiles extra166y sources">
672    
673     <mkdir dir="${build.extra166y.dir}"/>
674    
675     <javac srcdir="${extra166ysrc.dir}"
676     destdir="${build.extra166y.dir}"
677     debug="${build.debug}"
678 dl 1.77 classpath="${jsr166yproduct.jar}"
679 dl 1.76 debuglevel="${build.debuglevel}"
680     deprecation="${build.deprecation}"
681     source="${build.sourcelevel}"
682     fork="true">
683    
684     <include name="**/*.java"/>
685     <compilerarg line="${build.args}"/>
686 dl 1.83 <compilerarg value="-XDignore.symbol.file=true"/>
687 dl 1.76 <compilerarg value="${bootclasspath.args}"/>
688    
689     <!-- <compilerarg line="-Xlint -Xmaxwarns 1000"/> -->
690    
691     </javac>
692    
693     </target>
694    
695    
696    
697     <target name="extra166yjar"
698     depends="extra166ycompile"
699     description="Builds library jar from compiled sources">
700    
701     <mkdir dir="${build.extra166ylib.dir}"/>
702    
703     <jar destfile="${extra166yproduct.jar}" index="true">
704     <fileset dir="${build.extra166y.dir}"/>
705     </jar>
706    
707     </target>
708    
709    
710    
711     <target name="extra166ydocs"
712     description="Builds javadocs with custom tags to build folder">
713    
714     <delete dir="${build.extra166yjavadocs.dir}"/>
715     <mkdir dir="${build.extra166yjavadocs.dir}"/>
716    
717     <javadoc destdir="${build.extra166yjavadocs.dir}"
718 jsr166 1.85 packagenames="extra166y"
719 jsr166 1.87 link="http://download.oracle.com/javase/7/docs/api/"
720 jsr166 1.85 source="${build.sourcelevel}"
721 jsr166 1.89 sourcepath="${topsrc.dir}:${jdksrc.dir}"
722     additionalparam="-XDignore.symbol.file=true" />
723 dl 1.76
724     </target>
725    
726    
727     <target name="extra166ydist"
728     depends="extra166ydist-clean, extra166ydist-jar, extra166ydist-docs"
729     description="Puts all distributable products in single hierarchy"/>
730    
731    
732    
733     <target name="extra166yclean"
734     description="Removes all build products">
735    
736     <delete dir="${build.extra166y.dir}"/>
737     <delete dir="${build.extra166ylib.dir}"/>
738    
739     </target>
740    
741    
742    
743     <target name="extra166ydist-clean"
744     description="Removes all build and distribution products">
745    
746     </target>
747    
748     <target name="extra166ydist-docs"
749     description="Builds javadocs without custom tags to dist folder">
750    
751     <delete dir="${dist.extra166yjavadocs.dir}"/>
752     <mkdir dir="${dist.extra166yjavadocs.dir}"/>
753    
754     <javadoc destdir="${dist.extra166yjavadocs.dir}"
755 jsr166 1.85 packagenames="extra166y"
756 jsr166 1.87 link="http://download.oracle.com/javase/7/docs/api/"
757 jsr166 1.85 source="${build.sourcelevel}"
758 jsr166 1.89 sourcepath="${topsrc.dir}:${jdksrc.dir}"
759     additionalparam="-XDignore.symbol.file=true" />
760 dl 1.76
761     </target>
762    
763     <target name="extra166ydist-jar"
764     depends="extra166yclean, extra166yjar">
765    
766     <copy file="${extra166yproduct.jar}" todir="${dist.dir}"/>
767    
768     </target>
769    
770 tim 1.1 </project>

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