30 |
|
<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.j1.dir" location="${build.dir}/j1"/> |
33 |
|
<property name="build.loops.dir" location="${build.dir}/loops"/> |
34 |
|
<property name="build.lib.dir" location="${build.dir}/lib"/> |
36 |
– |
<property name="build.ant.dir" location="${build.dir}/ant"/> |
35 |
|
<property name="build.javadocs.dir" location="${build.dir}/javadocs"/> |
36 |
|
<property name="build.reports.dir" location="${build.dir}/reports"/> |
37 |
< |
<property name="build.checkstyle.dir" location="${build.dir}/checkstyle"/> |
38 |
< |
<property name="build.doccheck.dir" location="${build.dir}/doccheck"/> |
39 |
< |
<property name="build.filter.src.dir" location="${build.dir}/filtersrc"/> |
40 |
< |
<property name="build.dc-filter.dir" location="${build.dir}/filterdocchk"/> |
37 |
> |
<property name="build.jsr166x.dir" location="${build.dir}/jsr166x"/> |
38 |
> |
<property name="build.jsr166xlib.dir" location="${build.dir}/jsr166xlib"/> |
39 |
> |
<property name="build.jsr166xjavadocs.dir" location="${build.dir}/jsr166xjavadocs"/> |
40 |
> |
|
41 |
> |
<property name="build.jsr166y.dir" location="${build.dir}/jsr166y"/> |
42 |
> |
<property name="build.jsr166ylib.dir" location="${build.dir}/jsr166ylib"/> |
43 |
> |
<property name="build.jsr166yjavadocs.dir" location="${build.dir}/jsr166yjavadocs"/> |
44 |
> |
|
45 |
> |
<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 |
|
|
49 |
|
<!-- Source locations --> |
50 |
|
<property name="src.dir" location="${basedir}/src/main"/> |
51 |
|
<property name="test.src.dir" location="${basedir}/src/test"/> |
47 |
– |
<property name="j1.src.dir" location="${basedir}/src/javaone"/> |
52 |
|
<property name="loops.src.dir" location="${basedir}/src/loops"/> |
53 |
|
<property name="tck.src.dir" location="${test.src.dir}/tck"/> |
54 |
|
<property name="jtreg.src.dir" location="${test.src.dir}/jtreg"/> |
51 |
– |
<property name="ant.src.dir" location="${basedir}/etc/ant"/> |
52 |
– |
<property name="stylesheet.dir" location="${basedir}/etc/xsl"/> |
55 |
|
<property name="lib.dir" location="${basedir}/lib"/> |
56 |
|
<property name="dist.dir" location="${basedir}/dist"/> |
57 |
+ |
<property name="topsrc.dir" location="${basedir}/src"/> |
58 |
+ |
<property name="jsr166xsrc.dir" location="${basedir}/src/jsr166x"/> |
59 |
+ |
<property name="jsr166ysrc.dir" location="${basedir}/src/jsr166y"/> |
60 |
+ |
<property name="extra166ysrc.dir" location="${basedir}/src/extra166y"/> |
61 |
|
|
62 |
|
<!-- Distribution locations --> |
63 |
|
<property name="dist.javadocs.dir" location="${dist.dir}/docs"/> |
64 |
+ |
<property name="dist.jsr166xjavadocs.dir" location="${dist.dir}/jsr166xdocs"/> |
65 |
+ |
<property name="dist.jsr166yjavadocs.dir" location="${dist.dir}/jsr166ydocs"/> |
66 |
+ |
<property name="dist.extra166yjavadocs.dir" location="${dist.dir}/extra166ydocs"/> |
67 |
|
|
68 |
|
<!-- Jar locations --> |
69 |
|
<property name="product.jar" location="${build.lib.dir}/jsr166.jar"/> |
70 |
+ |
<property name="jsr166xproduct.jar" location="${build.jsr166xlib.dir}/jsr166x.jar"/> |
71 |
+ |
<property name="jsr166yproduct.jar" location="${build.jsr166ylib.dir}/jsr166y.jar"/> |
72 |
+ |
<property name="extra166yproduct.jar" location="${build.extra166ylib.dir}/extra166y.jar"/> |
73 |
|
<property name="junit.jar" location="${lib.dir}/junit.jar"/> |
62 |
– |
<property name="concurrent.jar" location="${lib.dir}/concurrent.jar"/> |
74 |
|
|
75 |
|
<!-- Bootclasspath argument --> |
76 |
|
<property name="bootclasspath.args" value="-Xbootclasspath/p:${product.jar}"/> |
86 |
|
<pathelement location="${build.loops.dir}"/> |
87 |
|
</path> |
88 |
|
|
78 |
– |
<!-- J1 classpath --> |
79 |
– |
<path id="j1.classpath"> |
80 |
– |
<pathelement location="${build.j1.dir}"/> |
81 |
– |
<pathelement location="${junit.jar}"/> |
82 |
– |
<pathelement location="${concurrent.jar}"/> |
83 |
– |
</path> |
84 |
– |
|
89 |
|
|
90 |
|
<!-- Main targets --> |
91 |
|
|
105 |
|
fork="true"> |
106 |
|
|
107 |
|
<include name="**/*.java"/> |
108 |
+ |
<compilerarg value="-XDignore.symbol.file"/> |
109 |
+ |
|
110 |
+ |
<!-- |
111 |
|
<exclude name="java/lang/**"/> |
112 |
|
<compilerarg line="${build.args}"/> |
113 |
+ |
<compilerarg line="-Xlint -Xmaxwarns 1000"/> |
114 |
+ |
--> |
115 |
|
|
116 |
|
</javac> |
117 |
|
|
146 |
|
<mkdir dir="${build.javadocs.dir}"/> |
147 |
|
|
148 |
|
<javadoc destdir="${build.javadocs.dir}" |
149 |
< |
link="http://java.sun.com/j2se/1.4.1/docs/api" |
149 |
> |
link="http://java.sun.com/javase/6/docs/api/" |
150 |
|
overview="${src.dir}/intro.html" |
151 |
< |
source="${build.sourcelevel}"> |
152 |
< |
|
144 |
< |
<tag name="revised" description="Last revised:"/> |
145 |
< |
<tag name="spec" description="Specified by:"/> |
151 |
> |
sourcepath="${src.dir}:/home/dl/1.6.0/j2se/martin/j2se/src/share/classes" |
152 |
> |
> |
153 |
|
|
154 |
|
<packageset dir="${src.dir}"/> |
155 |
|
|
159 |
|
|
160 |
|
|
161 |
|
|
155 |
– |
<target name="doccheck" |
156 |
– |
depends="filter-doccheck" |
157 |
– |
description="Reports on javadoc style errors"> |
158 |
– |
|
159 |
– |
<delete dir="${build.doccheck.dir}"/> |
160 |
– |
<mkdir dir="${build.doccheck.dir}"/> |
161 |
– |
|
162 |
– |
<javadoc doclet="com.sun.tools.doclets.doccheck.DocCheck" |
163 |
– |
docletpath="${lib.dir}/doccheck.jar" |
164 |
– |
destdir="${build.doccheck.dir}"> |
165 |
– |
<packageset dir="${build.dc-filter.dir}"/> |
166 |
– |
</javadoc> |
167 |
– |
|
168 |
– |
<echo>DocCheck output is in ${build.doccheck.dir}</echo> |
169 |
– |
|
170 |
– |
</target> |
171 |
– |
|
172 |
– |
|
173 |
– |
|
174 |
– |
<target name="checkstyle" |
175 |
– |
depends="filter-src" |
176 |
– |
description="Reports on style errors in Java source (verbose, mostly chaff)"> |
177 |
– |
|
178 |
– |
<taskdef resource="checkstyletask.properties" |
179 |
– |
classpath="${lib.dir}/checkstyle-all-3.1.jar"/> |
180 |
– |
|
181 |
– |
<mkdir dir="${build.checkstyle.dir}"/> |
182 |
– |
|
183 |
– |
<checkstyle config="etc/checkstyle/sun_checks.xml" |
184 |
– |
failOnViolation="false"> |
185 |
– |
<formatter type="xml" toFile="${build.checkstyle.dir}/checkstyle-report.xml"/> |
186 |
– |
<fileset dir="${build.filter.src.dir}" includes="**/*.java"/> |
187 |
– |
</checkstyle> |
188 |
– |
|
189 |
– |
<style in="${build.checkstyle.dir}/checkstyle-report.xml" |
190 |
– |
out="${build.checkstyle.dir}/checkstyle-report.html" |
191 |
– |
style="${stylesheet.dir}/checkstyle-frames.xsl"/> |
192 |
– |
|
193 |
– |
</target> |
194 |
– |
|
195 |
– |
|
196 |
– |
|
162 |
|
<target name="dist" |
163 |
|
depends="init, dist-clean, dist-jar, dist-docs" |
164 |
|
description="Puts all distributable products in single hierarchy"/> |
212 |
|
<mkdir dir="${dist.javadocs.dir}"/> |
213 |
|
|
214 |
|
<javadoc destdir="${dist.javadocs.dir}" |
215 |
< |
link="http://java.sun.com/j2se/1.4.2/docs/api" |
215 |
> |
link="http://java.sun.com/javase/6/docs/api/" |
216 |
|
overview="${src.dir}/intro.html" |
252 |
– |
source="${build.sourcelevel}"> |
253 |
– |
|
254 |
– |
<packageset dir="${src.dir}"/> |
217 |
|
|
218 |
+ |
sourcepath="${src.dir}:/home/dl/1.6.0/j2se/martin/j2se/src/share/classes" |
219 |
+ |
> |
220 |
+ |
<!-- |
221 |
+ |
<packageset dir="${src.dir}" defaultexcludes="yes"> |
222 |
+ |
<include name="java/util/concurrent"/> |
223 |
+ |
<include name="java/util/concurrent/atomic"/> |
224 |
+ |
<include name="java/util/concurrent/locks"/> |
225 |
+ |
</packageset> |
226 |
+ |
--> |
227 |
+ |
<fileset dir="${topsrc.dir}" defaultexcludes="yes"> |
228 |
+ |
<include name="main/java/util/concurrent/*.java"/> |
229 |
+ |
<include name="main/java/util/concurrent/atomic/*.java"/> |
230 |
+ |
<include name="main/java/util/concurrent/locks/*.java"/> |
231 |
+ |
<include name="main/java/util/*.java"/> |
232 |
+ |
<!-- |
233 |
+ |
<include name="main/java/util/concurrent/*.html"/> |
234 |
+ |
<include name="main/java/util/concurrent/atomic/*.html"/> |
235 |
+ |
<include name="main/java/util/concurrent/locks/*.html"/> |
236 |
+ |
<include name="main/java/util/*.html"/> |
237 |
+ |
--> |
238 |
+ |
<!-- <include name="jsr166x/*.java"/> --> |
239 |
+ |
</fileset> |
240 |
|
</javadoc> |
241 |
|
|
242 |
|
</target> |
264 |
|
</target> |
265 |
|
|
266 |
|
|
283 |
– |
<target name="compile-ant-filter" |
284 |
– |
depends="init"> |
285 |
– |
|
286 |
– |
<mkdir dir="${build.ant.dir}"/> |
287 |
– |
|
288 |
– |
<javac srcdir="${ant.src.dir}" |
289 |
– |
destdir="${build.ant.dir}" |
290 |
– |
source="1.4"/> |
291 |
– |
|
292 |
– |
</target> |
293 |
– |
|
294 |
– |
|
295 |
– |
<target name="filter-src" |
296 |
– |
depends="compile-ant-filter"> |
297 |
– |
|
298 |
– |
<mkdir dir="${build.filter.src.dir}"/> |
299 |
– |
|
300 |
– |
<copy todir="${build.filter.src.dir}"> |
301 |
– |
<fileset dir="${src.dir}"> |
302 |
– |
<include name="**/*.html"/> |
303 |
– |
</fileset> |
304 |
– |
</copy> |
305 |
– |
|
306 |
– |
<copy todir="${build.filter.src.dir}"> |
307 |
– |
<fileset dir="${src.dir}"> |
308 |
– |
<exclude name="**/*.html"/> |
309 |
– |
<!-- Files excluded from dist-docs --> |
310 |
– |
<exclude name="java/util/Random.*"/> |
311 |
– |
<exclude name="sun/misc/Unsafe.*"/> |
312 |
– |
</fileset> |
313 |
– |
<!-- |
314 |
– |
<filterchain> |
315 |
– |
--> |
316 |
– |
|
317 |
– |
<!-- |
318 |
– |
# This filter gets rid of angle-bracketed type parameters |
319 |
– |
# so that javadoc can run on the result. The following |
320 |
– |
# heuristic seems to work: |
321 |
– |
# |
322 |
– |
# For all lines not starting with space(s)-asterisk-space(s), |
323 |
– |
# replace <something> with a space, where there may be more |
324 |
– |
# than one right angle bracket at the end, and "something" |
325 |
– |
# must not contain parens or pipes. (This may need some |
326 |
– |
# tweaking.) |
327 |
– |
--> |
328 |
– |
|
329 |
– |
<!-- |
330 |
– |
<filterreader classname="jsr166.ant.filters.ReplaceFilter" |
331 |
– |
classpath="${build.ant.dir}"> |
332 |
– |
<param name="notmatching" value="^\s+\*\s.*$"/> |
333 |
– |
<param name="pattern" value="<[^|>()]+?>+"/> |
334 |
– |
<param name="replacement" value=" "/> |
335 |
– |
</filterreader> |
336 |
– |
--> |
337 |
– |
|
338 |
– |
<!-- |
339 |
– |
</filterchain> |
340 |
– |
--> |
341 |
– |
</copy> |
342 |
– |
|
343 |
– |
</target> |
344 |
– |
|
345 |
– |
|
346 |
– |
<target name="filter-doccheck" |
347 |
– |
depends="filter-src"> |
348 |
– |
|
349 |
– |
<mkdir dir="${build.dc-filter.dir}"/> |
350 |
– |
|
351 |
– |
<copy todir="${build.dc-filter.dir}"> |
352 |
– |
<fileset dir="${build.filter.src.dir}"> |
353 |
– |
<include name="**/*.html"/> |
354 |
– |
</fileset> |
355 |
– |
</copy> |
356 |
– |
|
357 |
– |
<property name="generic.declarations" |
358 |
– |
value="/** Fake type parameter. */ public interface E {} /** Fake type parameter. */ public interface T {} /** Fake type parameter. */ public interface K {} /** Fake type parameter. */ public interface V {}" |
359 |
– |
/> |
360 |
– |
|
361 |
– |
<copy todir="${build.dc-filter.dir}"> |
362 |
– |
<fileset dir="${build.filter.src.dir}"> |
363 |
– |
<exclude name="**/*.html"/> |
364 |
– |
</fileset> |
365 |
– |
<filterchain> |
366 |
– |
<!-- |
367 |
– |
# These two filters try to make the source look like |
368 |
– |
# something that doccheck can process. The first removes |
369 |
– |
# -source 1.4 assertions and the second adds in a bunch |
370 |
– |
# of single letter public nested marker interfaces so that |
371 |
– |
# the generic type parameters are recognized. |
372 |
– |
--> |
373 |
– |
|
374 |
– |
<filterreader classname="jsr166.ant.filters.ReplaceFilter" |
375 |
– |
classpath="${build.ant.dir}"> |
376 |
– |
<param name="matching" value="^\s*assert[\s ].*$"/> |
377 |
– |
<param name="pattern" value="assert"/> |
378 |
– |
<param name="replacement" value="//assert"/> |
379 |
– |
</filterreader> |
380 |
– |
|
381 |
– |
<filterreader classname="jsr166.ant.filters.ReplaceFilter" |
382 |
– |
classpath="${build.ant.dir}"> |
383 |
– |
<param name="matching" value="^([^*]*(class|interface|implements) .*|)\{.*$"/> |
384 |
– |
<param name="pattern" value="$"/> |
385 |
– |
<param name="replacement" value=" ${generic.declarations}"/> |
386 |
– |
</filterreader> |
387 |
– |
|
388 |
– |
</filterchain> |
389 |
– |
</copy> |
390 |
– |
|
391 |
– |
</target> |
392 |
– |
|
393 |
– |
|
267 |
|
<target name="compile-tests" |
268 |
|
depends="jar"> |
269 |
|
|
384 |
|
<fileset dir="${build.reports.dir}"> |
385 |
|
<include name="TEST-*.xml"/> |
386 |
|
</fileset> |
387 |
< |
<report styledir="${stylesheet.dir}" |
515 |
< |
format="${junit.report.format}" |
516 |
< |
todir="${build.reports.dir}" |
387 |
> |
<report format="${junit.report.format}" todir="${build.reports.dir}" |
388 |
|
/> |
389 |
|
</junitreport> |
390 |
|
|
434 |
|
</target> |
435 |
|
|
436 |
|
|
566 |
– |
|
567 |
– |
<!-- Anthill targets --> |
568 |
– |
|
569 |
– |
<target name="anthill-build"> |
570 |
– |
|
571 |
– |
<!-- Override this in user.properties --> |
572 |
– |
<property name="tiger.home" location="e:/j2sdk1.5.0"/> |
573 |
– |
|
574 |
– |
<exec resultproperty="result.property" dir="${basedir}" executable="${tiger.home}/bin/java"> |
575 |
– |
<arg value="-Xmx256000000"/> |
576 |
– |
<!-- classpath of new JVM --> |
577 |
– |
<arg value="-classpath"/> <arg path="${java.class.path}"/> |
578 |
– |
<!-- location of Ant home directory --> |
579 |
– |
<arg value="-Dant.home=${ant.home}"/> |
580 |
– |
<!-- the Ant main class --> |
581 |
– |
<arg value="org.apache.tools.ant.Main"/> |
582 |
– |
<!-- The build file --> |
583 |
– |
<arg value="-buildfile"/> <arg value="build.xml"/> |
584 |
– |
<!-- the target to build on the new Ant instance --> |
585 |
– |
<arg value="-DJAVA_HOME=${tiger.home}"/> |
586 |
– |
<arg value="do-anthill-build"/> |
587 |
– |
</exec> |
588 |
– |
</target> |
589 |
– |
|
590 |
– |
<target name="do-anthill-build" |
591 |
– |
depends="jar, test, docs, dist-docs"/> |
592 |
– |
|
593 |
– |
<target name="anthill-publish"> |
594 |
– |
|
595 |
– |
<copy todir="${deployDir}/docs/private"> |
596 |
– |
<fileset dir="${build.javadocs.dir}"/> |
597 |
– |
</copy> |
598 |
– |
|
599 |
– |
<copy todir="${deployDir}/docs/public"> |
600 |
– |
<fileset dir="${dist.javadocs.dir}"/> |
601 |
– |
</copy> |
602 |
– |
|
603 |
– |
<copy tofile="${deployDir}/index.html" |
604 |
– |
file="${basedir}/etc/anthill-index.html"/> |
605 |
– |
|
606 |
– |
<copy todir="${deployDir}/notes"> |
607 |
– |
<fileset dir="${basedir}/etc/notes"/> |
608 |
– |
</copy> |
609 |
– |
|
610 |
– |
</target> |
611 |
– |
|
612 |
– |
|
613 |
– |
|
437 |
|
<!-- Various demos and test programs --> |
438 |
|
|
439 |
|
|
617 |
– |
<target name="sample" depends="init, configure-compiler" |
618 |
– |
description="Standalone demo program"> |
619 |
– |
|
620 |
– |
<mkdir dir="${build.testcases.dir}"/> |
621 |
– |
|
622 |
– |
<javac srcdir="${test.src.dir}" |
623 |
– |
destdir="${build.testcases.dir}" |
624 |
– |
debug="${build.debug}" |
625 |
– |
debuglevel="${build.debuglevel}" |
626 |
– |
deprecation="${build.deprecation}" |
627 |
– |
source="${build.sourcelevel}" |
628 |
– |
fork="true"> |
629 |
– |
|
630 |
– |
<include name="jsr166/test/Sample.java"/> |
631 |
– |
|
632 |
– |
</javac> |
633 |
– |
|
634 |
– |
<copy todir="${build.testcases.dir}"> |
635 |
– |
<fileset dir="${test.src.dir}"> |
636 |
– |
<include name="**/*.properties"/> |
637 |
– |
</fileset> |
638 |
– |
</copy> |
639 |
– |
|
640 |
– |
|
641 |
– |
<java classname="jsr166.test.Sample" fork="true"> |
642 |
– |
<classpath refid="test.classpath"/> |
643 |
– |
<!-- <jvmarg value="-ea"/> --> |
644 |
– |
<!-- <jvmarg value="-server"/> --> |
645 |
– |
<!-- <arg value="1000"/> --> |
646 |
– |
</java> |
647 |
– |
</target> |
648 |
– |
|
649 |
– |
|
440 |
|
<target name="loops" depends="init, configure-compiler" |
441 |
|
description="Benchmark from Doug Lea's AQS paper"> |
442 |
|
|
462 |
|
</target> |
463 |
|
|
464 |
|
|
465 |
< |
<target name="compile-j1" depends="init, configure-compiler"> |
465 |
> |
<!-- jsr166x --> |
466 |
|
|
677 |
– |
<mkdir dir="${build.j1.dir}"/> |
467 |
|
|
468 |
< |
<javac srcdir="${j1.src.dir}" |
469 |
< |
destdir="${build.j1.dir}" |
468 |
> |
<target name="jsr166xcompile" |
469 |
> |
depends="init, configure-compiler" |
470 |
> |
description="Compiles jsr166x sources"> |
471 |
> |
|
472 |
> |
<mkdir dir="${build.jsr166x.dir}"/> |
473 |
> |
|
474 |
> |
<javac srcdir="${jsr166xsrc.dir}" |
475 |
> |
destdir="${build.jsr166x.dir}" |
476 |
|
debug="${build.debug}" |
477 |
|
debuglevel="${build.debuglevel}" |
478 |
|
deprecation="${build.deprecation}" |
479 |
< |
source="${build.sourcelevel}" > |
479 |
> |
source="${build.sourcelevel}" |
480 |
> |
fork="true"> |
481 |
|
|
482 |
|
<include name="**/*.java"/> |
687 |
– |
<exclude name="**/dijkstra/**"/> |
688 |
– |
|
483 |
|
<compilerarg line="${build.args}"/> |
690 |
– |
<classpath refid="j1.classpath"/> |
484 |
|
|
485 |
|
</javac> |
486 |
|
|
487 |
|
</target> |
488 |
|
|
489 |
|
|
697 |
– |
<target name="sw" depends="compile-j1" |
698 |
– |
description="Runs the SwingWorker demo"> |
490 |
|
|
491 |
< |
<!-- |
492 |
< |
<java classname="jsr166.swing.SwingWorkerDemo" fork="true"> |
493 |
< |
<classpath refid="j1.classpath"/> |
703 |
< |
</java> |
704 |
< |
--> |
491 |
> |
<target name="jsr166xjar" |
492 |
> |
depends="jsr166xcompile" |
493 |
> |
description="Builds library jar from compiled sources"> |
494 |
|
|
495 |
< |
<copy todir="${build.j1.dir}" file="${j1.src.dir}/jsr166/swing/SwingWorker.html"/> |
495 |
> |
<mkdir dir="${build.jsr166xlib.dir}"/> |
496 |
|
|
497 |
< |
<exec dir="${build.j1.dir}" executable="appletviewer.exe"> |
498 |
< |
<arg value="${build.j1.dir}/SwingWorker.html"/> |
499 |
< |
</exec> |
497 |
> |
<jar destfile="${jsr166xproduct.jar}"> |
498 |
> |
<fileset dir="${build.jsr166x.dir}"/> |
499 |
> |
</jar> |
500 |
|
|
501 |
|
</target> |
502 |
|
|
714 |
– |
<target name="j1" depends="compile-j1" |
715 |
– |
description="Runs a standalone JavaOne program"> |
503 |
|
|
717 |
– |
<java classname="${j1.test}" fork="true"> |
718 |
– |
<classpath refid="j1.classpath"/> |
719 |
– |
<jvmarg value="-client"/> |
504 |
|
|
505 |
< |
<!-- TestPseudoRandom args --> |
506 |
< |
<arg value="2"/> |
723 |
< |
<arg value="25"/> |
724 |
< |
<arg value="100000"/> |
505 |
> |
<target name="jsr166xdocs" |
506 |
> |
description="Builds javadocs with custom tags to build folder"> |
507 |
|
|
508 |
< |
<!-- WebCrawler args --> |
509 |
< |
<!-- |
728 |
< |
<arg value="jsr166.webcrawler.WebCrawler3"/> |
729 |
< |
<arg value="http://www.priorartisans.com"/> |
730 |
< |
<arg value="25"/> |
731 |
< |
--> |
508 |
> |
<delete dir="${build.jsr166xjavadocs.dir}"/> |
509 |
> |
<mkdir dir="${build.jsr166xjavadocs.dir}"/> |
510 |
|
|
511 |
< |
</java> |
511 |
> |
<javadoc destdir="${build.jsr166xjavadocs.dir}" |
512 |
> |
link="http://java.sun.com/javase/6/docs/api/" |
513 |
|
|
514 |
< |
</target> |
514 |
> |
sourcepath="${jsr166xsrc.dir}:/home/dl/1.5.0/j2se/martin/j2se/src/share/classes" |
515 |
|
|
516 |
+ |
> |
517 |
+ |
<packageset dir="${topsrc.dir}" defaultexcludes="yes"> |
518 |
+ |
<include name="jsr166x"/> |
519 |
+ |
</packageset> |
520 |
|
|
738 |
– |
<target name="test-j1" depends="compile-j1" |
739 |
– |
description="Runs testcases from the JavaOne source directories"> |
521 |
|
|
522 |
< |
<junit printsummary="true" |
742 |
< |
showoutput="true" |
743 |
< |
errorProperty="junit.failed" |
744 |
< |
failureProperty="junit.failed" |
745 |
< |
dir="${build.j1.dir}" |
746 |
< |
fork="true"> |
522 |
> |
</javadoc> |
523 |
|
|
524 |
< |
<!-- <jvmarg value="-server"/> --> |
749 |
< |
<classpath refid="j1.classpath"/> |
750 |
< |
<formatter type="xml"/> |
524 |
> |
</target> |
525 |
|
|
752 |
– |
<batchtest todir="${build.j1.dir}"> |
753 |
– |
<fileset dir="${j1.src.dir}"> |
754 |
– |
<include name="**/*Test.java"/> |
755 |
– |
</fileset> |
756 |
– |
</batchtest> |
526 |
|
|
527 |
< |
</junit> |
527 |
> |
<target name="jsr166xdist" |
528 |
> |
depends="jsr166xdist-clean, jsr166xdist-jar, jsr166xdist-docs" |
529 |
> |
description="Puts all distributable products in single hierarchy"/> |
530 |
|
|
760 |
– |
<available property="junit.report.format" |
761 |
– |
value="frames" |
762 |
– |
classname="org.apache.xalan.lib.Redirect"/> |
763 |
– |
<property name="junit.report.format" value="noframes"/> |
531 |
|
|
765 |
– |
<junitreport todir="${build.j1.dir}"> |
766 |
– |
<fileset dir="${build.j1.dir}"> |
767 |
– |
<include name="TEST-*.xml"/> |
768 |
– |
</fileset> |
769 |
– |
<report styledir="${stylesheet.dir}" |
770 |
– |
format="${junit.report.format}" |
771 |
– |
todir="${build.j1.dir}" |
772 |
– |
/> |
773 |
– |
</junitreport> |
532 |
|
|
533 |
< |
<fail message="Test Cases Failed" if="junit.failed"/> |
533 |
> |
<target name="jsr166xclean" |
534 |
> |
description="Removes all build products"> |
535 |
> |
|
536 |
> |
<delete dir="${build.jsr166x.dir}"/> |
537 |
> |
<delete dir="${build.jsr166xlib.dir}"/> |
538 |
|
|
539 |
|
</target> |
540 |
|
|
541 |
|
|
542 |
|
|
543 |
< |
<!-- C++ and JNI definitions and demos --> |
543 |
> |
<target name="jsr166xdist-clean" |
544 |
> |
description="Removes all build and distribution products"> |
545 |
|
|
546 |
< |
<target name="configure-cpp"> |
546 |
> |
</target> |
547 |
|
|
785 |
– |
<!-- Define tasks and types --> |
548 |
|
|
787 |
– |
<path id="cpptasks.path"> |
788 |
– |
<pathelement location="${lib.dir}/cpptasks.jar"/> |
789 |
– |
</path> |
790 |
– |
<taskdef resource="cpptasks.tasks" classpathref="cpptasks.path"/> |
791 |
– |
<typedef resource="cpptasks.types" classpathref="cpptasks.path"/> |
549 |
|
|
550 |
< |
<!-- Set platform property for JNI includes --> |
550 |
> |
<target name="jsr166xdist-docs" |
551 |
> |
description="Builds javadocs without custom tags to dist folder"> |
552 |
|
|
553 |
< |
<condition property="platform" value="linux"> |
554 |
< |
<os name="Linux"/> |
797 |
< |
</condition> |
798 |
< |
<condition property="platform" value="win32"> |
799 |
< |
<os family="windows"/> |
800 |
< |
</condition> |
801 |
< |
<condition property="platform" value="solaris"> |
802 |
< |
<os name="SunOS"/> |
803 |
< |
</condition> |
553 |
> |
<delete dir="${dist.jsr166xjavadocs.dir}"/> |
554 |
> |
<mkdir dir="${dist.jsr166xjavadocs.dir}"/> |
555 |
|
|
556 |
< |
</target> |
556 |
> |
<javadoc destdir="${dist.jsr166xjavadocs.dir}" |
557 |
> |
link="http://java.sun.com/javase/6/docs/api/" |
558 |
> |
source="${build.sourcelevel}"> |
559 |
|
|
560 |
+ |
<packageset dir="${topsrc.dir}" defaultexcludes="yes"> |
561 |
+ |
<include name="jsr166x"/> |
562 |
+ |
</packageset> |
563 |
|
|
564 |
< |
<target name="cppdemo" depends="configure-cpp"> |
564 |
> |
</javadoc> |
565 |
|
|
566 |
< |
<mkdir dir="${build.dir}"/> |
566 |
> |
</target> |
567 |
|
|
568 |
< |
<cc multithreaded="true" |
569 |
< |
name="g++" |
814 |
< |
objdir="${build.dir}" |
815 |
< |
outfile="${build.dir}/CppDemo"> |
816 |
< |
<fileset dir="${test.src.dir}" includes="CppDemo.cpp"/> |
817 |
< |
<libset libs="stdc++"/> |
818 |
< |
</cc> |
568 |
> |
<target name="jsr166xdist-jar" |
569 |
> |
depends="jsr166xclean, jsr166xjar"> |
570 |
|
|
571 |
< |
<exec executable="${build.dir}/CppDemo"> |
821 |
< |
<arg line="count in word frequency of word in command line count"/> |
822 |
< |
</exec> |
571 |
> |
<copy file="${jsr166xproduct.jar}" todir="${dist.dir}"/> |
572 |
|
|
573 |
|
</target> |
574 |
|
|
575 |
+ |
<!-- jsr166y --> |
576 |
|
|
827 |
– |
<target name="jnidemo" depends="init, configure-compiler, configure-cpp"> |
577 |
|
|
578 |
< |
<mkdir dir="${build.testcases.dir}"/> |
578 |
> |
<target name="jsr166ycompile" |
579 |
> |
depends="init, configure-compiler" |
580 |
> |
description="Compiles jsr166y sources"> |
581 |
|
|
582 |
< |
<javac srcdir="${test.src.dir}" |
583 |
< |
destdir="${build.testcases.dir}" |
582 |
> |
<mkdir dir="${build.jsr166y.dir}"/> |
583 |
> |
|
584 |
> |
<javac srcdir="${jsr166ysrc.dir}" |
585 |
> |
destdir="${build.jsr166y.dir}" |
586 |
|
debug="${build.debug}" |
587 |
|
debuglevel="${build.debuglevel}" |
588 |
|
deprecation="${build.deprecation}" |
589 |
|
source="${build.sourcelevel}" |
590 |
|
fork="true"> |
591 |
< |
<compilerarg value="${bootclasspath.args}"/> |
591 |
> |
|
592 |
> |
<include name="**/*.java"/> |
593 |
|
<compilerarg line="${build.args}"/> |
594 |
< |
<classpath refid="test.classpath"/> |
595 |
< |
<include name="JniDemo.java"/> |
594 |
> |
<compilerarg value="${bootclasspath.args}"/> |
595 |
> |
|
596 |
> |
<!-- <compilerarg line="-Xlint -Xmaxwarns 1000"/> --> |
597 |
> |
|
598 |
|
</javac> |
599 |
|
|
600 |
< |
<javah destdir="${build.testcases.dir}" |
601 |
< |
classpathref="test.classpath"> |
602 |
< |
<class name="JniDemo"/> |
603 |
< |
</javah> |
604 |
< |
|
605 |
< |
<cc multithreaded="true" |
606 |
< |
name="g++" |
607 |
< |
objdir="${build.dir}" |
608 |
< |
outfile="${build.dir}/JniDemo" |
609 |
< |
outtype="shared"> |
610 |
< |
|
611 |
< |
<compiler> |
612 |
< |
<defineset> |
857 |
< |
<define name="__int64" value="long long"/> |
858 |
< |
</defineset> |
859 |
< |
<includepath location="${java.home}/../include"/> |
860 |
< |
<includepath location="${java.home}/../include/${platform}"/> |
861 |
< |
<compilerarg value="-mno-cygwin"/> |
862 |
< |
</compiler> |
863 |
< |
|
864 |
< |
<linker> |
865 |
< |
<linkerarg value="--add-stdcall-alias"/> |
866 |
< |
</linker> |
867 |
< |
|
868 |
< |
<includepath location="${build.testcases.dir}"/> |
869 |
< |
|
870 |
< |
<fileset dir="${test.src.dir}" includes="JniDemo.cpp"/> |
871 |
< |
|
872 |
< |
<libset libs="stdc++"/> |
873 |
< |
|
874 |
< |
</cc> |
875 |
< |
|
876 |
< |
<!-- Necessary if windows, harmless if not --> |
877 |
< |
<copy file="${build.dir}/libJniDemo.so" tofile="${build.dir}/JniDemo.dll"/> |
878 |
< |
|
879 |
< |
<java classname="JniDemo" fork="true"> |
880 |
< |
<!-- Watch out: path separator hardwired to semicolon here! --> |
881 |
< |
<sysproperty key="java.library.path" path="${java.library.path};${build.dir}"/> |
882 |
< |
<classpath refid="test.classpath"/> |
883 |
< |
<arg line="count in word frequency of word in command line count"/> |
884 |
< |
</java> |
600 |
> |
</target> |
601 |
> |
|
602 |
> |
|
603 |
> |
|
604 |
> |
<target name="jsr166yjar" |
605 |
> |
depends="jsr166ycompile" |
606 |
> |
description="Builds library jar from compiled sources"> |
607 |
> |
|
608 |
> |
<mkdir dir="${build.jsr166ylib.dir}"/> |
609 |
> |
|
610 |
> |
<jar destfile="${jsr166yproduct.jar}" index="true"> |
611 |
> |
<fileset dir="${build.jsr166y.dir}"/> |
612 |
> |
</jar> |
613 |
|
|
614 |
|
</target> |
615 |
|
|
616 |
|
|
617 |
|
|
618 |
< |
<!-- Backward compatibility, work in progress (some files not checked in) --> |
618 |
> |
<target name="jsr166ydocs" |
619 |
> |
description="Builds javadocs with custom tags to build folder"> |
620 |
> |
|
621 |
> |
<delete dir="${build.jsr166yjavadocs.dir}"/> |
622 |
> |
<mkdir dir="${build.jsr166yjavadocs.dir}"/> |
623 |
|
|
624 |
+ |
<javadoc destdir="${build.jsr166yjavadocs.dir}" |
625 |
+ |
link="http://java.sun.com/javase/6/docs/api/" |
626 |
+ |
sourcepath="${jsr166ysrc.dir}:/home/dl/1.5.0/j2se/martin/j2se/src/share/classes" |
627 |
+ |
|
628 |
+ |
> |
629 |
+ |
<packageset dir="${topsrc.dir}" defaultexcludes="no"> |
630 |
+ |
<include name="jsr166y"/> |
631 |
+ |
</packageset> |
632 |
|
|
633 |
|
|
634 |
< |
<property name="pretiger.src.dir" location="${build.dir}/pretiger/src"/> |
895 |
< |
<property name="build.pretiger.dir" location="${build.dir}/pretiger/classes"/> |
896 |
< |
<property name="pretiger.jar" location="${build.lib.dir}/jsr166-pretiger.jar"/> |
897 |
< |
<property name="pretiger.sourcelevel" value="1.4"/> |
634 |
> |
</javadoc> |
635 |
|
|
636 |
< |
<target name="defang" |
637 |
< |
depends="init" |
638 |
< |
description="Generates pre-Tiger compatible source"> |
636 |
> |
</target> |
637 |
> |
|
638 |
> |
|
639 |
> |
<target name="jsr166ydist" |
640 |
> |
depends="jsr166ydist-clean, jsr166ydist-jar, jsr166ydist-docs" |
641 |
> |
description="Puts all distributable products in single hierarchy"/> |
642 |
|
|
903 |
– |
<delete dir="${pretiger.src.dir}"/> |
904 |
– |
<mkdir dir="${pretiger.src.dir}"/> |
643 |
|
|
644 |
< |
<exec executable="perl"> |
645 |
< |
<arg file="etc/defang.pl"/> |
646 |
< |
<!-- <arg value="-v"/> --> |
647 |
< |
<arg value="-s"/> <arg file="${src.dir}"/> |
648 |
< |
<arg value="-t"/> <arg file="${pretiger.src.dir}"/> |
649 |
< |
</exec> |
644 |
> |
|
645 |
> |
<target name="jsr166yclean" |
646 |
> |
description="Removes all build products"> |
647 |
> |
|
648 |
> |
<delete dir="${build.jsr166y.dir}"/> |
649 |
> |
<delete dir="${build.jsr166ylib.dir}"/> |
650 |
> |
|
651 |
> |
</target> |
652 |
> |
|
653 |
> |
|
654 |
> |
|
655 |
> |
<target name="jsr166ydist-clean" |
656 |
> |
description="Removes all build and distribution products"> |
657 |
|
|
658 |
|
</target> |
659 |
|
|
660 |
< |
<target name="compile-pretiger" |
661 |
< |
depends="init, configure-compiler, defang" |
917 |
< |
description="Compiles pre-Tiger sources to build folder"> |
660 |
> |
<target name="jsr166ydist-docs" |
661 |
> |
description="Builds javadocs without custom tags to dist folder"> |
662 |
|
|
663 |
< |
<mkdir dir="${build.pretiger.dir}"/> |
663 |
> |
<delete dir="${dist.jsr166yjavadocs.dir}"/> |
664 |
> |
<mkdir dir="${dist.jsr166yjavadocs.dir}"/> |
665 |
|
|
666 |
< |
<javac srcdir="${pretiger.src.dir}" |
667 |
< |
destdir="${build.pretiger.dir}" |
666 |
> |
<javadoc destdir="${dist.jsr166yjavadocs.dir}" |
667 |
> |
link="http://java.sun.com/javase/6/docs/api/" |
668 |
> |
source="${build.sourcelevel}"> |
669 |
> |
<fileset dir="${topsrc.dir}" defaultexcludes="yes"> |
670 |
> |
<include name="jsr166y/*.java"/> |
671 |
> |
</fileset> |
672 |
> |
</javadoc> |
673 |
> |
|
674 |
> |
</target> |
675 |
> |
|
676 |
> |
<target name="jsr166ydist-jar" |
677 |
> |
depends="jsr166yclean, jsr166yjar"> |
678 |
> |
|
679 |
> |
<copy file="${jsr166yproduct.jar}" todir="${dist.dir}"/> |
680 |
> |
|
681 |
> |
</target> |
682 |
> |
|
683 |
> |
<!-- extra166y --> |
684 |
> |
|
685 |
> |
|
686 |
> |
<target name="extra166ycompile" |
687 |
> |
depends="init, configure-compiler" |
688 |
> |
description="Compiles extra166y sources"> |
689 |
> |
|
690 |
> |
<mkdir dir="${build.extra166y.dir}"/> |
691 |
> |
|
692 |
> |
<javac srcdir="${extra166ysrc.dir}" |
693 |
> |
destdir="${build.extra166y.dir}" |
694 |
|
debug="${build.debug}" |
695 |
|
debuglevel="${build.debuglevel}" |
696 |
|
deprecation="${build.deprecation}" |
697 |
< |
source="${pretiger.sourcelevel}" |
697 |
> |
source="${build.sourcelevel}" |
698 |
|
fork="true"> |
699 |
|
|
700 |
+ |
<include name="**/*.java"/> |
701 |
|
<compilerarg line="${build.args}"/> |
702 |
< |
<exclude name="**/Thread.java"/> |
702 |
> |
<compilerarg value="${bootclasspath.args}"/> |
703 |
> |
|
704 |
> |
<!-- <compilerarg line="-Xlint -Xmaxwarns 1000"/> --> |
705 |
|
|
706 |
|
</javac> |
707 |
|
|
708 |
|
</target> |
709 |
|
|
936 |
– |
<target name="pretiger" depends="compile-pretiger"> |
710 |
|
|
938 |
– |
<mkdir dir="${build.lib.dir}"/> |
711 |
|
|
712 |
< |
<jar destfile="${pretiger.jar}"> |
713 |
< |
<fileset dir="${build.pretiger.dir}"> |
714 |
< |
</fileset> |
712 |
> |
<target name="extra166yjar" |
713 |
> |
depends="extra166ycompile" |
714 |
> |
description="Builds library jar from compiled sources"> |
715 |
> |
|
716 |
> |
<mkdir dir="${build.extra166ylib.dir}"/> |
717 |
> |
|
718 |
> |
<jar destfile="${extra166yproduct.jar}" index="true"> |
719 |
> |
<fileset dir="${build.extra166y.dir}"/> |
720 |
|
</jar> |
721 |
|
|
722 |
|
</target> |
723 |
|
|
724 |
+ |
|
725 |
+ |
|
726 |
+ |
<target name="extra166ydocs" |
727 |
+ |
description="Builds javadocs with custom tags to build folder"> |
728 |
+ |
|
729 |
+ |
<delete dir="${build.extra166yjavadocs.dir}"/> |
730 |
+ |
<mkdir dir="${build.extra166yjavadocs.dir}"/> |
731 |
+ |
|
732 |
+ |
<javadoc destdir="${build.extra166yjavadocs.dir}" |
733 |
+ |
link="http://java.sun.com/javase/6/docs/api/" |
734 |
+ |
sourcepath="${extra166ysrc.dir}:/home/dl/1.5.0/j2se/martin/j2se/src/share/classes" |
735 |
+ |
|
736 |
+ |
> |
737 |
+ |
<packageset dir="${topsrc.dir}" defaultexcludes="no"> |
738 |
+ |
<include name="extra166y"/> |
739 |
+ |
</packageset> |
740 |
+ |
|
741 |
+ |
|
742 |
+ |
</javadoc> |
743 |
+ |
|
744 |
+ |
</target> |
745 |
+ |
|
746 |
+ |
|
747 |
+ |
<target name="extra166ydist" |
748 |
+ |
depends="extra166ydist-clean, extra166ydist-jar, extra166ydist-docs" |
749 |
+ |
description="Puts all distributable products in single hierarchy"/> |
750 |
+ |
|
751 |
+ |
|
752 |
+ |
|
753 |
+ |
<target name="extra166yclean" |
754 |
+ |
description="Removes all build products"> |
755 |
+ |
|
756 |
+ |
<delete dir="${build.extra166y.dir}"/> |
757 |
+ |
<delete dir="${build.extra166ylib.dir}"/> |
758 |
+ |
|
759 |
+ |
</target> |
760 |
+ |
|
761 |
+ |
|
762 |
+ |
|
763 |
+ |
<target name="extra166ydist-clean" |
764 |
+ |
description="Removes all build and distribution products"> |
765 |
+ |
|
766 |
+ |
</target> |
767 |
+ |
|
768 |
+ |
<target name="extra166ydist-docs" |
769 |
+ |
description="Builds javadocs without custom tags to dist folder"> |
770 |
+ |
|
771 |
+ |
<delete dir="${dist.extra166yjavadocs.dir}"/> |
772 |
+ |
<mkdir dir="${dist.extra166yjavadocs.dir}"/> |
773 |
+ |
|
774 |
+ |
<javadoc destdir="${dist.extra166yjavadocs.dir}" |
775 |
+ |
link="http://java.sun.com/javase/6/docs/api/" |
776 |
+ |
source="${build.sourcelevel}"> |
777 |
+ |
<fileset dir="${topsrc.dir}" defaultexcludes="yes"> |
778 |
+ |
<include name="extra166y/*.java"/> |
779 |
+ |
</fileset> |
780 |
+ |
</javadoc> |
781 |
+ |
|
782 |
+ |
</target> |
783 |
+ |
|
784 |
+ |
<target name="extra166ydist-jar" |
785 |
+ |
depends="extra166yclean, extra166yjar"> |
786 |
+ |
|
787 |
+ |
<copy file="${extra166yproduct.jar}" todir="${dist.dir}"/> |
788 |
+ |
|
789 |
+ |
</target> |
790 |
+ |
|
791 |
|
</project> |