| 31 |
<property name="build.classes.dir" location="${build.dir}/classes"/> |
<property name="build.classes.dir" location="${build.dir}/classes"/> |
| 32 |
<property name="build.testcases.dir" location="${build.dir}/testcases"/> |
<property name="build.testcases.dir" location="${build.dir}/testcases"/> |
| 33 |
<property name="build.j1.dir" location="${build.dir}/j1"/> |
<property name="build.j1.dir" location="${build.dir}/j1"/> |
| 34 |
|
<property name="build.loops.dir" location="${build.dir}/loops"/> |
| 35 |
<property name="build.lib.dir" location="${build.dir}/lib"/> |
<property name="build.lib.dir" location="${build.dir}/lib"/> |
| 36 |
<property name="build.ant.dir" location="${build.dir}/ant"/> |
<property name="build.ant.dir" location="${build.dir}/ant"/> |
| 37 |
<property name="build.javadocs.dir" location="${build.dir}/javadocs"/> |
<property name="build.javadocs.dir" location="${build.dir}/javadocs"/> |
| 45 |
<property name="src.dir" location="${basedir}/src/main"/> |
<property name="src.dir" location="${basedir}/src/main"/> |
| 46 |
<property name="test.src.dir" location="${basedir}/src/test"/> |
<property name="test.src.dir" location="${basedir}/src/test"/> |
| 47 |
<property name="j1.src.dir" location="${basedir}/src/javaone"/> |
<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"/> |
<property name="tck.src.dir" location="${test.src.dir}/tck"/> |
| 50 |
<property name="jtreg.src.dir" location="${test.src.dir}/jtreg"/> |
<property name="jtreg.src.dir" location="${test.src.dir}/jtreg"/> |
| 51 |
<property name="ant.src.dir" location="${basedir}/etc/ant"/> |
<property name="ant.src.dir" location="${basedir}/etc/ant"/> |
| 69 |
<pathelement location="${junit.jar}"/> |
<pathelement location="${junit.jar}"/> |
| 70 |
</path> |
</path> |
| 71 |
|
|
| 72 |
<!-- Test classpath --> |
<!-- ALoops classpath --> |
| 73 |
|
<path id="loops.classpath"> |
| 74 |
|
<pathelement location="${build.loops.dir}"/> |
| 75 |
|
</path> |
| 76 |
|
|
| 77 |
|
<!-- J1 classpath --> |
| 78 |
<path id="j1.classpath"> |
<path id="j1.classpath"> |
| 79 |
<pathelement location="${build.j1.dir}"/> |
<pathelement location="${build.j1.dir}"/> |
| 80 |
<pathelement location="${junit.jar}"/> |
<pathelement location="${junit.jar}"/> |
| 283 |
|
|
| 284 |
<javac srcdir="${ant.src.dir}" |
<javac srcdir="${ant.src.dir}" |
| 285 |
destdir="${build.ant.dir}" |
destdir="${build.ant.dir}" |
| 286 |
source="1.4" |
source="1.4"/> |
|
/> |
|
| 287 |
|
|
| 288 |
</target> |
</target> |
| 289 |
|
|
| 606 |
</target> |
</target> |
| 607 |
|
|
| 608 |
|
|
|
<!-- Standalone sample program --> |
|
| 609 |
|
|
| 610 |
<target name="sample" depends=""> |
<!-- Various demos and test programs --> |
| 611 |
|
|
| 612 |
|
|
| 613 |
|
<target name="sample" depends="init, configure-compiler" |
| 614 |
|
description="Standalone demo program"> |
| 615 |
|
|
| 616 |
<mkdir dir="${build.testcases.dir}"/> |
<mkdir dir="${build.testcases.dir}"/> |
| 617 |
|
|
| 623 |
source="${build.sourcelevel}" |
source="${build.sourcelevel}" |
| 624 |
fork="true"> |
fork="true"> |
| 625 |
|
|
|
<!-- |
|
|
<compilerarg value="${bootclasspath.args}"/> |
|
|
<compilerarg line="${build.args}"/> |
|
|
|
|
|
<classpath refid="test.classpath"/> |
|
|
--> |
|
|
|
|
| 626 |
<include name="jsr166/test/Sample.java"/> |
<include name="jsr166/test/Sample.java"/> |
| 627 |
|
|
| 628 |
</javac> |
</javac> |
| 635 |
|
|
| 636 |
|
|
| 637 |
<java classname="jsr166.test.Sample" fork="true"> |
<java classname="jsr166.test.Sample" fork="true"> |
|
<jvmarg value="${bootclasspath.args}"/> |
|
|
<!-- <jvmarg value="-server"/> --> |
|
|
<!-- <jvmarg value="-ea"/> --> |
|
| 638 |
<classpath refid="test.classpath"/> |
<classpath refid="test.classpath"/> |
| 639 |
|
<!-- <jvmarg value="-ea"/> --> |
| 640 |
|
<!-- <jvmarg value="-server"/> --> |
| 641 |
<!-- <arg value="1000"/> --> |
<!-- <arg value="1000"/> --> |
| 642 |
</java> |
</java> |
| 643 |
</target> |
</target> |
| 644 |
|
|
| 645 |
|
|
| 646 |
<!-- BoF demos --> |
<target name="loops" depends="init, configure-compiler" |
| 647 |
|
description="Benchmark from Doug Lea's AQS paper"> |
| 648 |
|
|
| 649 |
|
<mkdir dir="${build.loops.dir}"/> |
| 650 |
|
|
| 651 |
|
<javac srcdir="${loops.src.dir}" |
| 652 |
|
destdir="${build.loops.dir}" |
| 653 |
|
debug="${build.debug}" |
| 654 |
|
debuglevel="${build.debuglevel}" |
| 655 |
|
deprecation="${build.deprecation}" |
| 656 |
|
source="${build.sourcelevel}" |
| 657 |
|
fork="true"> |
| 658 |
|
|
| 659 |
|
<compilerarg line="${build.args}"/> |
| 660 |
|
<classpath refid="loops.classpath"/> |
| 661 |
|
|
| 662 |
|
</javac> |
| 663 |
|
|
| 664 |
|
<java classname="ALoops" fork="true"> |
| 665 |
|
<classpath refid="loops.classpath"/> |
| 666 |
|
</java> |
| 667 |
|
|
| 668 |
<target name="j1" depends="jar"> |
</target> |
| 669 |
|
|
| 670 |
|
|
| 671 |
|
<target name="compile-j1" depends="init, configure-compiler"> |
| 672 |
|
|
| 673 |
<mkdir dir="${build.j1.dir}"/> |
<mkdir dir="${build.j1.dir}"/> |
| 674 |
|
|
| 680 |
source="${build.sourcelevel}" |
source="${build.sourcelevel}" |
| 681 |
fork="true"> |
fork="true"> |
| 682 |
|
|
|
<compilerarg value="${bootclasspath.args}"/> |
|
| 683 |
<compilerarg line="${build.args}"/> |
<compilerarg line="${build.args}"/> |
|
|
|
| 684 |
<classpath refid="j1.classpath"/> |
<classpath refid="j1.classpath"/> |
| 685 |
|
|
| 686 |
</javac> |
</javac> |
| 687 |
|
|
| 688 |
|
</target> |
| 689 |
|
|
| 690 |
|
|
| 691 |
|
<target name="sw" depends="compile-j1" |
| 692 |
|
description="Runs the SwingWorker demo"> |
| 693 |
|
|
| 694 |
<!-- |
<!-- |
| 695 |
<java classname="MainClass" fork="true"> |
<java classname="jsr166.swing.SwingWorkerDemo" fork="true"> |
|
<jvmarg value="${bootclasspath.args}"/> |
|
| 696 |
<classpath refid="j1.classpath"/> |
<classpath refid="j1.classpath"/> |
| 697 |
</java> |
</java> |
| 698 |
--> |
--> |
| 699 |
|
|
| 700 |
|
<copy todir="${build.j1.dir}" file="${j1.src.dir}/jsr166/swing/SwingWorker.html"/> |
| 701 |
|
|
| 702 |
|
<exec dir="${build.j1.dir}" executable="appletviewer.exe"> |
| 703 |
|
<arg value="${build.j1.dir}/SwingWorker.html"/> |
| 704 |
|
</exec> |
| 705 |
|
|
| 706 |
|
</target> |
| 707 |
|
|
| 708 |
|
<target name="j1" depends="compile-j1" |
| 709 |
|
description="Runs a standalone JavaOne program"> |
| 710 |
|
|
| 711 |
|
<java classname="jsr166.misc.SortedEnumSet" fork="true"> |
| 712 |
|
<classpath refid="j1.classpath"/> |
| 713 |
|
</java> |
| 714 |
|
|
| 715 |
|
</target> |
| 716 |
|
|
| 717 |
|
|
| 718 |
|
<target name="test-j1" depends="compile-j1" |
| 719 |
|
description="Runs testcases from the JavaOne source directories"> |
| 720 |
|
|
| 721 |
<junit printsummary="true" |
<junit printsummary="true" |
| 722 |
showoutput="true" |
showoutput="true" |
| 723 |
errorProperty="junit.failed" |
errorProperty="junit.failed" |
| 725 |
dir="${build.j1.dir}" |
dir="${build.j1.dir}" |
| 726 |
fork="true"> |
fork="true"> |
| 727 |
|
|
| 728 |
<jvmarg value="${bootclasspath.args}"/> |
<!-- <jvmarg value="-server"/> --> |
|
<jvmarg value="-server"/> |
|
|
|
|
| 729 |
<classpath refid="j1.classpath"/> |
<classpath refid="j1.classpath"/> |
|
|
|
| 730 |
<formatter type="xml"/> |
<formatter type="xml"/> |
| 731 |
|
|
| 732 |
<batchtest todir="${build.j1.dir}"> |
<batchtest todir="${build.j1.dir}"> |
| 737 |
|
|
| 738 |
</junit> |
</junit> |
| 739 |
|
|
|
<!-- Sets junit.report.format to frames if redirection is present, |
|
|
otherwise sets it to noframes. --> |
|
| 740 |
<available property="junit.report.format" |
<available property="junit.report.format" |
| 741 |
value="frames" |
value="frames" |
| 742 |
classname="org.apache.xalan.lib.Redirect" |
classname="org.apache.xalan.lib.Redirect"/> |
|
/> |
|
| 743 |
<property name="junit.report.format" value="noframes"/> |
<property name="junit.report.format" value="noframes"/> |
| 744 |
|
|
| 745 |
<junitreport todir="${build.j1.dir}"> |
<junitreport todir="${build.j1.dir}"> |