| 30 |
<property name="build.dir" location="build"/> |
<property name="build.dir" location="build"/> |
| 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"/> |
| 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"/> |
| 44 |
<!-- Source locations --> |
<!-- Source locations --> |
| 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"/> |
| 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 |
|
<!-- ALoops classpath --> |
| 73 |
|
<path id="loops.classpath"> |
| 74 |
|
<pathelement location="${build.loops.dir}"/> |
| 75 |
|
</path> |
| 76 |
|
|
| 77 |
|
<!-- J1 classpath --> |
| 78 |
|
<path id="j1.classpath"> |
| 79 |
|
<pathelement location="${build.j1.dir}"/> |
| 80 |
|
<pathelement location="${junit.jar}"/> |
| 81 |
|
</path> |
| 82 |
|
|
| 83 |
|
|
| 84 |
<!-- Main targets --> |
<!-- Main targets --> |
| 85 |
|
|
| 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 |
|
|
| 460 |
fork="true"> |
fork="true"> |
| 461 |
|
|
| 462 |
<jvmarg value="${bootclasspath.args}"/> |
<jvmarg value="${bootclasspath.args}"/> |
| 463 |
|
<jvmarg value="-server"/> |
| 464 |
|
<jvmarg value="-showversion"/> |
| 465 |
|
|
| 466 |
<classpath refid="test.classpath"/> |
<classpath refid="test.classpath"/> |
| 467 |
|
|
| 606 |
</target> |
</target> |
| 607 |
|
|
| 608 |
|
|
|
<!-- Standalone sample program --> |
|
| 609 |
|
|
| 610 |
<target name="sample" depends="jar"> |
<!-- 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> |
| 629 |
|
|
| 630 |
|
<copy todir="${build.testcases.dir}"> |
| 631 |
|
<fileset dir="${test.src.dir}"> |
| 632 |
|
<include name="**/*.properties"/> |
| 633 |
|
</fileset> |
| 634 |
|
</copy> |
| 635 |
|
|
| 636 |
|
|
| 637 |
<java classname="jsr166.test.Sample" fork="true"> |
<java classname="jsr166.test.Sample" fork="true"> |
|
<jvmarg value="${bootclasspath.args}"/> |
|
| 638 |
<classpath refid="test.classpath"/> |
<classpath refid="test.classpath"/> |
| 639 |
|
<!-- <jvmarg value="-ea"/> --> |
| 640 |
|
<!-- <jvmarg value="-server"/> --> |
| 641 |
|
<!-- <arg value="1000"/> --> |
| 642 |
</java> |
</java> |
| 643 |
</target> |
</target> |
| 644 |
|
|
| 645 |
|
|
| 646 |
|
<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> |
| 669 |
|
|
| 670 |
|
|
| 671 |
|
<target name="compile-j1" depends="init, configure-compiler"> |
| 672 |
|
|
| 673 |
|
<mkdir dir="${build.j1.dir}"/> |
| 674 |
|
|
| 675 |
|
<javac srcdir="${j1.src.dir}" |
| 676 |
|
destdir="${build.j1.dir}" |
| 677 |
|
debug="${build.debug}" |
| 678 |
|
debuglevel="${build.debuglevel}" |
| 679 |
|
deprecation="${build.deprecation}" |
| 680 |
|
source="${build.sourcelevel}" |
| 681 |
|
fork="true"> |
| 682 |
|
|
| 683 |
|
<compilerarg line="${build.args}"/> |
| 684 |
|
<classpath refid="j1.classpath"/> |
| 685 |
|
|
| 686 |
|
</javac> |
| 687 |
|
|
| 688 |
|
</target> |
| 689 |
|
|
| 690 |
|
|
| 691 |
|
<target name="sw" depends="compile-j1" |
| 692 |
|
description="Runs the SwingWorker demo"> |
| 693 |
|
|
| 694 |
|
<!-- |
| 695 |
|
<java classname="jsr166.swing.SwingWorkerDemo" fork="true"> |
| 696 |
|
<classpath refid="j1.classpath"/> |
| 697 |
|
</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" |
| 722 |
|
showoutput="true" |
| 723 |
|
errorProperty="junit.failed" |
| 724 |
|
failureProperty="junit.failed" |
| 725 |
|
dir="${build.j1.dir}" |
| 726 |
|
fork="true"> |
| 727 |
|
|
| 728 |
|
<!-- <jvmarg value="-server"/> --> |
| 729 |
|
<classpath refid="j1.classpath"/> |
| 730 |
|
<formatter type="xml"/> |
| 731 |
|
|
| 732 |
|
<batchtest todir="${build.j1.dir}"> |
| 733 |
|
<fileset dir="${j1.src.dir}"> |
| 734 |
|
<include name="**/*Test.java"/> |
| 735 |
|
</fileset> |
| 736 |
|
</batchtest> |
| 737 |
|
|
| 738 |
|
</junit> |
| 739 |
|
|
| 740 |
|
<available property="junit.report.format" |
| 741 |
|
value="frames" |
| 742 |
|
classname="org.apache.xalan.lib.Redirect"/> |
| 743 |
|
<property name="junit.report.format" value="noframes"/> |
| 744 |
|
|
| 745 |
|
<junitreport todir="${build.j1.dir}"> |
| 746 |
|
<fileset dir="${build.j1.dir}"> |
| 747 |
|
<include name="TEST-*.xml"/> |
| 748 |
|
</fileset> |
| 749 |
|
<report styledir="${stylesheet.dir}" |
| 750 |
|
format="${junit.report.format}" |
| 751 |
|
todir="${build.j1.dir}" |
| 752 |
|
/> |
| 753 |
|
</junitreport> |
| 754 |
|
|
| 755 |
|
<fail message="Test Cases Failed" if="junit.failed"/> |
| 756 |
|
|
| 757 |
|
</target> |
| 758 |
|
|
| 759 |
|
|
| 760 |
|
|
| 761 |
<!-- C++ and JNI definitions and demos --> |
<!-- C++ and JNI definitions and demos --> |
| 762 |
|
|
| 860 |
<!-- Watch out: path separator hardwired to semicolon here! --> |
<!-- Watch out: path separator hardwired to semicolon here! --> |
| 861 |
<sysproperty key="java.library.path" path="${java.library.path};${build.dir}"/> |
<sysproperty key="java.library.path" path="${java.library.path};${build.dir}"/> |
| 862 |
<classpath refid="test.classpath"/> |
<classpath refid="test.classpath"/> |
| 863 |
|
<arg line="count in word frequency of word in command line count"/> |
| 864 |
</java> |
</java> |
| 865 |
|
|
| 866 |
</target> |
</target> |