59 |
|
|
60 |
|
|
61 |
|
|
62 |
<!-- Files excluded from emulation and dist-docs --> |
<!-- Files excluded from dist-docs and emulation jar --> |
63 |
<patternset id="emulation.excludes"> |
<patternset id="unsafe.exclusion"> |
64 |
<exclude name="java/util/Random.*"/> |
<exclude name="java/util/Random.*"/> |
65 |
<exclude name="sun/misc/Unsafe.*"/> |
<exclude name="sun/misc/Unsafe.*"/> |
66 |
</patternset> |
</patternset> |
67 |
|
|
68 |
|
<!-- Files excludes from emulation jar --> |
69 |
|
<patternset id="atomic.exclusion"> |
70 |
|
<exclude name="java/util/concurrent/atomic/AtomicBoolean*"/> |
71 |
|
<exclude name="java/util/concurrent/atomic/AtomicInteger*"/> |
72 |
|
<exclude name="java/util/concurrent/atomic/AtomicLong*"/> |
73 |
|
<exclude name="java/util/concurrent/atomic/AtomicReference*"/> |
74 |
|
</patternset> |
75 |
|
|
76 |
|
|
77 |
|
|
78 |
<!-- Main targets --> |
<!-- Main targets --> |
85 |
|
|
86 |
<mkdir dir="${build.classes.dir}"/> |
<mkdir dir="${build.classes.dir}"/> |
87 |
|
|
88 |
|
<!-- |
89 |
|
<echo>javac ${gjc.args}</echo> |
90 |
|
<echo>bootclasspath=${compile.bootclasspath}</echo> |
91 |
|
--> |
92 |
|
|
93 |
<javac srcdir="${prepare.src.dir}" |
<javac srcdir="${prepare.src.dir}" |
94 |
destdir="${build.classes.dir}" |
destdir="${build.classes.dir}" |
95 |
debug="${build.debug}" |
debug="${build.debug}" |
98 |
source="${build.sourcelevel}" |
source="${build.sourcelevel}" |
99 |
fork="true"> |
fork="true"> |
100 |
|
|
101 |
<bootclasspath refid="javac.bootclasspath"/> |
<compilerarg line="${gjc.args}"/> |
102 |
<compilerarg line="${build.javac.args}"/> |
<bootclasspath refid="compile.bootclasspath"/> |
103 |
|
|
104 |
</javac> |
</javac> |
105 |
|
|
190 |
source="${build.sourcelevel}" |
source="${build.sourcelevel}" |
191 |
fork="true"> |
fork="true"> |
192 |
|
|
193 |
<bootclasspath refid="javac.bootclasspath"/> |
<compilerarg line="${gjc.args} -s"/> |
194 |
<compilerarg line="${build.javac.args} -s"/> |
<bootclasspath refid="compile.bootclasspath"/> |
195 |
|
|
196 |
</javac> |
</javac> |
197 |
|
|
202 |
depends="init, dist-clean, dist-jar, dist-docs" |
depends="init, dist-clean, dist-jar, dist-docs" |
203 |
description="Puts all distributable products in single hierarchy"/> |
description="Puts all distributable products in single hierarchy"/> |
204 |
|
|
205 |
|
<target name="release" |
206 |
|
depends="dist" |
207 |
|
description="Puts entire CVS tree, plus distribution productions, in a jar"> |
208 |
|
|
209 |
|
<delete dir="${build.dir}"/> |
210 |
|
|
211 |
|
<property name="release.jar" value="dist/jsr166-${version}-dist.jar"/> |
212 |
|
|
213 |
|
<jar basedir="${basedir}" destfile="${release.jar}"> |
214 |
|
<exclude name="${release.jar}"/> |
215 |
|
<exclude name="user.properties"/> |
216 |
|
<exclude name="etc/notes/**"/> |
217 |
|
</jar> |
218 |
|
|
219 |
|
</target> |
220 |
|
|
221 |
<target name="clean" |
<target name="clean" |
222 |
description="Removes all build products"> |
description="Removes all build products"> |
300 |
source="${build.sourcelevel}" |
source="${build.sourcelevel}" |
301 |
fork="true"> |
fork="true"> |
302 |
|
|
303 |
<bootclasspath refid="javac.bootclasspath"/> |
<compilerarg line="${gjc.args}"/> |
304 |
<compilerarg line="${build.javac.args}"/> |
<bootclasspath refid="compile.bootclasspath"/> |
305 |
|
|
306 |
</javac> |
</javac> |
307 |
|
|
315 |
|
|
316 |
<jar destfile="${product.jar}" duplicate="add"> |
<jar destfile="${product.jar}" duplicate="add"> |
317 |
<fileset dir="${build.classes.dir}"> |
<fileset dir="${build.classes.dir}"> |
318 |
<patternset refid="emulation.excludes"/> |
<patternset refid="atomic.exclusion"/> |
319 |
|
<patternset refid="unsafe.exclusion"/> |
320 |
</fileset> |
</fileset> |
321 |
<fileset dir="${build.emulation.dir}"/> |
<fileset dir="${build.emulation.dir}"/> |
322 |
</jar> |
</jar> |
365 |
<copy todir="${build.filter.src.dir}"> |
<copy todir="${build.filter.src.dir}"> |
366 |
<fileset dir="${src.dir}"> |
<fileset dir="${src.dir}"> |
367 |
<exclude name="**/*.html"/> |
<exclude name="**/*.html"/> |
368 |
<patternset refid="emulation.excludes"/> |
<patternset refid="unsafe.exclusion"/> |
369 |
</fileset> |
</fileset> |
370 |
<filterchain> |
<filterchain> |
371 |
|
|
440 |
|
|
441 |
<mkdir dir="${build.testcases.dir}"/> |
<mkdir dir="${build.testcases.dir}"/> |
442 |
|
|
443 |
|
<!-- |
444 |
|
<echo>javac ${gjc.args}</echo> |
445 |
|
<echo>bootclasspath=${test.compile.bootclasspath}</echo> |
446 |
|
<echo>classpath="${test.classpath}"</echo> |
447 |
|
--> |
448 |
|
|
449 |
<javac srcdir="${test.src.dir}" |
<javac srcdir="${test.src.dir}" |
450 |
destdir="${build.testcases.dir}" |
destdir="${build.testcases.dir}" |
451 |
debug="${build.debug}" |
debug="${build.debug}" |
454 |
source="${build.sourcelevel}" |
source="${build.sourcelevel}" |
455 |
fork="true"> |
fork="true"> |
456 |
|
|
457 |
<classpath refid="test.classpath"/> |
<compilerarg line="${gjc.args}"/> |
458 |
<bootclasspath refid="javac.bootclasspath"/> |
<bootclasspath refid="test.compile.bootclasspath"/> |
459 |
<compilerarg line="${build.javac.args}"/> |
<classpath refid="test.classpath"/> |
460 |
|
|
461 |
</javac> |
</javac> |
462 |
|
|
478 |
dir="${build.reports.dir}" |
dir="${build.reports.dir}" |
479 |
fork="true"> |
fork="true"> |
480 |
|
|
481 |
<jvmarg value="${test.bootclasspath.arg}"/> |
<jvmarg value="-Xbootclasspath/p:${test.run.bootclasspath}"/> |
482 |
|
|
483 |
<formatter type="xml"/> |
<formatter type="xml"/> |
484 |
|
|
524 |
<property name="gjc.version" |
<property name="gjc.version" |
525 |
value="2.0"/> |
value="2.0"/> |
526 |
|
|
527 |
<condition property="build.novariance" value="-novariance"> |
<condition property="novariance.arg" value="-novariance"> |
528 |
<and> |
<and> |
529 |
<equals arg1="${gjc.version}" arg2="2.0"/> |
<equals arg1="${gjc.version}" arg2="2.0"/> |
530 |
<or> |
<or> |
534 |
</and> |
</and> |
535 |
</condition> |
</condition> |
536 |
|
|
537 |
<property name="build.novariance" |
<property name="novariance.arg" |
538 |
value=""/> |
value=""/> |
539 |
|
|
540 |
<property name="gjc.dir" |
<property name="gjc.dir" |
544 |
location="${gjc.dir}/${gjc.version}/javac.jar"/> |
location="${gjc.dir}/${gjc.version}/javac.jar"/> |
545 |
|
|
546 |
<property name="collect.jar" |
<property name="collect.jar" |
547 |
location="${gjc.dir}/${gjc.version}/collect${build.novariance}.jar"/> |
location="${gjc.dir}/${gjc.version}/collect${novariance.arg}.jar"/> |
548 |
|
|
549 |
|
|
550 |
<condition property="build.warnunchecked" value="-warnunchecked"> |
<condition property="warnunchecked.arg" value="-warnunchecked"> |
551 |
<istrue value="${gjc.warnunchecked}"/> |
<istrue value="${gjc.warnunchecked}"/> |
552 |
</condition> |
</condition> |
553 |
|
|
554 |
<property name="build.warnunchecked" value=""/> |
<property name="warnunchecked.arg" value=""/> |
555 |
|
|
556 |
<condition property="prepare.src.dir" value="${build.dir}/prepare-src"> |
<condition property="prepare.src.dir" value="${build.dir}/prepare-src"> |
557 |
<istrue value="${build.nothreads}"/> |
<istrue value="${build.nothreads}"/> |
562 |
! Bootclasspath munging for source compilation. |
! Bootclasspath munging for source compilation. |
563 |
--> |
--> |
564 |
|
|
565 |
<path id="javac.bootclasspath.prefix"> |
<path id="pre.bootclasspath"> |
|
<!-- <pathelement location="${src.dir}"/> --> |
|
566 |
<pathelement location="${javac.jar}"/> |
<pathelement location="${javac.jar}"/> |
567 |
</path> |
</path> |
568 |
|
|
569 |
<path id="javac.bootclasspath"> |
<path id="compile.bootclasspath"> |
570 |
<!-- <pathelement location="${src.dir}"/> --> |
<pathelement location="${build.classes.dir}"/> |
571 |
<pathelement location="${collect.jar}"/> |
<pathelement location="${collect.jar}"/> |
572 |
<pathelement location="${rt.jar}"/> |
<pathelement location="${rt.jar}"/> |
573 |
</path> |
</path> |
574 |
|
|
575 |
<!-- Flatten bootclasspath prefix into a platform-appropriate string --> |
<!-- Flatten paths into platform-appropriate strings --> |
576 |
<property name="javac.bootclasspath.prefix" |
<property name="pre.bootclasspath" refid="pre.bootclasspath"/> |
577 |
refid="javac.bootclasspath.prefix"/> |
<property name="compile.bootclasspath" refid="compile.bootclasspath"/> |
|
|
|
|
<!-- Turn the flattened bootclasspath prefix into a javac argument --> |
|
|
<property name="build.bootclasspath.arg" |
|
|
value='-J-Xbootclasspath/p:${javac.bootclasspath.prefix}'/> |
|
|
|
|
|
<!-- Flatten bootclasspath for trace message --> |
|
|
<property name="javac.bootclasspath" |
|
|
refid="javac.bootclasspath"/> |
|
578 |
|
|
|
<!-- Common options in javac invocations --> |
|
|
<property name="build.javac.args" |
|
|
value="${build.bootclasspath.arg} ${build.warnunchecked} ${build.novariance}"/> |
|
579 |
|
|
580 |
<echo>javac ${build.javac.args}</echo> |
<!-- Common options in javac invocations --> |
581 |
<echo>bootclasspath=${javac.bootclasspath}</echo> |
<property name="gjc.args" |
582 |
|
value="-J-Xbootclasspath/p:${pre.bootclasspath} ${warnunchecked.arg} ${novariance.arg}" |
583 |
|
/> |
584 |
|
|
585 |
</target> |
</target> |
586 |
|
|
616 |
</target> |
</target> |
617 |
|
|
618 |
|
|
619 |
<target name="configure-tests"> |
<target name="configure-tests" |
620 |
|
depends="configure-compiler"> |
621 |
|
|
622 |
<!-- junit.framework.Protectable is in JUnit 3.8.1 but not in 3.7 --> |
<!-- junit.framework.Protectable is in JUnit 3.8.1 but not in 3.7 --> |
623 |
<available property="junit.available" |
<available property="junit.available" |
638 |
<pathelement location="${junit.jar}"/> |
<pathelement location="${junit.jar}"/> |
639 |
</path> |
</path> |
640 |
|
|
641 |
<!-- Flatten test classpath into a platform-appropriate string --> |
<path id="test.compile.bootclasspath"> |
642 |
<property name="test.classpath" refid="test.classpath"/> |
<pathelement location="${javac.jar}"/> |
643 |
|
<pathelement location="${collect.jar}"/> |
644 |
|
<pathelement location="${rt.jar}"/> |
645 |
|
</path> |
646 |
|
|
647 |
|
<path id="test.run.bootclasspath"> |
648 |
|
<pathelement location="${javac.jar}"/> |
649 |
|
<path refid="test.classpath"/> |
650 |
|
</path> |
651 |
|
|
652 |
<!-- Turn the flattened test classpath into a javac argument --> |
<!-- Flatten test classpaths into platform-appropriate strings --> |
653 |
<property name="test.bootclasspath.arg" |
<property name="test.classpath" refid="test.classpath"/> |
654 |
value='-Xbootclasspath/p:${test.classpath}'/> |
<property name="test.compile.bootclasspath" refid="test.compile.bootclasspath"/> |
655 |
|
<property name="test.run.bootclasspath" refid="test.run.bootclasspath"/> |
656 |
|
|
657 |
</target> |
</target> |
658 |
|
|