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 |
|
|
285 |
source="${build.sourcelevel}" |
source="${build.sourcelevel}" |
286 |
fork="true"> |
fork="true"> |
287 |
|
|
288 |
<bootclasspath refid="javac.bootclasspath"/> |
<compilerarg line="${gjc.args}"/> |
289 |
<compilerarg line="${build.javac.args}"/> |
<bootclasspath refid="compile.bootclasspath"/> |
290 |
|
|
291 |
</javac> |
</javac> |
292 |
|
|
300 |
|
|
301 |
<jar destfile="${product.jar}" duplicate="add"> |
<jar destfile="${product.jar}" duplicate="add"> |
302 |
<fileset dir="${build.classes.dir}"> |
<fileset dir="${build.classes.dir}"> |
303 |
<patternset refid="emulation.excludes"/> |
<patternset refid="atomic.exclusion"/> |
304 |
|
<patternset refid="unsafe.exclusion"/> |
305 |
</fileset> |
</fileset> |
306 |
<fileset dir="${build.emulation.dir}"/> |
<fileset dir="${build.emulation.dir}"/> |
307 |
</jar> |
</jar> |
350 |
<copy todir="${build.filter.src.dir}"> |
<copy todir="${build.filter.src.dir}"> |
351 |
<fileset dir="${src.dir}"> |
<fileset dir="${src.dir}"> |
352 |
<exclude name="**/*.html"/> |
<exclude name="**/*.html"/> |
353 |
<patternset refid="emulation.excludes"/> |
<patternset refid="unsafe.exclusion"/> |
354 |
</fileset> |
</fileset> |
355 |
<filterchain> |
<filterchain> |
356 |
|
|
425 |
|
|
426 |
<mkdir dir="${build.testcases.dir}"/> |
<mkdir dir="${build.testcases.dir}"/> |
427 |
|
|
428 |
|
<!-- |
429 |
|
<echo>javac ${gjc.args}</echo> |
430 |
|
<echo>bootclasspath=${test.compile.bootclasspath}</echo> |
431 |
|
<echo>classpath="${test.classpath}"</echo> |
432 |
|
--> |
433 |
|
|
434 |
<javac srcdir="${test.src.dir}" |
<javac srcdir="${test.src.dir}" |
435 |
destdir="${build.testcases.dir}" |
destdir="${build.testcases.dir}" |
436 |
debug="${build.debug}" |
debug="${build.debug}" |
439 |
source="${build.sourcelevel}" |
source="${build.sourcelevel}" |
440 |
fork="true"> |
fork="true"> |
441 |
|
|
442 |
<classpath refid="test.classpath"/> |
<compilerarg line="${gjc.args}"/> |
443 |
<bootclasspath refid="javac.bootclasspath"/> |
<bootclasspath refid="test.compile.bootclasspath"/> |
444 |
<compilerarg line="${build.javac.args}"/> |
<classpath refid="test.classpath"/> |
445 |
|
|
446 |
</javac> |
</javac> |
447 |
|
|
463 |
dir="${build.reports.dir}" |
dir="${build.reports.dir}" |
464 |
fork="true"> |
fork="true"> |
465 |
|
|
466 |
<jvmarg value="${test.bootclasspath.arg}"/> |
<jvmarg value="-Xbootclasspath/p:${test.run.bootclasspath}"/> |
467 |
|
|
468 |
<formatter type="xml"/> |
<formatter type="xml"/> |
469 |
|
|
509 |
<property name="gjc.version" |
<property name="gjc.version" |
510 |
value="2.0"/> |
value="2.0"/> |
511 |
|
|
512 |
<condition property="build.novariance" value="-novariance"> |
<condition property="novariance.arg" value="-novariance"> |
513 |
<and> |
<and> |
514 |
<equals arg1="${gjc.version}" arg2="2.0"/> |
<equals arg1="${gjc.version}" arg2="2.0"/> |
515 |
<or> |
<or> |
519 |
</and> |
</and> |
520 |
</condition> |
</condition> |
521 |
|
|
522 |
<property name="build.novariance" |
<property name="novariance.arg" |
523 |
value=""/> |
value=""/> |
524 |
|
|
525 |
<property name="gjc.dir" |
<property name="gjc.dir" |
529 |
location="${gjc.dir}/${gjc.version}/javac.jar"/> |
location="${gjc.dir}/${gjc.version}/javac.jar"/> |
530 |
|
|
531 |
<property name="collect.jar" |
<property name="collect.jar" |
532 |
location="${gjc.dir}/${gjc.version}/collect${build.novariance}.jar"/> |
location="${gjc.dir}/${gjc.version}/collect${novariance.arg}.jar"/> |
533 |
|
|
534 |
|
|
535 |
<condition property="build.warnunchecked" value="-warnunchecked"> |
<condition property="warnunchecked.arg" value="-warnunchecked"> |
536 |
<istrue value="${gjc.warnunchecked}"/> |
<istrue value="${gjc.warnunchecked}"/> |
537 |
</condition> |
</condition> |
538 |
|
|
539 |
<property name="build.warnunchecked" value=""/> |
<property name="warnunchecked.arg" value=""/> |
540 |
|
|
541 |
<condition property="prepare.src.dir" value="${build.dir}/prepare-src"> |
<condition property="prepare.src.dir" value="${build.dir}/prepare-src"> |
542 |
<istrue value="${build.nothreads}"/> |
<istrue value="${build.nothreads}"/> |
547 |
! Bootclasspath munging for source compilation. |
! Bootclasspath munging for source compilation. |
548 |
--> |
--> |
549 |
|
|
550 |
<path id="javac.bootclasspath.prefix"> |
<path id="pre.bootclasspath"> |
|
<!-- <pathelement location="${src.dir}"/> --> |
|
551 |
<pathelement location="${javac.jar}"/> |
<pathelement location="${javac.jar}"/> |
552 |
</path> |
</path> |
553 |
|
|
554 |
<path id="javac.bootclasspath"> |
<path id="compile.bootclasspath"> |
555 |
<!-- <pathelement location="${src.dir}"/> --> |
<pathelement location="${build.classes.dir}"/> |
556 |
<pathelement location="${collect.jar}"/> |
<pathelement location="${collect.jar}"/> |
557 |
<pathelement location="${rt.jar}"/> |
<pathelement location="${rt.jar}"/> |
558 |
</path> |
</path> |
559 |
|
|
560 |
<!-- Flatten bootclasspath prefix into a platform-appropriate string --> |
<!-- Flatten paths into platform-appropriate strings --> |
561 |
<property name="javac.bootclasspath.prefix" |
<property name="pre.bootclasspath" refid="pre.bootclasspath"/> |
562 |
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"/> |
|
563 |
|
|
|
<!-- Common options in javac invocations --> |
|
|
<property name="build.javac.args" |
|
|
value="${build.bootclasspath.arg} ${build.warnunchecked} ${build.novariance}"/> |
|
564 |
|
|
565 |
<echo>javac ${build.javac.args}</echo> |
<!-- Common options in javac invocations --> |
566 |
<echo>bootclasspath=${javac.bootclasspath}</echo> |
<property name="gjc.args" |
567 |
|
value="-J-Xbootclasspath/p:${pre.bootclasspath} ${warnunchecked.arg} ${novariance.arg}" |
568 |
|
/> |
569 |
|
|
570 |
</target> |
</target> |
571 |
|
|
601 |
</target> |
</target> |
602 |
|
|
603 |
|
|
604 |
<target name="configure-tests"> |
<target name="configure-tests" |
605 |
|
depends="configure-compiler"> |
606 |
|
|
607 |
<!-- 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 --> |
608 |
<available property="junit.available" |
<available property="junit.available" |
623 |
<pathelement location="${junit.jar}"/> |
<pathelement location="${junit.jar}"/> |
624 |
</path> |
</path> |
625 |
|
|
626 |
<!-- Flatten test classpath into a platform-appropriate string --> |
<path id="test.compile.bootclasspath"> |
627 |
<property name="test.classpath" refid="test.classpath"/> |
<pathelement location="${javac.jar}"/> |
628 |
|
<pathelement location="${collect.jar}"/> |
629 |
|
<pathelement location="${rt.jar}"/> |
630 |
|
</path> |
631 |
|
|
632 |
|
<path id="test.run.bootclasspath"> |
633 |
|
<pathelement location="${javac.jar}"/> |
634 |
|
<path refid="test.classpath"/> |
635 |
|
</path> |
636 |
|
|
637 |
<!-- Turn the flattened test classpath into a javac argument --> |
<!-- Flatten test classpaths into platform-appropriate strings --> |
638 |
<property name="test.bootclasspath.arg" |
<property name="test.classpath" refid="test.classpath"/> |
639 |
value='-Xbootclasspath/p:${test.classpath}'/> |
<property name="test.compile.bootclasspath" refid="test.compile.bootclasspath"/> |
640 |
|
<property name="test.run.bootclasspath" refid="test.run.bootclasspath"/> |
641 |
|
|
642 |
</target> |
</target> |
643 |
|
|