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

Annotation of /jsr166/build.xml

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.88 - (hide annotations)
Sun May 29 16:00:20 2011 UTC (8 years, 2 months ago) by jsr166
Branch: MAIN
Changes since 1.87: +10 -7 lines
File MIME type: text/xml
improve the docs target

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

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