| 77 |
|
|
| 78 |
<mkdir dir="${build.classes.dir}"/> |
<mkdir dir="${build.classes.dir}"/> |
| 79 |
|
|
| 80 |
|
<!-- |
| 81 |
|
<echo>javac ${gjc.args}</echo> |
| 82 |
|
<echo>bootclasspath=${compile.bootclasspath}</echo> |
| 83 |
|
--> |
| 84 |
|
|
| 85 |
<javac srcdir="${prepare.src.dir}" |
<javac srcdir="${prepare.src.dir}" |
| 86 |
destdir="${build.classes.dir}" |
destdir="${build.classes.dir}" |
| 87 |
debug="${build.debug}" |
debug="${build.debug}" |
| 90 |
source="${build.sourcelevel}" |
source="${build.sourcelevel}" |
| 91 |
fork="true"> |
fork="true"> |
| 92 |
|
|
| 93 |
<bootclasspath refid="javac.bootclasspath"/> |
<compilerarg line="${gjc.args}"/> |
| 94 |
<compilerarg line="${build.javac.args}"/> |
<bootclasspath refid="compile.bootclasspath"/> |
| 95 |
|
|
| 96 |
</javac> |
</javac> |
| 97 |
|
|
| 182 |
source="${build.sourcelevel}" |
source="${build.sourcelevel}" |
| 183 |
fork="true"> |
fork="true"> |
| 184 |
|
|
| 185 |
<bootclasspath refid="javac.bootclasspath"/> |
<compilerarg line="${gjc.args} -s"/> |
| 186 |
<compilerarg line="${build.javac.args} -s"/> |
<bootclasspath refid="compile.bootclasspath"/> |
| 187 |
|
|
| 188 |
</javac> |
</javac> |
| 189 |
|
|
| 277 |
source="${build.sourcelevel}" |
source="${build.sourcelevel}" |
| 278 |
fork="true"> |
fork="true"> |
| 279 |
|
|
| 280 |
<bootclasspath refid="javac.bootclasspath"/> |
<compilerarg line="${gjc.args}"/> |
| 281 |
<compilerarg line="${build.javac.args}"/> |
<bootclasspath refid="compile.bootclasspath"/> |
| 282 |
|
|
| 283 |
</javac> |
</javac> |
| 284 |
|
|
| 416 |
|
|
| 417 |
<mkdir dir="${build.testcases.dir}"/> |
<mkdir dir="${build.testcases.dir}"/> |
| 418 |
|
|
| 419 |
|
<!-- |
| 420 |
|
<echo>javac ${gjc.args}</echo> |
| 421 |
|
<echo>bootclasspath=${test.compile.bootclasspath}</echo> |
| 422 |
|
<echo>classpath="${test.classpath}"</echo> |
| 423 |
|
--> |
| 424 |
|
|
| 425 |
<javac srcdir="${test.src.dir}" |
<javac srcdir="${test.src.dir}" |
| 426 |
destdir="${build.testcases.dir}" |
destdir="${build.testcases.dir}" |
| 427 |
debug="${build.debug}" |
debug="${build.debug}" |
| 430 |
source="${build.sourcelevel}" |
source="${build.sourcelevel}" |
| 431 |
fork="true"> |
fork="true"> |
| 432 |
|
|
| 433 |
|
<compilerarg line="${gjc.args}"/> |
| 434 |
|
<bootclasspath refid="test.compile.bootclasspath"/> |
| 435 |
<classpath refid="test.classpath"/> |
<classpath refid="test.classpath"/> |
|
<bootclasspath refid="javac.bootclasspath"/> |
|
|
<compilerarg line="${build.javac.args}"/> |
|
| 436 |
|
|
| 437 |
</javac> |
</javac> |
| 438 |
|
|
| 454 |
dir="${build.reports.dir}" |
dir="${build.reports.dir}" |
| 455 |
fork="true"> |
fork="true"> |
| 456 |
|
|
| 457 |
<jvmarg value="${test.bootclasspath.arg}"/> |
<jvmarg value="-Xbootclasspath/p:${test.run.bootclasspath}"/> |
| 458 |
|
|
| 459 |
<formatter type="xml"/> |
<formatter type="xml"/> |
| 460 |
|
|
| 500 |
<property name="gjc.version" |
<property name="gjc.version" |
| 501 |
value="2.0"/> |
value="2.0"/> |
| 502 |
|
|
| 503 |
<condition property="build.novariance" value="-novariance"> |
<condition property="novariance.arg" value="-novariance"> |
| 504 |
<and> |
<and> |
| 505 |
<equals arg1="${gjc.version}" arg2="2.0"/> |
<equals arg1="${gjc.version}" arg2="2.0"/> |
| 506 |
<or> |
<or> |
| 510 |
</and> |
</and> |
| 511 |
</condition> |
</condition> |
| 512 |
|
|
| 513 |
<property name="build.novariance" |
<property name="novariance.arg" |
| 514 |
value=""/> |
value=""/> |
| 515 |
|
|
| 516 |
<property name="gjc.dir" |
<property name="gjc.dir" |
| 520 |
location="${gjc.dir}/${gjc.version}/javac.jar"/> |
location="${gjc.dir}/${gjc.version}/javac.jar"/> |
| 521 |
|
|
| 522 |
<property name="collect.jar" |
<property name="collect.jar" |
| 523 |
location="${gjc.dir}/${gjc.version}/collect${build.novariance}.jar"/> |
location="${gjc.dir}/${gjc.version}/collect${novariance.arg}.jar"/> |
| 524 |
|
|
| 525 |
|
|
| 526 |
<condition property="build.warnunchecked" value="-warnunchecked"> |
<condition property="warnunchecked.arg" value="-warnunchecked"> |
| 527 |
<istrue value="${gjc.warnunchecked}"/> |
<istrue value="${gjc.warnunchecked}"/> |
| 528 |
</condition> |
</condition> |
| 529 |
|
|
| 530 |
<property name="build.warnunchecked" value=""/> |
<property name="warnunchecked.arg" value=""/> |
| 531 |
|
|
| 532 |
<condition property="prepare.src.dir" value="${build.dir}/prepare-src"> |
<condition property="prepare.src.dir" value="${build.dir}/prepare-src"> |
| 533 |
<istrue value="${build.nothreads}"/> |
<istrue value="${build.nothreads}"/> |
| 538 |
! Bootclasspath munging for source compilation. |
! Bootclasspath munging for source compilation. |
| 539 |
--> |
--> |
| 540 |
|
|
| 541 |
<path id="javac.bootclasspath.prefix"> |
<path id="pre.bootclasspath"> |
|
<!-- <pathelement location="${src.dir}"/> --> |
|
| 542 |
<pathelement location="${javac.jar}"/> |
<pathelement location="${javac.jar}"/> |
| 543 |
</path> |
</path> |
| 544 |
|
|
| 545 |
<path id="javac.bootclasspath"> |
<path id="compile.bootclasspath"> |
|
<!-- <pathelement location="${src.dir}"/> --> |
|
| 546 |
<pathelement location="${collect.jar}"/> |
<pathelement location="${collect.jar}"/> |
| 547 |
<pathelement location="${rt.jar}"/> |
<pathelement location="${rt.jar}"/> |
| 548 |
</path> |
</path> |
| 549 |
|
|
| 550 |
<!-- Flatten bootclasspath prefix into a platform-appropriate string --> |
<!-- Flatten paths into platform-appropriate strings --> |
| 551 |
<property name="javac.bootclasspath.prefix" |
<property name="pre.bootclasspath" refid="pre.bootclasspath"/> |
| 552 |
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"/> |
|
| 553 |
|
|
|
<!-- Common options in javac invocations --> |
|
|
<property name="build.javac.args" |
|
|
value="${build.bootclasspath.arg} ${build.warnunchecked} ${build.novariance}"/> |
|
| 554 |
|
|
| 555 |
<echo>javac ${build.javac.args}</echo> |
<!-- Common options in javac invocations --> |
| 556 |
<echo>bootclasspath=${javac.bootclasspath}</echo> |
<property name="gjc.args" |
| 557 |
|
value="-J-Xbootclasspath/p:${pre.bootclasspath} ${warnunchecked.arg} ${novariance.arg}" |
| 558 |
|
/> |
| 559 |
|
|
| 560 |
</target> |
</target> |
| 561 |
|
|
| 591 |
</target> |
</target> |
| 592 |
|
|
| 593 |
|
|
| 594 |
<target name="configure-tests"> |
<target name="configure-tests" |
| 595 |
|
depends="configure-compiler"> |
| 596 |
|
|
| 597 |
<!-- 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 --> |
| 598 |
<available property="junit.available" |
<available property="junit.available" |
| 613 |
<pathelement location="${junit.jar}"/> |
<pathelement location="${junit.jar}"/> |
| 614 |
</path> |
</path> |
| 615 |
|
|
| 616 |
<!-- Flatten test classpath into a platform-appropriate string --> |
<path id="test.compile.bootclasspath"> |
| 617 |
<property name="test.classpath" refid="test.classpath"/> |
<pathelement location="${javac.jar}"/> |
| 618 |
|
<pathelement location="${collect.jar}"/> |
| 619 |
|
<pathelement location="${rt.jar}"/> |
| 620 |
|
</path> |
| 621 |
|
|
| 622 |
<!-- Turn the flattened test classpath into a javac argument --> |
<path id="test.run.bootclasspath"> |
| 623 |
<property name="test.bootclasspath.arg" |
<pathelement location="${javac.jar}"/> |
| 624 |
value='-Xbootclasspath/p:${test.classpath}'/> |
<path refid="test.classpath"/> |
| 625 |
|
</path> |
| 626 |
|
|
| 627 |
|
<!-- Flatten test classpaths into platform-appropriate strings --> |
| 628 |
|
<property name="test.classpath" refid="test.classpath"/> |
| 629 |
|
<property name="test.compile.bootclasspath" refid="test.compile.bootclasspath"/> |
| 630 |
|
<property name="test.run.bootclasspath" refid="test.run.bootclasspath"/> |
| 631 |
|
|
| 632 |
</target> |
</target> |
| 633 |
|
|