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

Annotation of /jsr166/build.xml

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.95 - (hide annotations)
Mon Jan 14 19:22:27 2013 UTC (6 years, 9 months ago) by jsr166
Branch: MAIN
Changes since 1.94: +2 -3 lines
File MIME type: text/xml
permit incremental compilation of jsr166e

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 jsr166 1.92
38     <property name="build.jdk7.dir" location="${build.dir}/jdk7"/>
39     <property name="build.jdk7.lib.dir" location="${build.jdk7.dir}"/>
40     <property name="build.jdk7.classes.dir" location="${build.jdk7.dir}/classes"/>
41     <property name="build.jdk7.docs.dir" location="${build.jdk7.dir}/docs"/>
42    
43 jsr166 1.79 <property name="build.jsr166x.dir" location="${build.dir}/jsr166x"/>
44 dl 1.70 <property name="build.jsr166xlib.dir" location="${build.dir}/jsr166xlib"/>
45     <property name="build.jsr166xjavadocs.dir" location="${build.dir}/jsr166xjavadocs"/>
46 tim 1.1
47 jsr166 1.79 <property name="build.jsr166y.dir" location="${build.dir}/jsr166y"/>
48 dl 1.74 <property name="build.jsr166ylib.dir" location="${build.dir}/jsr166ylib"/>
49     <property name="build.jsr166yjavadocs.dir" location="${build.dir}/jsr166yjavadocs"/>
50    
51 dl 1.90 <property name="build.jsr166e.dir" location="${build.dir}/jsr166e"/>
52     <property name="build.jsr166elib.dir" location="${build.dir}/jsr166elib"/>
53     <property name="build.jsr166ejavadocs.dir" location="${build.dir}/jsr166ejavadocs"/>
54    
55 jsr166 1.79 <property name="build.extra166y.dir" location="${build.dir}/extra166y"/>
56     <property name="build.extra166ylib.dir" location="${build.dir}/extra166ylib"/>
57     <property name="build.extra166yjavadocs.dir" location="${build.dir}/extra166yjavadocs"/>
58 dl 1.76
59 jsr166 1.92 <!-- JDK binary locations -->
60     <property name="jdks.home" location="${user.home}/jdk"/>
61 jsr166 1.93
62     <macrodef name="defjdklocations">
63     <attribute name="v"/>
64     <sequential>
65     <property name="jdk@{v}.home" location="${jdks.home}/jdk@{v}"/>
66     <property name="javac@{v}" location="${jdk@{v}.home}/bin/javac"/>
67     <property name="javadoc@{v}" location="${jdk@{v}.home}/bin/javadoc"/>
68     <property name="bootdir@{v}" location="${jdk@{v}.home}/jre/lib"/>
69     <property name="bootclasspath@{v}"
70     value="${bootdir@{v}}/resources.jar:${bootdir@{v}}/rt.jar:${bootdir@{v}}/jsse.jar:${bootdir@{v}}/jce.jar:${bootdir@{v}}/:${bootdir@{v}}/charsets.jar"/>
71     </sequential>
72     </macrodef>
73    
74     <defjdklocations v="6"/>
75     <defjdklocations v="7"/>
76     <defjdklocations v="8"/>
77 jsr166 1.92
78 tim 1.1 <!-- Source locations -->
79 tim 1.22 <property name="src.dir" location="${basedir}/src/main"/>
80     <property name="test.src.dir" location="${basedir}/src/test"/>
81 jsr166 1.65 <property name="loops.src.dir" location="${basedir}/src/loops"/>
82 tim 1.60 <property name="tck.src.dir" location="${test.src.dir}/tck"/>
83 tim 1.62 <property name="jtreg.src.dir" location="${test.src.dir}/jtreg"/>
84 tim 1.1 <property name="lib.dir" location="${basedir}/lib"/>
85 tim 1.9 <property name="dist.dir" location="${basedir}/dist"/>
86 dl 1.70 <property name="topsrc.dir" location="${basedir}/src"/>
87 jsr166 1.92 <property name="jdk7src.dir" location="${topsrc.dir}/jdk7"/>
88     <property name="jsr166xsrc.dir" location="${topsrc.dir}/jsr166x"/>
89     <property name="jsr166ysrc.dir" location="${topsrc.dir}/jsr166y"/>
90     <property name="jsr166esrc.dir" location="${topsrc.dir}/jsr166e"/>
91     <property name="extra166ysrc.dir" location="${topsrc.dir}/extra166y"/>
92 dl 1.80 <property name="jdksrc.dir" location="/home/dl/1.6.0/j2se/martin/j2se/src/share/classes"/>
93 jsr166 1.91
94 tim 1.9 <!-- Distribution locations -->
95 jsr166 1.79 <property name="dist.javadocs.dir" location="${dist.dir}/docs"/>
96 jsr166 1.92 <property name="dist.jdk7.docs.dir" location="${dist.dir}/jsr166-jdk7docs"/>
97 dl 1.70 <property name="dist.jsr166xjavadocs.dir" location="${dist.dir}/jsr166xdocs"/>
98 dl 1.74 <property name="dist.jsr166yjavadocs.dir" location="${dist.dir}/jsr166ydocs"/>
99 dl 1.90 <property name="dist.jsr166ejavadocs.dir" location="${dist.dir}/jsr166edocs"/>
100 jsr166 1.79 <property name="dist.extra166yjavadocs.dir" location="${dist.dir}/extra166ydocs"/>
101 tim 1.1
102     <!-- Jar locations -->
103     <property name="product.jar" location="${build.lib.dir}/jsr166.jar"/>
104 jsr166 1.92 <property name="jdk7product.jar" location="${build.jdk7.lib.dir}/jsr166-jdk7.jar"/>
105 dl 1.70 <property name="jsr166xproduct.jar" location="${build.jsr166xlib.dir}/jsr166x.jar"/>
106 dl 1.74 <property name="jsr166yproduct.jar" location="${build.jsr166ylib.dir}/jsr166y.jar"/>
107 dl 1.90 <property name="jsr166eproduct.jar" location="${build.jsr166elib.dir}/jsr166e.jar"/>
108 jsr166 1.79 <property name="extra166yproduct.jar" location="${build.extra166ylib.dir}/extra166y.jar"/>
109 tim 1.1 <property name="junit.jar" location="${lib.dir}/junit.jar"/>
110 jsr166 1.65
111 tim 1.59 <!-- Bootclasspath argument -->
112     <property name="bootclasspath.args" value="-Xbootclasspath/p:${product.jar}"/>
113 tim 1.27
114 jsr166 1.91 <!-- Canonical location of jdk API docs, to use with javadoc link attribute -->
115     <property name="jdkapi5docs.url" value="http://docs.oracle.com/javase/1.5.0/docs/api/"/>
116     <property name="jdkapi6docs.url" value="http://docs.oracle.com/javase/6/docs/api/"/>
117     <property name="jdkapi7docs.url" value="http://docs.oracle.com/javase/7/docs/api/"/>
118    
119     <property name="jdkapi8docs.url" value="http://download.java.net/jdk8/docs/api/"/>
120     <!-- The below does not yet exist as of 2012-11 -->
121     <!-- <property name="jdkapi8docs.url" value="http://docs.oracle.com/javase/8/docs/api/"/> -->
122     <property name="jdkapidocs.url" value="${jdkapi7docs.url}"/>
123    
124 tim 1.59 <!-- Test classpath -->
125     <path id="test.classpath">
126     <pathelement location="${build.testcases.dir}"/>
127     <pathelement location="${junit.jar}"/>
128     </path>
129 tim 1.28
130 jsr166 1.65 <!-- ALoops classpath -->
131     <path id="loops.classpath">
132     <pathelement location="${build.loops.dir}"/>
133     </path>
134    
135 tim 1.28
136 tim 1.59 <!-- Main targets -->
137 tim 1.28
138 dl 1.80 <target name="dists"
139 dl 1.90 depends="dist, jsr166xdist, jsr166ydist,jsr166edist, extra166ydist"
140 dl 1.80 description="Builds all public jars and docs"/>
141 tim 1.11
142 tim 1.28 <target name="compile"
143 tim 1.60 depends="init, configure-compiler"
144 tim 1.27 description="Compiles main sources to build folder">
145    
146 tim 1.1 <mkdir dir="${build.classes.dir}"/>
147 tim 1.27
148 tim 1.60 <javac srcdir="${src.dir}"
149 tim 1.1 destdir="${build.classes.dir}"
150     debug="${build.debug}"
151     debuglevel="${build.debuglevel}"
152     deprecation="${build.deprecation}"
153     source="${build.sourcelevel}"
154     fork="true">
155    
156 jsr166 1.68 <include name="**/*.java"/>
157 dl 1.83 <compilerarg value="-XDignore.symbol.file=true"/>
158 dl 1.74
159 dl 1.72 <!--
160 jsr166 1.68 <exclude name="java/lang/**"/>
161 dl 1.73 <compilerarg line="${build.args}"/>
162     <compilerarg line="-Xlint -Xmaxwarns 1000"/>
163 dl 1.72 -->
164 tim 1.1
165     </javac>
166 tim 1.27
167 tim 1.1 </target>
168    
169    
170 tim 1.59
171 tim 1.28 <target name="jar"
172 tim 1.59 depends="compile"
173     description="Builds library jar from compiled sources">
174    
175     <mkdir dir="${build.lib.dir}"/>
176    
177     <jar destfile="${product.jar}">
178     <fileset dir="${build.classes.dir}"/>
179     </jar>
180    
181     </target>
182    
183 tim 1.1
184    
185 tim 1.28 <target name="test"
186 tim 1.32 depends="init, configure-tests, report-tests"
187 tim 1.29 description="Runs all tests (requires JUnit 3.8.1 in ${ant.home}/lib)" />
188 tim 1.1
189    
190 tim 1.59
191     <target name="docs"
192     description="Builds javadocs with custom tags to build folder">
193    
194     <delete dir="${build.javadocs.dir}"/>
195     <mkdir dir="${build.javadocs.dir}"/>
196    
197 jsr166 1.88 <!-- the packagenames="none" hack below prevents scanning the -->
198     <!-- sourcepath for packages -->
199    
200 tim 1.59 <javadoc destdir="${build.javadocs.dir}"
201 jsr166 1.88 packagenames="none"
202 jsr166 1.91 link="${jdkapidocs.url}"
203 jsr166 1.88 overview="${src.dir}/intro.html"
204 jsr166 1.89 sourcepath="${src.dir}:${jdksrc.dir}"
205     additionalparam="-XDignore.symbol.file=true" >
206 jsr166 1.88 <fileset dir="${src.dir}" defaultexcludes="yes">
207 jsr166 1.92 <include name="**/*.java"/>
208 jsr166 1.88 </fileset>
209 tim 1.59 </javadoc>
210    
211     </target>
212    
213    
214    
215 tim 1.28 <target name="dist"
216     depends="init, dist-clean, dist-jar, dist-docs"
217 tim 1.16 description="Puts all distributable products in single hierarchy"/>
218 tim 1.1
219 tim 1.58
220 tim 1.42 <target name="release"
221     depends="dist"
222     description="Puts entire CVS tree, plus distribution productions, in a jar">
223    
224     <property name="release.jar" value="dist/jsr166-${version}-dist.jar"/>
225    
226     <jar basedir="${basedir}" destfile="${release.jar}">
227 tim 1.58 <!-- <exclude name="build/**"/> -->
228 tim 1.42 <exclude name="${release.jar}"/>
229     <exclude name="user.properties"/>
230     <exclude name="etc/notes/**"/>
231 tim 1.58 <exclude name="src/emulation/**"/>
232 tim 1.44 <exclude name="**/SyntaxTest.java"/>
233 tim 1.58 <exclude name="**/SuperfluousAbstract.java"/>
234 tim 1.42 </jar>
235    
236     </target>
237 tim 1.1
238 tim 1.59
239    
240 tim 1.11 <target name="clean"
241     description="Removes all build products">
242 tim 1.27
243 tim 1.11 <delete dir="${build.dir}"/>
244     <delete dir="${build.classes.dir}"/>
245     <delete dir="${build.lib.dir}"/>
246 tim 1.27
247 tim 1.1 </target>
248    
249    
250 tim 1.59
251 tim 1.11 <target name="dist-clean"
252     description="Removes all build and distribution products">
253 tim 1.27
254 tim 1.11 <delete dir="${dist.dir}"/>
255 tim 1.27
256 tim 1.9 </target>
257 tim 1.10
258    
259 tim 1.59
260 tim 1.28 <target name="dist-docs"
261     description="Builds javadocs without custom tags to dist folder">
262    
263     <delete dir="${dist.javadocs.dir}"/>
264     <mkdir dir="${dist.javadocs.dir}"/>
265    
266 jsr166 1.86 <!-- the packagenames="none" hack below prevents scanning the -->
267     <!-- sourcepath for packages -->
268    
269 tim 1.28 <javadoc destdir="${dist.javadocs.dir}"
270 jsr166 1.86 packagenames="none"
271 jsr166 1.91 link="${jdkapidocs.url}"
272 jsr166 1.86 overview="${src.dir}/intro.html"
273 jsr166 1.89 sourcepath="${src.dir}:${jdksrc.dir}"
274     additionalparam="-XDignore.symbol.file=true" >
275 jsr166 1.86 <fileset dir="${src.dir}" defaultexcludes="yes">
276 jsr166 1.92 <include name="**/*.java"/>
277 dl 1.72 </fileset>
278 tim 1.28 </javadoc>
279 tim 1.14
280     </target>
281    
282    
283 tim 1.28
284 tim 1.11 <!-- Internal targets -->
285 tim 1.9
286 tim 1.16
287 tim 1.32 <target name="init">
288 tim 1.27
289 tim 1.11 <!-- Version is kept in a separate file -->
290     <loadfile property="version" srcFile="version.properties"/>
291     <echo>Building JSR-166 version ${version}</echo>
292 tim 1.54 <echo>java.home is ${java.home}</echo>
293 tim 1.27
294     </target>
295 jsr166 1.65
296    
297 tim 1.28 <target name="dist-jar"
298     depends="clean, jar">
299 tim 1.27
300 tim 1.11 <copy file="${product.jar}" todir="${dist.dir}"/>
301 tim 1.27
302 tim 1.11 </target>
303    
304    
305 tim 1.28 <target name="compile-tests"
306     depends="jar">
307 tim 1.27
308 tim 1.1 <mkdir dir="${build.testcases.dir}"/>
309 tim 1.37
310 tim 1.60 <javac srcdir="${tck.src.dir}"
311     destdir="${build.testcases.dir}"
312     debug="${build.debug}"
313     debuglevel="${build.debuglevel}"
314     deprecation="${build.deprecation}"
315     source="${build.sourcelevel}"
316     fork="true">
317    
318     <compilerarg value="${bootclasspath.args}"/>
319     <compilerarg line="${build.args}"/>
320 dl 1.84 <compilerarg value="-XDignore.symbol.file=true"/>
321 jsr166 1.65
322 tim 1.60 <classpath refid="test.classpath"/>
323    
324     </javac>
325    
326     <javac srcdir="${test.src.dir}"
327 tim 1.1 destdir="${build.testcases.dir}"
328     debug="${build.debug}"
329     debuglevel="${build.debuglevel}"
330     deprecation="${build.deprecation}"
331     source="${build.sourcelevel}"
332     fork="true">
333    
334 tim 1.60 <include name="jsr166/test/**"/>
335 jsr166 1.65
336 tim 1.59 <compilerarg value="${bootclasspath.args}"/>
337 tim 1.57 <compilerarg line="${build.args}"/>
338 dl 1.84 <compilerarg value="-XDignore.symbol.file=true"/>
339 jsr166 1.65
340 tim 1.57 <classpath refid="test.classpath"/>
341 tim 1.1
342     </javac>
343 tim 1.27
344 tim 1.62 <!--
345     <javac srcdir="${jtreg.src.dir}"
346     destdir="${build.testcases.dir}"
347     debug="${build.debug}"
348     debuglevel="${build.debuglevel}"
349     deprecation="${build.deprecation}"
350     source="${build.sourcelevel}"
351     fork="true">
352    
353     <compilerarg value="${bootclasspath.args}"/>
354     <compilerarg line="${build.args}"/>
355 dl 1.84 <compilerarg value="-XDignore.symbol.file=true"/>
356 jsr166 1.65
357 tim 1.62 <classpath refid="test.classpath"/>
358    
359     </javac>
360     -->
361    
362 tim 1.1 </target>
363 tim 1.11
364 tim 1.1
365 tim 1.28 <target name="run-tests"
366     depends="compile-tests">
367 tim 1.27
368     <!-- May be overridden by user.properties -->
369     <property name="testcase" value="*"/>
370    
371 tim 1.1 <mkdir dir="${build.reports.dir}"/>
372 tim 1.27
373 tim 1.1 <junit printsummary="true"
374     showoutput="true"
375     errorProperty="junit.failed"
376     failureProperty="junit.failed"
377 tim 1.12 dir="${build.reports.dir}"
378     fork="true">
379    
380 tim 1.59 <jvmarg value="${bootclasspath.args}"/>
381 tim 1.64 <jvmarg value="-server"/>
382     <jvmarg value="-showversion"/>
383 jsr166 1.65
384 tim 1.59 <classpath refid="test.classpath"/>
385 tim 1.1
386     <formatter type="xml"/>
387    
388 tim 1.62 <batchtest todir="${build.reports.dir}" unless="no.test.tck">
389 tim 1.60 <fileset dir="${tck.src.dir}">
390     <include name="**/${testcase}Test.java"/>
391     </fileset>
392 tim 1.62 </batchtest>
393 jsr166 1.65
394 tim 1.62 <batchtest todir="${build.reports.dir}" if="do.test.old">
395 tim 1.60 <fileset dir="${test.src.dir}">
396     <include name="jsr166/test/**/${testcase}Test.java"/>
397 tim 1.1 </fileset>
398     </batchtest>
399 tim 1.62
400 jsr166 1.65 <!--
401 tim 1.62 <batchtest todir="${build.reports.dir}" if="do.test.jtreg">
402     <fileset dir="${jtreg.src.dir}">
403     <include name="**/${testcase}Test.java"/>
404     </fileset>
405     </batchtest>
406     -->
407 tim 1.1
408     </junit>
409 tim 1.27
410 tim 1.1 </target>
411    
412    
413 tim 1.28 <target name="report-tests"
414     depends="run-tests">
415    
416 tim 1.54 <!-- Sets junit.report.format to frames if redirection is present,
417 tim 1.1 otherwise sets it to noframes. -->
418     <available property="junit.report.format"
419     value="frames"
420     classname="org.apache.xalan.lib.Redirect"
421     />
422     <property name="junit.report.format" value="noframes"/>
423    
424     <junitreport todir="${build.reports.dir}">
425     <fileset dir="${build.reports.dir}">
426     <include name="TEST-*.xml"/>
427     </fileset>
428 jsr166 1.75 <report format="${junit.report.format}" todir="${build.reports.dir}"
429 tim 1.1 />
430     </junitreport>
431    
432     <fail message="Test Cases Failed" if="junit.failed"/>
433 tim 1.28
434 tim 1.18 </target>
435    
436    
437 tim 1.32 <target name="configure-compiler">
438 tim 1.54
439     <property name="unchecked.option" value="-Xlint:unchecked"/>
440    
441     <condition property="warnunchecked.arg" value="${unchecked.option}">
442 tim 1.57 <istrue value="${build.warnunchecked}"/>
443 tim 1.32 </condition>
444    
445 tim 1.37 <property name="warnunchecked.arg" value=""/>
446 tim 1.34
447 tim 1.32
448     <!-- Common options in javac invocations -->
449 tim 1.57 <property name="build.args" value="${warnunchecked.arg}"/>
450 tim 1.33
451     </target>
452    
453    
454 tim 1.37 <target name="configure-tests"
455     depends="configure-compiler">
456 tim 1.28
457     <!-- junit.framework.Protectable is in JUnit 3.8.1 but not in 3.7 -->
458 tim 1.18 <available property="junit.available"
459 tim 1.28 classname="junit.framework.Protectable"/>
460    
461 tim 1.54 <!-- Xalan -->
462     <available property="xalan.available"
463     classname="org.apache.xalan.Version"/>
464    
465 jsr166 1.65
466 tim 1.59 <!-- Ant 1.6beta and later don't need or want this check -->
467 jsr166 1.65 <!--
468 tim 1.59 <fail message="Need JUnit 3.8.1 in ${ant.home}${file.separator}lib to run tests"
469     unless="junit.available"/>
470    
471 tim 1.54 <fail message="Need Xalan 2.5.1 jar in ${ant.home}${file.separator}lib to run tests"
472     unless="xalan.available"/>
473 tim 1.59 -->
474 tim 1.30
475 tim 1.28 </target>
476    
477    
478 jsr166 1.65 <!-- Various demos and test programs -->
479    
480    
481     <target name="loops" depends="init, configure-compiler"
482     description="Benchmark from Doug Lea's AQS paper">
483    
484     <mkdir dir="${build.loops.dir}"/>
485    
486     <javac srcdir="${loops.src.dir}"
487     destdir="${build.loops.dir}"
488     debug="${build.debug}"
489     debuglevel="${build.debuglevel}"
490     deprecation="${build.deprecation}"
491     source="${build.sourcelevel}"
492     fork="true">
493    
494     <compilerarg line="${build.args}"/>
495     <classpath refid="loops.classpath"/>
496 dl 1.84 <compilerarg value="-XDignore.symbol.file=true"/>
497 jsr166 1.65
498     </javac>
499    
500     <java classname="ALoops" fork="true">
501     <classpath refid="loops.classpath"/>
502     </java>
503    
504     </target>
505    
506    
507 jsr166 1.92 <!-- jdk7 -->
508    
509    
510     <target name="jdk7compile"
511     depends="configure-compiler"
512     description="Compiles src/jdk7 sources">
513    
514     <mkdir dir="${build.jdk7.classes.dir}"/>
515    
516     <javac srcdir="${jdk7src.dir}"
517     destdir="${build.jdk7.classes.dir}"
518     debug="${build.debug}"
519     debuglevel="${build.debuglevel}"
520     deprecation="${build.deprecation}"
521     source="1.6"
522     classpath=""
523     bootclasspath="${bootclasspath6}"
524     includeAntRuntime="false"
525     includeJavaRuntime="false"
526     executable="${javac6}"
527     fork="true">
528    
529     <include name="**/*.java"/>
530     <compilerarg line="${build.args}"/>
531     <compilerarg value="-XDignore.symbol.file=true"/>
532     <compilerarg value="-Xlint:all"/>
533    
534     </javac>
535    
536     </target>
537    
538    
539    
540     <target name="jdk7jar"
541     depends="jdk7compile"
542     description="Builds library jar from compiled sources">
543    
544     <mkdir dir="${build.jdk7.lib.dir}"/>
545    
546     <jar destfile="${jdk7product.jar}" index="true">
547     <fileset dir="${build.jdk7.classes.dir}"/>
548     </jar>
549    
550     </target>
551    
552    
553    
554     <target name="jdk7docs"
555     description="Builds javadocs with custom tags to build folder">
556    
557     <delete dir="${build.jdk7.docs.dir}"/>
558     <mkdir dir="${build.jdk7.docs.dir}"/>
559    
560     <javadoc destdir="${build.jdk7.docs.dir}"
561     packagenames="none"
562     link="${jdkapi7docs.url}"
563     overview="${jdk7src.dir}/intro.html"
564     sourcepath="${jdk7src.dir}"
565     bootclasspath="${bootclasspath6}"
566     classpath=""
567     source="1.6"
568     executable="${javadoc7}"
569     additionalparam="-XDignore.symbol.file=true" >
570     <fileset dir="${jdk7src.dir}" defaultexcludes="yes">
571     <include name="**/*.java"/>
572     </fileset>
573     </javadoc>
574    
575     </target>
576    
577    
578     <target name="jdk7dist"
579     depends="jdk7dist-clean, jdk7dist-jar, jdk7dist-docs"
580     description="Puts all distributable products in single hierarchy"/>
581    
582    
583    
584     <target name="jdk7clean"
585     description="Removes all build products">
586    
587     <delete dir="${build.jdk7.dir}"/>
588    
589     </target>
590    
591    
592    
593     <target name="jdk7dist-clean"
594     description="Removes all build and distribution products">
595    
596     </target>
597    
598     <target name="jdk7dist-docs"
599     description="Builds javadocs without custom tags to dist folder">
600    
601     <delete dir="${dist.jdk7.docs.dir}"/>
602     <mkdir dir="${dist.jdk7.docs.dir}"/>
603    
604     <javadoc destdir="${dist.jdk7.docs.dir}"
605     packagenames="none"
606     link="${jdkapi7docs.url}"
607     overview="${jdk7src.dir}/intro.html"
608     sourcepath="${jdk7src.dir}"
609     classpath=""
610     executable="${javadoc7}"
611     bootclasspath="${bootclasspath6}"
612     source="1.6">
613     <arg value="-XDignore.symbol.file=true"/>
614     <fileset dir="${jdk7src.dir}" defaultexcludes="yes">
615     <include name="**/*.java"/>
616     </fileset>
617     </javadoc>
618    
619     </target>
620    
621     <target name="jdk7dist-jar"
622     depends="jdk7clean, jdk7jar">
623    
624     <copy file="${jdk7product.jar}" todir="${dist.dir}"/>
625    
626     </target>
627    
628 dl 1.70 <!-- jsr166x -->
629    
630    
631     <target name="jsr166xcompile"
632     depends="init, configure-compiler"
633     description="Compiles jsr166x sources">
634    
635     <mkdir dir="${build.jsr166x.dir}"/>
636    
637     <javac srcdir="${jsr166xsrc.dir}"
638     destdir="${build.jsr166x.dir}"
639     debug="${build.debug}"
640     debuglevel="${build.debuglevel}"
641     deprecation="${build.deprecation}"
642     source="${build.sourcelevel}"
643     fork="true">
644    
645     <include name="**/*.java"/>
646     <compilerarg line="${build.args}"/>
647 dl 1.84 <compilerarg value="-XDignore.symbol.file=true"/>
648 dl 1.70
649     </javac>
650    
651     </target>
652    
653    
654    
655     <target name="jsr166xjar"
656     depends="jsr166xcompile"
657     description="Builds library jar from compiled sources">
658    
659     <mkdir dir="${build.jsr166xlib.dir}"/>
660    
661     <jar destfile="${jsr166xproduct.jar}">
662     <fileset dir="${build.jsr166x.dir}"/>
663     </jar>
664    
665     </target>
666    
667    
668    
669     <target name="jsr166xdocs"
670     description="Builds javadocs with custom tags to build folder">
671    
672     <delete dir="${build.jsr166xjavadocs.dir}"/>
673     <mkdir dir="${build.jsr166xjavadocs.dir}"/>
674    
675     <javadoc destdir="${build.jsr166xjavadocs.dir}"
676 jsr166 1.85 packagenames="jsr166x"
677 jsr166 1.91 link="${jdkapidocs.url}"
678 jsr166 1.85 source="${build.sourcelevel}"
679 jsr166 1.89 sourcepath="${topsrc.dir}:${jdksrc.dir}"
680     additionalparam="-XDignore.symbol.file=true" />
681 dl 1.70
682     </target>
683    
684    
685     <target name="jsr166xdist"
686     depends="jsr166xdist-clean, jsr166xdist-jar, jsr166xdist-docs"
687     description="Puts all distributable products in single hierarchy"/>
688    
689    
690    
691     <target name="jsr166xclean"
692     description="Removes all build products">
693    
694     <delete dir="${build.jsr166x.dir}"/>
695     <delete dir="${build.jsr166xlib.dir}"/>
696    
697     </target>
698    
699    
700    
701     <target name="jsr166xdist-clean"
702     description="Removes all build and distribution products">
703    
704     </target>
705    
706    
707    
708     <target name="jsr166xdist-docs"
709     description="Builds javadocs without custom tags to dist folder">
710    
711     <delete dir="${dist.jsr166xjavadocs.dir}"/>
712     <mkdir dir="${dist.jsr166xjavadocs.dir}"/>
713    
714     <javadoc destdir="${dist.jsr166xjavadocs.dir}"
715 jsr166 1.85 packagenames="jsr166x"
716 jsr166 1.91 link="${jdkapidocs.url}"
717 jsr166 1.85 source="${build.sourcelevel}"
718 jsr166 1.89 sourcepath="${topsrc.dir}:${jdksrc.dir}"
719     additionalparam="-XDignore.symbol.file=true" />
720 dl 1.70
721     </target>
722    
723     <target name="jsr166xdist-jar"
724     depends="jsr166xclean, jsr166xjar">
725    
726     <copy file="${jsr166xproduct.jar}" todir="${dist.dir}"/>
727    
728     </target>
729    
730 dl 1.74 <!-- jsr166y -->
731    
732    
733     <target name="jsr166ycompile"
734     depends="init, configure-compiler"
735     description="Compiles jsr166y sources">
736    
737     <mkdir dir="${build.jsr166y.dir}"/>
738    
739     <javac srcdir="${jsr166ysrc.dir}"
740     destdir="${build.jsr166y.dir}"
741     debug="${build.debug}"
742     debuglevel="${build.debuglevel}"
743     deprecation="${build.deprecation}"
744     source="${build.sourcelevel}"
745     fork="true">
746    
747     <include name="**/*.java"/>
748     <compilerarg line="${build.args}"/>
749 dl 1.83 <compilerarg value="-XDignore.symbol.file=true"/>
750 dl 1.74 <compilerarg value="${bootclasspath.args}"/>
751    
752     <!-- <compilerarg line="-Xlint -Xmaxwarns 1000"/> -->
753    
754     </javac>
755    
756     </target>
757    
758    
759    
760     <target name="jsr166yjar"
761     depends="jsr166ycompile"
762     description="Builds library jar from compiled sources">
763    
764     <mkdir dir="${build.jsr166ylib.dir}"/>
765    
766 dl 1.76 <jar destfile="${jsr166yproduct.jar}" index="true">
767 dl 1.74 <fileset dir="${build.jsr166y.dir}"/>
768     </jar>
769    
770     </target>
771    
772    
773    
774     <target name="jsr166ydocs"
775     description="Builds javadocs with custom tags to build folder">
776    
777     <delete dir="${build.jsr166yjavadocs.dir}"/>
778     <mkdir dir="${build.jsr166yjavadocs.dir}"/>
779    
780     <javadoc destdir="${build.jsr166yjavadocs.dir}"
781 jsr166 1.85 packagenames="jsr166y"
782 jsr166 1.91 link="${jdkapidocs.url}"
783 jsr166 1.85 source="${build.sourcelevel}"
784 jsr166 1.89 sourcepath="${topsrc.dir}:${jdksrc.dir}"
785     additionalparam="-XDignore.symbol.file=true" />
786 dl 1.74
787     </target>
788    
789    
790     <target name="jsr166ydist"
791     depends="jsr166ydist-clean, jsr166ydist-jar, jsr166ydist-docs"
792     description="Puts all distributable products in single hierarchy"/>
793    
794    
795    
796     <target name="jsr166yclean"
797     description="Removes all build products">
798    
799     <delete dir="${build.jsr166y.dir}"/>
800     <delete dir="${build.jsr166ylib.dir}"/>
801    
802     </target>
803    
804    
805    
806     <target name="jsr166ydist-clean"
807     description="Removes all build and distribution products">
808    
809     </target>
810    
811     <target name="jsr166ydist-docs"
812     description="Builds javadocs without custom tags to dist folder">
813    
814     <delete dir="${dist.jsr166yjavadocs.dir}"/>
815     <mkdir dir="${dist.jsr166yjavadocs.dir}"/>
816    
817     <javadoc destdir="${dist.jsr166yjavadocs.dir}"
818 jsr166 1.85 packagenames="jsr166y"
819 jsr166 1.91 link="${jdkapidocs.url}"
820 jsr166 1.85 source="${build.sourcelevel}"
821 jsr166 1.89 sourcepath="${topsrc.dir}:${jdksrc.dir}"
822     additionalparam="-XDignore.symbol.file=true" />
823 dl 1.74
824     </target>
825    
826     <target name="jsr166ydist-jar"
827     depends="jsr166yclean, jsr166yjar">
828    
829     <copy file="${jsr166yproduct.jar}" todir="${dist.dir}"/>
830    
831     </target>
832    
833 dl 1.90
834 dl 1.76 <!-- extra166y -->
835    
836    
837     <target name="extra166ycompile"
838 dl 1.77 depends="init, configure-compiler, jsr166ycompile"
839 dl 1.76 description="Compiles extra166y sources">
840    
841     <mkdir dir="${build.extra166y.dir}"/>
842    
843     <javac srcdir="${extra166ysrc.dir}"
844     destdir="${build.extra166y.dir}"
845     debug="${build.debug}"
846 dl 1.77 classpath="${jsr166yproduct.jar}"
847 dl 1.76 debuglevel="${build.debuglevel}"
848     deprecation="${build.deprecation}"
849     source="${build.sourcelevel}"
850     fork="true">
851    
852     <include name="**/*.java"/>
853     <compilerarg line="${build.args}"/>
854 dl 1.83 <compilerarg value="-XDignore.symbol.file=true"/>
855 dl 1.76 <compilerarg value="${bootclasspath.args}"/>
856    
857     <!-- <compilerarg line="-Xlint -Xmaxwarns 1000"/> -->
858    
859     </javac>
860    
861     </target>
862    
863    
864    
865     <target name="extra166yjar"
866     depends="extra166ycompile"
867     description="Builds library jar from compiled sources">
868    
869     <mkdir dir="${build.extra166ylib.dir}"/>
870    
871     <jar destfile="${extra166yproduct.jar}" index="true">
872     <fileset dir="${build.extra166y.dir}"/>
873     </jar>
874    
875     </target>
876    
877    
878    
879     <target name="extra166ydocs"
880     description="Builds javadocs with custom tags to build folder">
881    
882     <delete dir="${build.extra166yjavadocs.dir}"/>
883     <mkdir dir="${build.extra166yjavadocs.dir}"/>
884    
885     <javadoc destdir="${build.extra166yjavadocs.dir}"
886 jsr166 1.85 packagenames="extra166y"
887 jsr166 1.91 link="${jdkapidocs.url}"
888 jsr166 1.85 source="${build.sourcelevel}"
889 jsr166 1.89 sourcepath="${topsrc.dir}:${jdksrc.dir}"
890     additionalparam="-XDignore.symbol.file=true" />
891 dl 1.76
892     </target>
893    
894    
895     <target name="extra166ydist"
896     depends="extra166ydist-clean, extra166ydist-jar, extra166ydist-docs"
897     description="Puts all distributable products in single hierarchy"/>
898    
899    
900    
901     <target name="extra166yclean"
902     description="Removes all build products">
903    
904     <delete dir="${build.extra166y.dir}"/>
905     <delete dir="${build.extra166ylib.dir}"/>
906    
907     </target>
908    
909    
910    
911     <target name="extra166ydist-clean"
912     description="Removes all build and distribution products">
913    
914     </target>
915    
916     <target name="extra166ydist-docs"
917     description="Builds javadocs without custom tags to dist folder">
918    
919     <delete dir="${dist.extra166yjavadocs.dir}"/>
920     <mkdir dir="${dist.extra166yjavadocs.dir}"/>
921    
922     <javadoc destdir="${dist.extra166yjavadocs.dir}"
923 jsr166 1.85 packagenames="extra166y"
924 jsr166 1.91 link="${jdkapidocs.url}"
925 jsr166 1.85 source="${build.sourcelevel}"
926 jsr166 1.89 sourcepath="${topsrc.dir}:${jdksrc.dir}"
927     additionalparam="-XDignore.symbol.file=true" />
928 dl 1.76
929     </target>
930    
931     <target name="extra166ydist-jar"
932     depends="extra166yclean, extra166yjar">
933    
934     <copy file="${extra166yproduct.jar}" todir="${dist.dir}"/>
935    
936     </target>
937    
938 dl 1.90 <!-- jsr166e -->
939    
940     <target name="jsr166ecompile"
941 jsr166 1.94 depends="configure-compiler"
942 dl 1.90 description="Compiles jsr166e sources">
943    
944     <mkdir dir="${build.jsr166e.dir}"/>
945    
946 jsr166 1.95 <javac srcdir="${topsrc.dir}"
947 jsr166 1.94 destdir="${build.jsr166e.dir}"
948     debug="${build.debug}"
949     debuglevel="${build.debuglevel}"
950     deprecation="${build.deprecation}"
951 dl 1.90 source="1.7"
952 jsr166 1.94 classpath=""
953     includeAntRuntime="false"
954     includeJavaRuntime="false"
955     executable="${javac7}"
956     fork="true">
957 dl 1.90
958 jsr166 1.95 <include name="jsr166e/**/*.java"/>
959 dl 1.90 <compilerarg line="${build.args}"/>
960     <compilerarg value="-XDignore.symbol.file=true"/>
961 jsr166 1.94 <compilerarg value="-Xlint:all"/>
962 dl 1.90
963     </javac>
964    
965     </target>
966    
967    
968    
969     <target name="jsr166ejar"
970     depends="jsr166ecompile"
971     description="Builds library jar from compiled sources">
972    
973     <mkdir dir="${build.jsr166elib.dir}"/>
974    
975     <jar destfile="${jsr166eproduct.jar}" index="true">
976     <fileset dir="${build.jsr166e.dir}"/>
977     </jar>
978    
979     </target>
980    
981    
982    
983     <target name="jsr166edocs"
984     description="Builds javadocs with custom tags to build folder">
985    
986     <delete dir="${build.jsr166ejavadocs.dir}"/>
987     <mkdir dir="${build.jsr166ejavadocs.dir}"/>
988    
989     <javadoc destdir="${build.jsr166ejavadocs.dir}"
990     packagenames="jsr166e,jsr166e.extra"
991 jsr166 1.91 link="${jdkapidocs.url}"
992 dl 1.90 source="1.7"
993     sourcepath="${topsrc.dir}:${jdksrc.dir}"
994     additionalparam="-XDignore.symbol.file=true" />
995    
996     </target>
997    
998    
999     <target name="jsr166edist"
1000     depends="jsr166edist-clean, jsr166edist-jar, jsr166edist-docs"
1001     description="Puts all distributable products in single hierarchy"/>
1002    
1003    
1004    
1005     <target name="jsr166eclean"
1006     description="Removes all build products">
1007    
1008     <delete dir="${build.jsr166e.dir}"/>
1009     <delete dir="${build.jsr166elib.dir}"/>
1010    
1011     </target>
1012    
1013    
1014    
1015     <target name="jsr166edist-clean"
1016     description="Removes all build and distribution products">
1017    
1018     </target>
1019    
1020     <target name="jsr166edist-docs"
1021     description="Builds javadocs without custom tags to dist folder">
1022    
1023     <delete dir="${dist.jsr166ejavadocs.dir}"/>
1024     <mkdir dir="${dist.jsr166ejavadocs.dir}"/>
1025    
1026     <javadoc destdir="${dist.jsr166ejavadocs.dir}"
1027     packagenames="jsr166e,jsr166e.extra"
1028 jsr166 1.91 link="${jdkapidocs.url}"
1029 dl 1.90 source="1.7"
1030     sourcepath="${topsrc.dir}:${jdksrc.dir}"
1031     additionalparam="-XDignore.symbol.file=true" />
1032    
1033     </target>
1034    
1035     <target name="jsr166edist-jar"
1036     depends="jsr166eclean, jsr166ejar">
1037    
1038     <copy file="${jsr166eproduct.jar}" todir="${dist.dir}"/>
1039    
1040     </target>
1041    
1042 tim 1.1 </project>

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