102 |
source="${build.sourcelevel}" |
source="${build.sourcelevel}" |
103 |
fork="true"> |
fork="true"> |
104 |
|
|
|
<!-- |
|
105 |
<compilerarg line="${gjc.args}"/> |
<compilerarg line="${gjc.args}"/> |
106 |
|
<!-- |
107 |
<bootclasspath refid="compile.bootclasspath"/> |
<bootclasspath refid="compile.bootclasspath"/> |
108 |
--> |
--> |
109 |
|
|
238 |
source="${build.sourcelevel}" |
source="${build.sourcelevel}" |
239 |
fork="true"> |
fork="true"> |
240 |
|
|
|
<!-- |
|
241 |
<compilerarg line="${gjc.args} -s"/> |
<compilerarg line="${gjc.args} -s"/> |
242 |
|
<!-- |
243 |
<bootclasspath refid="compile.bootclasspath"/> |
<bootclasspath refid="compile.bootclasspath"/> |
244 |
--> |
--> |
245 |
|
|
246 |
</javac> |
</javac> |
247 |
|
|
318 |
<!-- Version is kept in a separate file --> |
<!-- Version is kept in a separate file --> |
319 |
<loadfile property="version" srcFile="version.properties"/> |
<loadfile property="version" srcFile="version.properties"/> |
320 |
<echo>Building JSR-166 version ${version}</echo> |
<echo>Building JSR-166 version ${version}</echo> |
321 |
|
<echo>java.home is ${java.home}</echo> |
322 |
|
|
323 |
</target> |
</target> |
324 |
|
|
356 |
fork="true"> |
fork="true"> |
357 |
|
|
358 |
<compilerarg line="${gjc.args}"/> |
<compilerarg line="${gjc.args}"/> |
359 |
|
<!-- |
360 |
<bootclasspath refid="compile.bootclasspath"/> |
<bootclasspath refid="compile.bootclasspath"/> |
361 |
|
--> |
362 |
|
|
363 |
</javac> |
</javac> |
364 |
|
|
527 |
source="${build.sourcelevel}" |
source="${build.sourcelevel}" |
528 |
fork="true"> |
fork="true"> |
529 |
|
|
|
<!-- |
|
530 |
<compilerarg line="${gjc.args}"/> |
<compilerarg line="${gjc.args}"/> |
531 |
--> |
<!-- |
532 |
<bootclasspath refid="test.compile.bootclasspath"/> |
<bootclasspath refid="test.compile.bootclasspath"/> |
533 |
|
--> |
534 |
<classpath refid="test.classpath"/> |
<classpath refid="test.classpath"/> |
535 |
|
|
536 |
|
<include name="java/**"/> |
537 |
|
<include name="jsr166/**"/> |
538 |
|
|
539 |
</javac> |
</javac> |
540 |
|
|
556 |
dir="${build.reports.dir}" |
dir="${build.reports.dir}" |
557 |
fork="true"> |
fork="true"> |
558 |
|
|
559 |
<jvmarg value="-Xbootclasspath/p:${test.run.bootclasspath}"/> |
<jvmarg value="-Xbootclasspath:${test.run.bootclasspath}"/> |
560 |
|
|
561 |
<formatter type="xml"/> |
<formatter type="xml"/> |
562 |
|
|
563 |
<batchtest todir="${build.reports.dir}"> |
<batchtest todir="${build.reports.dir}"> |
564 |
<fileset dir="${test.src.dir}"> |
<fileset dir="${test.src.dir}"> |
565 |
<include name="**/${testcase}Test.java"/> |
<include name="java/**/${testcase}Test.java"/> |
566 |
|
<include name="jsr166/**/${testcase}Test.java"/> |
567 |
</fileset> |
</fileset> |
568 |
</batchtest> |
</batchtest> |
569 |
|
|
575 |
<target name="report-tests" |
<target name="report-tests" |
576 |
depends="run-tests"> |
depends="run-tests"> |
577 |
|
|
578 |
<!-- Sets junit.report.format to frames if Xalan is present, |
<!-- Sets junit.report.format to frames if redirection is present, |
579 |
otherwise sets it to noframes. --> |
otherwise sets it to noframes. --> |
580 |
<available property="junit.report.format" |
<available property="junit.report.format" |
581 |
value="frames" |
value="frames" |
599 |
|
|
600 |
|
|
601 |
<target name="configure-compiler"> |
<target name="configure-compiler"> |
602 |
<!-- |
|
603 |
<property name="gjc.version" |
<property name="gjc.version" |
604 |
value="2.2"/> |
value="2.2"/> |
605 |
|
|
625 |
<property name="collect.jar" |
<property name="collect.jar" |
626 |
location="${gjc.dir}/${gjc.version}/collect${novariance.arg}.jar"/> |
location="${gjc.dir}/${gjc.version}/collect${novariance.arg}.jar"/> |
627 |
|
|
628 |
|
<!-- |
629 |
|
<property name="unchecked.option" value="-warnunchecked"/> |
630 |
--> |
--> |
631 |
<condition property="warnunchecked.arg" value="-warnunchecked"> |
|
632 |
|
<property name="unchecked.option" value="-Xlint:unchecked"/> |
633 |
|
|
634 |
|
<condition property="warnunchecked.arg" value="${unchecked.option}"> |
635 |
<istrue value="${gjc.warnunchecked}"/> |
<istrue value="${gjc.warnunchecked}"/> |
636 |
</condition> |
</condition> |
637 |
|
|
638 |
<property name="warnunchecked.arg" value=""/> |
<property name="warnunchecked.arg" value=""/> |
639 |
|
|
640 |
<condition property="prepare.src.dir" value="${build.dir}/prepare-src"> |
<condition property="prepare.src.dir" value="${build.dir}/prepare-src"> |
641 |
<istrue value="${build.nothreads}"/> |
<istrue value="${build.nothreads}"/> |
642 |
</condition> |
</condition> |
647 |
--> |
--> |
648 |
|
|
649 |
<path id="pre.bootclasspath"> |
<path id="pre.bootclasspath"> |
650 |
|
<!-- |
651 |
<pathelement location="${javac.jar}"/> |
<pathelement location="${javac.jar}"/> |
652 |
|
--> |
653 |
</path> |
</path> |
654 |
|
|
655 |
<path id="compile.bootclasspath"> |
<path id="compile.bootclasspath"> |
656 |
<pathelement location="${build.classes.dir}"/> |
<pathelement location="${build.classes.dir}"/> |
657 |
|
<!-- |
658 |
<pathelement location="${collect.jar}"/> |
<pathelement location="${collect.jar}"/> |
659 |
|
--> |
660 |
<pathelement location="${rt.jar}"/> |
<pathelement location="${rt.jar}"/> |
661 |
</path> |
</path> |
662 |
|
|
671 |
value="-J-Xbootclasspath/p:${pre.bootclasspath} ${warnunchecked.arg} ${novariance.arg}" |
value="-J-Xbootclasspath/p:${pre.bootclasspath} ${warnunchecked.arg} ${novariance.arg}" |
672 |
/> |
/> |
673 |
--> |
--> |
674 |
|
<property name="gjc.args" value="${warnunchecked.arg} ${novariance.arg}"/> |
675 |
|
|
676 |
</target> |
</target> |
677 |
|
|
717 |
<fail message="Need JUnit 3.8.1 in ${ant.home}${file.separator}lib to run tests" |
<fail message="Need JUnit 3.8.1 in ${ant.home}${file.separator}lib to run tests" |
718 |
unless="junit.available"/> |
unless="junit.available"/> |
719 |
|
|
720 |
|
<!-- Xalan --> |
721 |
|
<available property="xalan.available" |
722 |
|
classname="org.apache.xalan.Version"/> |
723 |
|
|
724 |
|
<fail message="Need Xalan 2.5.1 jar in ${ant.home}${file.separator}lib to run tests" |
725 |
|
unless="xalan.available"/> |
726 |
|
|
727 |
|
|
728 |
<!-- |
<!-- |
729 |
! Bootclasspath munging for testing, so JUnit can test our local |
! Bootclasspath munging for testing, so JUnit can test our local |
732 |
|
|
733 |
<path id="test.classpath"> |
<path id="test.classpath"> |
734 |
<pathelement location="${product.jar}"/> |
<pathelement location="${product.jar}"/> |
735 |
|
<pathelement location="${rt.jar}"/> |
736 |
<pathelement location="${build.testcases.dir}"/> |
<pathelement location="${build.testcases.dir}"/> |
737 |
<pathelement location="${junit.jar}"/> |
<pathelement location="${junit.jar}"/> |
738 |
</path> |
</path> |
744 |
</path> |
</path> |
745 |
|
|
746 |
<path id="test.run.bootclasspath"> |
<path id="test.run.bootclasspath"> |
747 |
<pathelement location="${javac.jar}"/> |
<!-- |
748 |
|
<pathelement location="${javac.jar}"/> |
749 |
|
--> |
750 |
<path refid="test.classpath"/> |
<path refid="test.classpath"/> |
751 |
</path> |
</path> |
752 |
|
|
761 |
|
|
762 |
<!-- Anthill targets --> |
<!-- Anthill targets --> |
763 |
|
|
764 |
<target name="anthill-build" |
<target name="anthill-build"> |
765 |
|
|
766 |
|
<!-- Override this in user.properties --> |
767 |
|
<property name="tiger.home" location="e:/j2sdk1.5.0"/> |
768 |
|
|
769 |
|
<exec resultproperty="result.property" dir="${basedir}" executable="${tiger.home}/bin/java"> |
770 |
|
<arg value="-Xmx256000000"/> |
771 |
|
<!-- classpath of new JVM --> |
772 |
|
<arg value="-classpath"/> <arg path="${java.class.path}"/> |
773 |
|
<!-- location of Ant home directory --> |
774 |
|
<arg value="-Dant.home=${ant.home}"/> |
775 |
|
<!-- the Ant main class --> |
776 |
|
<arg value="org.apache.tools.ant.Main"/> |
777 |
|
<!-- The build file --> |
778 |
|
<arg value="-buildfile"/> <arg value="build.xml"/> |
779 |
|
<!-- the target to build on the new Ant instance --> |
780 |
|
<arg value="-DJAVA_HOME=${tiger.home}"/> |
781 |
|
<arg value="do-anthill-build"/> |
782 |
|
</exec> |
783 |
|
</target> |
784 |
|
|
785 |
|
<target name="do-anthill-build" |
786 |
depends="jar, test, docs, dist-docs"/> |
depends="jar, test, docs, dist-docs"/> |
787 |
|
|
788 |
<target name="anthill-publish"> |
<target name="anthill-publish"> |