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 |
|
<!-- Source locations --> |
46 |
|
<property name="src.dir" location="${basedir}/src/main"/> |
47 |
|
<property name="test.src.dir" location="${basedir}/src/test"/> |
47 |
– |
<property name="j1.src.dir" location="${basedir}/src/javaone"/> |
48 |
|
<property name="loops.src.dir" location="${basedir}/src/loops"/> |
49 |
|
<property name="tck.src.dir" location="${test.src.dir}/tck"/> |
50 |
|
<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"/> |
51 |
|
<property name="lib.dir" location="${basedir}/lib"/> |
52 |
|
<property name="dist.dir" location="${basedir}/dist"/> |
53 |
+ |
<property name="topsrc.dir" location="${basedir}/src"/> |
54 |
+ |
<property name="jsr166xsrc.dir" location="${basedir}/src/jsr166x"/> |
55 |
+ |
<property name="jsr166ysrc.dir" location="${basedir}/src/jsr166y"/> |
56 |
|
|
57 |
|
<!-- Distribution locations --> |
58 |
|
<property name="dist.javadocs.dir" location="${dist.dir}/docs"/> |
59 |
+ |
<property name="dist.jsr166xjavadocs.dir" location="${dist.dir}/jsr166xdocs"/> |
60 |
+ |
<property name="dist.jsr166yjavadocs.dir" location="${dist.dir}/jsr166ydocs"/> |
61 |
|
|
62 |
|
<!-- Jar locations --> |
63 |
|
<property name="product.jar" location="${build.lib.dir}/jsr166.jar"/> |
64 |
+ |
<property name="jsr166xproduct.jar" location="${build.jsr166xlib.dir}/jsr166x.jar"/> |
65 |
+ |
<property name="jsr166yproduct.jar" location="${build.jsr166ylib.dir}/jsr166y.jar"/> |
66 |
|
<property name="junit.jar" location="${lib.dir}/junit.jar"/> |
62 |
– |
<property name="concurrent.jar" location="${lib.dir}/concurrent.jar"/> |
67 |
|
|
68 |
|
<!-- Bootclasspath argument --> |
69 |
|
<property name="bootclasspath.args" value="-Xbootclasspath/p:${product.jar}"/> |
79 |
|
<pathelement location="${build.loops.dir}"/> |
80 |
|
</path> |
81 |
|
|
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 |
– |
|
82 |
|
|
83 |
|
<!-- Main targets --> |
84 |
|
|
97 |
|
source="${build.sourcelevel}" |
98 |
|
fork="true"> |
99 |
|
|
100 |
+ |
<include name="**/*.java"/> |
101 |
+ |
<compilerarg value="-XDignore.symbol.file"/> |
102 |
+ |
|
103 |
+ |
<!-- |
104 |
+ |
<exclude name="java/lang/**"/> |
105 |
|
<compilerarg line="${build.args}"/> |
106 |
+ |
<compilerarg line="-Xlint -Xmaxwarns 1000"/> |
107 |
+ |
--> |
108 |
|
|
109 |
|
</javac> |
110 |
|
|
139 |
|
<mkdir dir="${build.javadocs.dir}"/> |
140 |
|
|
141 |
|
<javadoc destdir="${build.javadocs.dir}" |
142 |
< |
link="http://java.sun.com/j2se/1.4.1/docs/api" |
142 |
> |
link="http://java.sun.com/javase/6/docs/api/" |
143 |
|
overview="${src.dir}/intro.html" |
144 |
< |
source="${build.sourcelevel}"> |
145 |
< |
|
142 |
< |
<tag name="revised" description="Last revised:"/> |
143 |
< |
<tag name="spec" description="Specified by:"/> |
144 |
> |
sourcepath="${src.dir}:/home/dl/1.6.0/j2se/martin/j2se/src/share/classes" |
145 |
> |
> |
146 |
|
|
147 |
|
<packageset dir="${src.dir}"/> |
148 |
|
|
152 |
|
|
153 |
|
|
154 |
|
|
153 |
– |
<target name="doccheck" |
154 |
– |
depends="filter-doccheck" |
155 |
– |
description="Reports on javadoc style errors"> |
156 |
– |
|
157 |
– |
<delete dir="${build.doccheck.dir}"/> |
158 |
– |
<mkdir dir="${build.doccheck.dir}"/> |
159 |
– |
|
160 |
– |
<javadoc doclet="com.sun.tools.doclets.doccheck.DocCheck" |
161 |
– |
docletpath="${lib.dir}/doccheck.jar" |
162 |
– |
destdir="${build.doccheck.dir}"> |
163 |
– |
<packageset dir="${build.dc-filter.dir}"/> |
164 |
– |
</javadoc> |
165 |
– |
|
166 |
– |
<echo>DocCheck output is in ${build.doccheck.dir}</echo> |
167 |
– |
|
168 |
– |
</target> |
169 |
– |
|
170 |
– |
|
171 |
– |
|
172 |
– |
<target name="checkstyle" |
173 |
– |
depends="filter-src" |
174 |
– |
description="Reports on style errors in Java source (verbose, mostly chaff)"> |
175 |
– |
|
176 |
– |
<taskdef resource="checkstyletask.properties" |
177 |
– |
classpath="${lib.dir}/checkstyle-all-3.1.jar"/> |
178 |
– |
|
179 |
– |
<mkdir dir="${build.checkstyle.dir}"/> |
180 |
– |
|
181 |
– |
<checkstyle config="etc/checkstyle/sun_checks.xml" |
182 |
– |
failOnViolation="false"> |
183 |
– |
<formatter type="xml" toFile="${build.checkstyle.dir}/checkstyle-report.xml"/> |
184 |
– |
<fileset dir="${build.filter.src.dir}" includes="**/*.java"/> |
185 |
– |
</checkstyle> |
186 |
– |
|
187 |
– |
<style in="${build.checkstyle.dir}/checkstyle-report.xml" |
188 |
– |
out="${build.checkstyle.dir}/checkstyle-report.html" |
189 |
– |
style="${stylesheet.dir}/checkstyle-frames.xsl"/> |
190 |
– |
|
191 |
– |
</target> |
192 |
– |
|
193 |
– |
|
194 |
– |
|
155 |
|
<target name="dist" |
156 |
|
depends="init, dist-clean, dist-jar, dist-docs" |
157 |
|
description="Puts all distributable products in single hierarchy"/> |
205 |
|
<mkdir dir="${dist.javadocs.dir}"/> |
206 |
|
|
207 |
|
<javadoc destdir="${dist.javadocs.dir}" |
208 |
< |
link="http://java.sun.com/j2se/1.4.2/docs/api" |
208 |
> |
link="http://java.sun.com/javase/6/docs/api/" |
209 |
|
overview="${src.dir}/intro.html" |
250 |
– |
source="${build.sourcelevel}"> |
251 |
– |
|
252 |
– |
<packageset dir="${src.dir}"/> |
210 |
|
|
211 |
+ |
sourcepath="${src.dir}:/home/dl/1.6.0/j2se/martin/j2se/src/share/classes" |
212 |
+ |
> |
213 |
+ |
<!-- |
214 |
+ |
<packageset dir="${src.dir}" defaultexcludes="yes"> |
215 |
+ |
<include name="java/util/concurrent"/> |
216 |
+ |
<include name="java/util/concurrent/atomic"/> |
217 |
+ |
<include name="java/util/concurrent/locks"/> |
218 |
+ |
</packageset> |
219 |
+ |
--> |
220 |
+ |
<fileset dir="${topsrc.dir}" defaultexcludes="yes"> |
221 |
+ |
<include name="main/java/util/concurrent/*.java"/> |
222 |
+ |
<include name="main/java/util/concurrent/atomic/*.java"/> |
223 |
+ |
<include name="main/java/util/concurrent/locks/*.java"/> |
224 |
+ |
<include name="main/java/util/*.java"/> |
225 |
+ |
<!-- |
226 |
+ |
<include name="main/java/util/concurrent/*.html"/> |
227 |
+ |
<include name="main/java/util/concurrent/atomic/*.html"/> |
228 |
+ |
<include name="main/java/util/concurrent/locks/*.html"/> |
229 |
+ |
<include name="main/java/util/*.html"/> |
230 |
+ |
--> |
231 |
+ |
<!-- <include name="jsr166x/*.java"/> --> |
232 |
+ |
</fileset> |
233 |
|
</javadoc> |
234 |
|
|
235 |
|
</target> |
257 |
|
</target> |
258 |
|
|
259 |
|
|
281 |
– |
<target name="compile-ant-filter" |
282 |
– |
depends="init"> |
283 |
– |
|
284 |
– |
<mkdir dir="${build.ant.dir}"/> |
285 |
– |
|
286 |
– |
<javac srcdir="${ant.src.dir}" |
287 |
– |
destdir="${build.ant.dir}" |
288 |
– |
source="1.4"/> |
289 |
– |
|
290 |
– |
</target> |
291 |
– |
|
292 |
– |
|
293 |
– |
<target name="filter-src" |
294 |
– |
depends="compile-ant-filter"> |
295 |
– |
|
296 |
– |
<mkdir dir="${build.filter.src.dir}"/> |
297 |
– |
|
298 |
– |
<copy todir="${build.filter.src.dir}"> |
299 |
– |
<fileset dir="${src.dir}"> |
300 |
– |
<include name="**/*.html"/> |
301 |
– |
</fileset> |
302 |
– |
</copy> |
303 |
– |
|
304 |
– |
<copy todir="${build.filter.src.dir}"> |
305 |
– |
<fileset dir="${src.dir}"> |
306 |
– |
<exclude name="**/*.html"/> |
307 |
– |
<!-- Files excluded from dist-docs --> |
308 |
– |
<exclude name="java/util/Random.*"/> |
309 |
– |
<exclude name="sun/misc/Unsafe.*"/> |
310 |
– |
</fileset> |
311 |
– |
<!-- |
312 |
– |
<filterchain> |
313 |
– |
--> |
314 |
– |
|
315 |
– |
<!-- |
316 |
– |
# This filter gets rid of angle-bracketed type parameters |
317 |
– |
# so that javadoc can run on the result. The following |
318 |
– |
# heuristic seems to work: |
319 |
– |
# |
320 |
– |
# For all lines not starting with space(s)-asterisk-space(s), |
321 |
– |
# replace <something> with a space, where there may be more |
322 |
– |
# than one right angle bracket at the end, and "something" |
323 |
– |
# must not contain parens or pipes. (This may need some |
324 |
– |
# tweaking.) |
325 |
– |
--> |
326 |
– |
|
327 |
– |
<!-- |
328 |
– |
<filterreader classname="jsr166.ant.filters.ReplaceFilter" |
329 |
– |
classpath="${build.ant.dir}"> |
330 |
– |
<param name="notmatching" value="^\s+\*\s.*$"/> |
331 |
– |
<param name="pattern" value="<[^|>()]+?>+"/> |
332 |
– |
<param name="replacement" value=" "/> |
333 |
– |
</filterreader> |
334 |
– |
--> |
335 |
– |
|
336 |
– |
<!-- |
337 |
– |
</filterchain> |
338 |
– |
--> |
339 |
– |
</copy> |
340 |
– |
|
341 |
– |
</target> |
342 |
– |
|
343 |
– |
|
344 |
– |
<target name="filter-doccheck" |
345 |
– |
depends="filter-src"> |
346 |
– |
|
347 |
– |
<mkdir dir="${build.dc-filter.dir}"/> |
348 |
– |
|
349 |
– |
<copy todir="${build.dc-filter.dir}"> |
350 |
– |
<fileset dir="${build.filter.src.dir}"> |
351 |
– |
<include name="**/*.html"/> |
352 |
– |
</fileset> |
353 |
– |
</copy> |
354 |
– |
|
355 |
– |
<property name="generic.declarations" |
356 |
– |
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 {}" |
357 |
– |
/> |
358 |
– |
|
359 |
– |
<copy todir="${build.dc-filter.dir}"> |
360 |
– |
<fileset dir="${build.filter.src.dir}"> |
361 |
– |
<exclude name="**/*.html"/> |
362 |
– |
</fileset> |
363 |
– |
<filterchain> |
364 |
– |
<!-- |
365 |
– |
# These two filters try to make the source look like |
366 |
– |
# something that doccheck can process. The first removes |
367 |
– |
# -source 1.4 assertions and the second adds in a bunch |
368 |
– |
# of single letter public nested marker interfaces so that |
369 |
– |
# the generic type parameters are recognized. |
370 |
– |
--> |
371 |
– |
|
372 |
– |
<filterreader classname="jsr166.ant.filters.ReplaceFilter" |
373 |
– |
classpath="${build.ant.dir}"> |
374 |
– |
<param name="matching" value="^\s*assert[\s ].*$"/> |
375 |
– |
<param name="pattern" value="assert"/> |
376 |
– |
<param name="replacement" value="//assert"/> |
377 |
– |
</filterreader> |
378 |
– |
|
379 |
– |
<filterreader classname="jsr166.ant.filters.ReplaceFilter" |
380 |
– |
classpath="${build.ant.dir}"> |
381 |
– |
<param name="matching" value="^([^*]*(class|interface|implements) .*|)\{.*$"/> |
382 |
– |
<param name="pattern" value="$"/> |
383 |
– |
<param name="replacement" value=" ${generic.declarations}"/> |
384 |
– |
</filterreader> |
385 |
– |
|
386 |
– |
</filterchain> |
387 |
– |
</copy> |
388 |
– |
|
389 |
– |
</target> |
390 |
– |
|
391 |
– |
|
260 |
|
<target name="compile-tests" |
261 |
|
depends="jar"> |
262 |
|
|
377 |
|
<fileset dir="${build.reports.dir}"> |
378 |
|
<include name="TEST-*.xml"/> |
379 |
|
</fileset> |
380 |
< |
<report styledir="${stylesheet.dir}" |
513 |
< |
format="${junit.report.format}" |
514 |
< |
todir="${build.reports.dir}" |
380 |
> |
<report format="${junit.report.format}" todir="${build.reports.dir}" |
381 |
|
/> |
382 |
|
</junitreport> |
383 |
|
|
427 |
|
</target> |
428 |
|
|
429 |
|
|
564 |
– |
|
565 |
– |
<!-- Anthill targets --> |
566 |
– |
|
567 |
– |
<target name="anthill-build"> |
568 |
– |
|
569 |
– |
<!-- Override this in user.properties --> |
570 |
– |
<property name="tiger.home" location="e:/j2sdk1.5.0"/> |
571 |
– |
|
572 |
– |
<exec resultproperty="result.property" dir="${basedir}" executable="${tiger.home}/bin/java"> |
573 |
– |
<arg value="-Xmx256000000"/> |
574 |
– |
<!-- classpath of new JVM --> |
575 |
– |
<arg value="-classpath"/> <arg path="${java.class.path}"/> |
576 |
– |
<!-- location of Ant home directory --> |
577 |
– |
<arg value="-Dant.home=${ant.home}"/> |
578 |
– |
<!-- the Ant main class --> |
579 |
– |
<arg value="org.apache.tools.ant.Main"/> |
580 |
– |
<!-- The build file --> |
581 |
– |
<arg value="-buildfile"/> <arg value="build.xml"/> |
582 |
– |
<!-- the target to build on the new Ant instance --> |
583 |
– |
<arg value="-DJAVA_HOME=${tiger.home}"/> |
584 |
– |
<arg value="do-anthill-build"/> |
585 |
– |
</exec> |
586 |
– |
</target> |
587 |
– |
|
588 |
– |
<target name="do-anthill-build" |
589 |
– |
depends="jar, test, docs, dist-docs"/> |
590 |
– |
|
591 |
– |
<target name="anthill-publish"> |
592 |
– |
|
593 |
– |
<copy todir="${deployDir}/docs/private"> |
594 |
– |
<fileset dir="${build.javadocs.dir}"/> |
595 |
– |
</copy> |
596 |
– |
|
597 |
– |
<copy todir="${deployDir}/docs/public"> |
598 |
– |
<fileset dir="${dist.javadocs.dir}"/> |
599 |
– |
</copy> |
600 |
– |
|
601 |
– |
<copy tofile="${deployDir}/index.html" |
602 |
– |
file="${basedir}/etc/anthill-index.html"/> |
603 |
– |
|
604 |
– |
<copy todir="${deployDir}/notes"> |
605 |
– |
<fileset dir="${basedir}/etc/notes"/> |
606 |
– |
</copy> |
607 |
– |
|
608 |
– |
</target> |
609 |
– |
|
610 |
– |
|
611 |
– |
|
430 |
|
<!-- Various demos and test programs --> |
431 |
|
|
432 |
|
|
615 |
– |
<target name="sample" depends="init, configure-compiler" |
616 |
– |
description="Standalone demo program"> |
617 |
– |
|
618 |
– |
<mkdir dir="${build.testcases.dir}"/> |
619 |
– |
|
620 |
– |
<javac srcdir="${test.src.dir}" |
621 |
– |
destdir="${build.testcases.dir}" |
622 |
– |
debug="${build.debug}" |
623 |
– |
debuglevel="${build.debuglevel}" |
624 |
– |
deprecation="${build.deprecation}" |
625 |
– |
source="${build.sourcelevel}" |
626 |
– |
fork="true"> |
627 |
– |
|
628 |
– |
<include name="jsr166/test/Sample.java"/> |
629 |
– |
|
630 |
– |
</javac> |
631 |
– |
|
632 |
– |
<copy todir="${build.testcases.dir}"> |
633 |
– |
<fileset dir="${test.src.dir}"> |
634 |
– |
<include name="**/*.properties"/> |
635 |
– |
</fileset> |
636 |
– |
</copy> |
637 |
– |
|
638 |
– |
|
639 |
– |
<java classname="jsr166.test.Sample" fork="true"> |
640 |
– |
<classpath refid="test.classpath"/> |
641 |
– |
<!-- <jvmarg value="-ea"/> --> |
642 |
– |
<!-- <jvmarg value="-server"/> --> |
643 |
– |
<!-- <arg value="1000"/> --> |
644 |
– |
</java> |
645 |
– |
</target> |
646 |
– |
|
647 |
– |
|
433 |
|
<target name="loops" depends="init, configure-compiler" |
434 |
|
description="Benchmark from Doug Lea's AQS paper"> |
435 |
|
|
455 |
|
</target> |
456 |
|
|
457 |
|
|
458 |
< |
<target name="compile-j1" depends="init, configure-compiler"> |
458 |
> |
<!-- jsr166x --> |
459 |
|
|
675 |
– |
<mkdir dir="${build.j1.dir}"/> |
460 |
|
|
461 |
< |
<javac srcdir="${j1.src.dir}" |
462 |
< |
destdir="${build.j1.dir}" |
461 |
> |
<target name="jsr166xcompile" |
462 |
> |
depends="init, configure-compiler" |
463 |
> |
description="Compiles jsr166x sources"> |
464 |
> |
|
465 |
> |
<mkdir dir="${build.jsr166x.dir}"/> |
466 |
> |
|
467 |
> |
<javac srcdir="${jsr166xsrc.dir}" |
468 |
> |
destdir="${build.jsr166x.dir}" |
469 |
|
debug="${build.debug}" |
470 |
|
debuglevel="${build.debuglevel}" |
471 |
|
deprecation="${build.deprecation}" |
472 |
< |
source="${build.sourcelevel}" > |
472 |
> |
source="${build.sourcelevel}" |
473 |
> |
fork="true"> |
474 |
|
|
475 |
|
<include name="**/*.java"/> |
685 |
– |
<exclude name="**/dijkstra/**"/> |
686 |
– |
|
476 |
|
<compilerarg line="${build.args}"/> |
688 |
– |
<classpath refid="j1.classpath"/> |
477 |
|
|
478 |
|
</javac> |
479 |
|
|
480 |
|
</target> |
481 |
|
|
482 |
|
|
695 |
– |
<target name="sw" depends="compile-j1" |
696 |
– |
description="Runs the SwingWorker demo"> |
483 |
|
|
484 |
< |
<!-- |
485 |
< |
<java classname="jsr166.swing.SwingWorkerDemo" fork="true"> |
486 |
< |
<classpath refid="j1.classpath"/> |
701 |
< |
</java> |
702 |
< |
--> |
484 |
> |
<target name="jsr166xjar" |
485 |
> |
depends="jsr166xcompile" |
486 |
> |
description="Builds library jar from compiled sources"> |
487 |
|
|
488 |
< |
<copy todir="${build.j1.dir}" file="${j1.src.dir}/jsr166/swing/SwingWorker.html"/> |
488 |
> |
<mkdir dir="${build.jsr166xlib.dir}"/> |
489 |
|
|
490 |
< |
<exec dir="${build.j1.dir}" executable="appletviewer.exe"> |
491 |
< |
<arg value="${build.j1.dir}/SwingWorker.html"/> |
492 |
< |
</exec> |
490 |
> |
<jar destfile="${jsr166xproduct.jar}"> |
491 |
> |
<fileset dir="${build.jsr166x.dir}"/> |
492 |
> |
</jar> |
493 |
|
|
494 |
|
</target> |
495 |
|
|
712 |
– |
<target name="j1" depends="compile-j1" |
713 |
– |
description="Runs a standalone JavaOne program"> |
496 |
|
|
715 |
– |
<java classname="jsr166.random.TestRandom" fork="true"> |
716 |
– |
<classpath refid="j1.classpath"/> |
717 |
– |
<jvmarg value="-client"/> |
718 |
– |
</java> |
497 |
|
|
498 |
< |
</target> |
498 |
> |
<target name="jsr166xdocs" |
499 |
> |
description="Builds javadocs with custom tags to build folder"> |
500 |
|
|
501 |
+ |
<delete dir="${build.jsr166xjavadocs.dir}"/> |
502 |
+ |
<mkdir dir="${build.jsr166xjavadocs.dir}"/> |
503 |
|
|
504 |
< |
<target name="test-j1" depends="compile-j1" |
505 |
< |
description="Runs testcases from the JavaOne source directories"> |
504 |
> |
<javadoc destdir="${build.jsr166xjavadocs.dir}" |
505 |
> |
link="http://java.sun.com/javase/6/docs/api/" |
506 |
|
|
507 |
< |
<junit printsummary="true" |
727 |
< |
showoutput="true" |
728 |
< |
errorProperty="junit.failed" |
729 |
< |
failureProperty="junit.failed" |
730 |
< |
dir="${build.j1.dir}" |
731 |
< |
fork="true"> |
507 |
> |
sourcepath="${jsr166xsrc.dir}:/home/dl/1.5.0/j2se/martin/j2se/src/share/classes" |
508 |
|
|
509 |
< |
<!-- <jvmarg value="-server"/> --> |
510 |
< |
<classpath refid="j1.classpath"/> |
511 |
< |
<formatter type="xml"/> |
509 |
> |
> |
510 |
> |
<packageset dir="${topsrc.dir}" defaultexcludes="yes"> |
511 |
> |
<include name="jsr166x"/> |
512 |
> |
</packageset> |
513 |
|
|
737 |
– |
<batchtest todir="${build.j1.dir}"> |
738 |
– |
<fileset dir="${j1.src.dir}"> |
739 |
– |
<include name="**/*Test.java"/> |
740 |
– |
</fileset> |
741 |
– |
</batchtest> |
514 |
|
|
515 |
< |
</junit> |
515 |
> |
</javadoc> |
516 |
|
|
517 |
< |
<available property="junit.report.format" |
746 |
< |
value="frames" |
747 |
< |
classname="org.apache.xalan.lib.Redirect"/> |
748 |
< |
<property name="junit.report.format" value="noframes"/> |
517 |
> |
</target> |
518 |
|
|
750 |
– |
<junitreport todir="${build.j1.dir}"> |
751 |
– |
<fileset dir="${build.j1.dir}"> |
752 |
– |
<include name="TEST-*.xml"/> |
753 |
– |
</fileset> |
754 |
– |
<report styledir="${stylesheet.dir}" |
755 |
– |
format="${junit.report.format}" |
756 |
– |
todir="${build.j1.dir}" |
757 |
– |
/> |
758 |
– |
</junitreport> |
519 |
|
|
520 |
< |
<fail message="Test Cases Failed" if="junit.failed"/> |
520 |
> |
<target name="jsr166xdist" |
521 |
> |
depends="jsr166xdist-clean, jsr166xdist-jar, jsr166xdist-docs" |
522 |
> |
description="Puts all distributable products in single hierarchy"/> |
523 |
> |
|
524 |
> |
|
525 |
> |
|
526 |
> |
<target name="jsr166xclean" |
527 |
> |
description="Removes all build products"> |
528 |
> |
|
529 |
> |
<delete dir="${build.jsr166x.dir}"/> |
530 |
> |
<delete dir="${build.jsr166xlib.dir}"/> |
531 |
|
|
532 |
|
</target> |
533 |
|
|
534 |
|
|
535 |
|
|
536 |
< |
<!-- C++ and JNI definitions and demos --> |
536 |
> |
<target name="jsr166xdist-clean" |
537 |
> |
description="Removes all build and distribution products"> |
538 |
|
|
539 |
< |
<target name="configure-cpp"> |
539 |
> |
</target> |
540 |
|
|
770 |
– |
<!-- Define tasks and types --> |
541 |
|
|
772 |
– |
<path id="cpptasks.path"> |
773 |
– |
<pathelement location="${lib.dir}/cpptasks.jar"/> |
774 |
– |
</path> |
775 |
– |
<taskdef resource="cpptasks.tasks" classpathref="cpptasks.path"/> |
776 |
– |
<typedef resource="cpptasks.types" classpathref="cpptasks.path"/> |
542 |
|
|
543 |
< |
<!-- Set platform property for JNI includes --> |
543 |
> |
<target name="jsr166xdist-docs" |
544 |
> |
description="Builds javadocs without custom tags to dist folder"> |
545 |
|
|
546 |
< |
<condition property="platform" value="linux"> |
547 |
< |
<os name="Linux"/> |
782 |
< |
</condition> |
783 |
< |
<condition property="platform" value="win32"> |
784 |
< |
<os family="windows"/> |
785 |
< |
</condition> |
786 |
< |
<condition property="platform" value="solaris"> |
787 |
< |
<os name="SunOS"/> |
788 |
< |
</condition> |
546 |
> |
<delete dir="${dist.jsr166xjavadocs.dir}"/> |
547 |
> |
<mkdir dir="${dist.jsr166xjavadocs.dir}"/> |
548 |
|
|
549 |
< |
</target> |
549 |
> |
<javadoc destdir="${dist.jsr166xjavadocs.dir}" |
550 |
> |
link="http://java.sun.com/javase/6/docs/api/" |
551 |
> |
source="${build.sourcelevel}"> |
552 |
|
|
553 |
+ |
<packageset dir="${topsrc.dir}" defaultexcludes="yes"> |
554 |
+ |
<include name="jsr166x"/> |
555 |
+ |
</packageset> |
556 |
|
|
557 |
< |
<target name="cppdemo" depends="configure-cpp"> |
557 |
> |
</javadoc> |
558 |
|
|
559 |
< |
<mkdir dir="${build.dir}"/> |
559 |
> |
</target> |
560 |
|
|
561 |
< |
<cc multithreaded="true" |
562 |
< |
name="g++" |
799 |
< |
objdir="${build.dir}" |
800 |
< |
outfile="${build.dir}/CppDemo"> |
801 |
< |
<fileset dir="${test.src.dir}" includes="CppDemo.cpp"/> |
802 |
< |
<libset libs="stdc++"/> |
803 |
< |
</cc> |
561 |
> |
<target name="jsr166xdist-jar" |
562 |
> |
depends="jsr166xclean, jsr166xjar"> |
563 |
|
|
564 |
< |
<exec executable="${build.dir}/CppDemo"> |
806 |
< |
<arg line="count in word frequency of word in command line count"/> |
807 |
< |
</exec> |
564 |
> |
<copy file="${jsr166xproduct.jar}" todir="${dist.dir}"/> |
565 |
|
|
566 |
|
</target> |
567 |
|
|
568 |
+ |
<!-- jsr166y --> |
569 |
|
|
812 |
– |
<target name="jnidemo" depends="init, configure-compiler, configure-cpp"> |
570 |
|
|
571 |
< |
<mkdir dir="${build.testcases.dir}"/> |
571 |
> |
<target name="jsr166ycompile" |
572 |
> |
depends="init, configure-compiler" |
573 |
> |
description="Compiles jsr166y sources"> |
574 |
|
|
575 |
< |
<javac srcdir="${test.src.dir}" |
576 |
< |
destdir="${build.testcases.dir}" |
575 |
> |
<mkdir dir="${build.jsr166y.dir}"/> |
576 |
> |
|
577 |
> |
<javac srcdir="${jsr166ysrc.dir}" |
578 |
> |
destdir="${build.jsr166y.dir}" |
579 |
|
debug="${build.debug}" |
580 |
|
debuglevel="${build.debuglevel}" |
581 |
|
deprecation="${build.deprecation}" |
582 |
|
source="${build.sourcelevel}" |
583 |
|
fork="true"> |
584 |
< |
<compilerarg value="${bootclasspath.args}"/> |
584 |
> |
|
585 |
> |
<include name="**/*.java"/> |
586 |
|
<compilerarg line="${build.args}"/> |
587 |
< |
<classpath refid="test.classpath"/> |
826 |
< |
<include name="JniDemo.java"/> |
827 |
< |
</javac> |
587 |
> |
<compilerarg value="${bootclasspath.args}"/> |
588 |
|
|
589 |
< |
<javah destdir="${build.testcases.dir}" |
590 |
< |
classpathref="test.classpath"> |
591 |
< |
<class name="JniDemo"/> |
832 |
< |
</javah> |
833 |
< |
|
834 |
< |
<cc multithreaded="true" |
835 |
< |
name="g++" |
836 |
< |
objdir="${build.dir}" |
837 |
< |
outfile="${build.dir}/JniDemo" |
838 |
< |
outtype="shared"> |
839 |
< |
|
840 |
< |
<compiler> |
841 |
< |
<defineset> |
842 |
< |
<define name="__int64" value="long long"/> |
843 |
< |
</defineset> |
844 |
< |
<includepath location="${java.home}/../include"/> |
845 |
< |
<includepath location="${java.home}/../include/${platform}"/> |
846 |
< |
<compilerarg value="-mno-cygwin"/> |
847 |
< |
</compiler> |
848 |
< |
|
849 |
< |
<linker> |
850 |
< |
<linkerarg value="--add-stdcall-alias"/> |
851 |
< |
</linker> |
852 |
< |
|
853 |
< |
<includepath location="${build.testcases.dir}"/> |
854 |
< |
|
855 |
< |
<fileset dir="${test.src.dir}" includes="JniDemo.cpp"/> |
856 |
< |
|
857 |
< |
<libset libs="stdc++"/> |
858 |
< |
|
859 |
< |
</cc> |
860 |
< |
|
861 |
< |
<!-- Necessary if windows, harmless if not --> |
862 |
< |
<copy file="${build.dir}/libJniDemo.so" tofile="${build.dir}/JniDemo.dll"/> |
863 |
< |
|
864 |
< |
<java classname="JniDemo" fork="true"> |
865 |
< |
<!-- Watch out: path separator hardwired to semicolon here! --> |
866 |
< |
<sysproperty key="java.library.path" path="${java.library.path};${build.dir}"/> |
867 |
< |
<classpath refid="test.classpath"/> |
868 |
< |
<arg line="count in word frequency of word in command line count"/> |
869 |
< |
</java> |
589 |
> |
<!-- <compilerarg line="-Xlint -Xmaxwarns 1000"/> --> |
590 |
> |
|
591 |
> |
</javac> |
592 |
|
|
593 |
|
</target> |
594 |
|
|
595 |
|
|
596 |
|
|
597 |
< |
<!-- Backward compatibility, work in progress (some files not checked in) --> |
597 |
> |
<target name="jsr166yjar" |
598 |
> |
depends="jsr166ycompile" |
599 |
> |
description="Builds library jar from compiled sources"> |
600 |
> |
|
601 |
> |
<mkdir dir="${build.jsr166ylib.dir}"/> |
602 |
> |
|
603 |
> |
<jar destfile="${jsr166yproduct.jar}"> |
604 |
> |
<fileset dir="${build.jsr166y.dir}"/> |
605 |
> |
</jar> |
606 |
|
|
607 |
+ |
</target> |
608 |
|
|
609 |
|
|
879 |
– |
<property name="pretiger.src.dir" location="${build.dir}/pretiger/src"/> |
880 |
– |
<property name="build.pretiger.dir" location="${build.dir}/pretiger/classes"/> |
881 |
– |
<property name="pretiger.jar" location="${build.lib.dir}/jsr166-pretiger.jar"/> |
882 |
– |
<property name="pretiger.sourcelevel" value="1.4"/> |
610 |
|
|
611 |
< |
<target name="defang" |
612 |
< |
depends="init" |
886 |
< |
description="Generates pre-Tiger compatible source"> |
611 |
> |
<target name="jsr166ydocs" |
612 |
> |
description="Builds javadocs with custom tags to build folder"> |
613 |
|
|
614 |
< |
<delete dir="${pretiger.src.dir}"/> |
615 |
< |
<mkdir dir="${pretiger.src.dir}"/> |
614 |
> |
<delete dir="${build.jsr166yjavadocs.dir}"/> |
615 |
> |
<mkdir dir="${build.jsr166yjavadocs.dir}"/> |
616 |
|
|
617 |
< |
<exec executable="perl"> |
618 |
< |
<arg file="etc/defang.pl"/> |
619 |
< |
<!-- <arg value="-v"/> --> |
620 |
< |
<arg value="-s"/> <arg file="${src.dir}"/> |
621 |
< |
<arg value="-t"/> <arg file="${pretiger.src.dir}"/> |
622 |
< |
</exec> |
617 |
> |
<javadoc destdir="${build.jsr166yjavadocs.dir}" |
618 |
> |
link="http://java.sun.com/javase/6/docs/api/" |
619 |
> |
sourcepath="${jsr166ysrc.dir}:/home/dl/1.5.0/j2se/martin/j2se/src/share/classes" |
620 |
> |
|
621 |
> |
> |
622 |
> |
<packageset dir="${topsrc.dir}" defaultexcludes="no"> |
623 |
> |
<include name="jsr166y"/> |
624 |
> |
</packageset> |
625 |
> |
|
626 |
> |
|
627 |
> |
</javadoc> |
628 |
|
|
629 |
|
</target> |
630 |
|
|
900 |
– |
<target name="compile-pretiger" |
901 |
– |
depends="init, configure-compiler, defang" |
902 |
– |
description="Compiles pre-Tiger sources to build folder"> |
631 |
|
|
632 |
< |
<mkdir dir="${build.pretiger.dir}"/> |
632 |
> |
<target name="jsr166ydist" |
633 |
> |
depends="jsr166ydist-clean, jsr166ydist-jar, jsr166ydist-docs" |
634 |
> |
description="Puts all distributable products in single hierarchy"/> |
635 |
|
|
906 |
– |
<javac srcdir="${pretiger.src.dir}" |
907 |
– |
destdir="${build.pretiger.dir}" |
908 |
– |
debug="${build.debug}" |
909 |
– |
debuglevel="${build.debuglevel}" |
910 |
– |
deprecation="${build.deprecation}" |
911 |
– |
source="${pretiger.sourcelevel}" |
912 |
– |
fork="true"> |
636 |
|
|
914 |
– |
<compilerarg line="${build.args}"/> |
915 |
– |
<exclude name="**/Thread.java"/> |
637 |
|
|
638 |
< |
</javac> |
638 |
> |
<target name="jsr166yclean" |
639 |
> |
description="Removes all build products"> |
640 |
> |
|
641 |
> |
<delete dir="${build.jsr166y.dir}"/> |
642 |
> |
<delete dir="${build.jsr166ylib.dir}"/> |
643 |
|
|
644 |
|
</target> |
645 |
|
|
921 |
– |
<target name="pretiger" depends="compile-pretiger"> |
646 |
|
|
923 |
– |
<mkdir dir="${build.lib.dir}"/> |
647 |
|
|
648 |
< |
<jar destfile="${pretiger.jar}"> |
649 |
< |
<fileset dir="${build.pretiger.dir}"> |
650 |
< |
</fileset> |
651 |
< |
</jar> |
648 |
> |
<target name="jsr166ydist-clean" |
649 |
> |
description="Removes all build and distribution products"> |
650 |
> |
|
651 |
> |
</target> |
652 |
> |
|
653 |
> |
<target name="jsr166ydist-docs" |
654 |
> |
description="Builds javadocs without custom tags to dist folder"> |
655 |
> |
|
656 |
> |
<delete dir="${dist.jsr166yjavadocs.dir}"/> |
657 |
> |
<mkdir dir="${dist.jsr166yjavadocs.dir}"/> |
658 |
> |
|
659 |
> |
<javadoc destdir="${dist.jsr166yjavadocs.dir}" |
660 |
> |
link="http://java.sun.com/javase/6/docs/api/" |
661 |
> |
source="${build.sourcelevel}"> |
662 |
> |
<fileset dir="${topsrc.dir}" defaultexcludes="yes"> |
663 |
> |
<include name="jsr166y/*.java"/> |
664 |
> |
<include name="jsr166y/forkjoin/*.java"/> |
665 |
> |
</fileset> |
666 |
> |
</javadoc> |
667 |
> |
|
668 |
> |
</target> |
669 |
> |
|
670 |
> |
<target name="jsr166ydist-jar" |
671 |
> |
depends="jsr166yclean, jsr166yjar"> |
672 |
> |
|
673 |
> |
<copy file="${jsr166yproduct.jar}" todir="${dist.dir}"/> |
674 |
|
|
675 |
|
</target> |
676 |
|
|