| 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.lib.dir" location="${build.dir}/lib"/> |
<property name="build.lib.dir" location="${build.dir}/lib"/> |
| 35 |
<property name="build.ant.dir" location="${build.dir}/ant"/> |
<property name="build.ant.dir" location="${build.dir}/ant"/> |
| 36 |
<property name="build.javadocs.dir" location="${build.dir}/javadocs"/> |
<property name="build.javadocs.dir" location="${build.dir}/javadocs"/> |
| 43 |
<!-- Source locations --> |
<!-- Source locations --> |
| 44 |
<property name="src.dir" location="${basedir}/src/main"/> |
<property name="src.dir" location="${basedir}/src/main"/> |
| 45 |
<property name="test.src.dir" location="${basedir}/src/test"/> |
<property name="test.src.dir" location="${basedir}/src/test"/> |
| 46 |
|
<property name="j1.src.dir" location="${basedir}/src/javaone"/> |
| 47 |
<property name="tck.src.dir" location="${test.src.dir}/tck"/> |
<property name="tck.src.dir" location="${test.src.dir}/tck"/> |
| 48 |
<property name="jtreg.src.dir" location="${test.src.dir}/jtreg"/> |
<property name="jtreg.src.dir" location="${test.src.dir}/jtreg"/> |
| 49 |
<property name="ant.src.dir" location="${basedir}/etc/ant"/> |
<property name="ant.src.dir" location="${basedir}/etc/ant"/> |
| 67 |
<pathelement location="${junit.jar}"/> |
<pathelement location="${junit.jar}"/> |
| 68 |
</path> |
</path> |
| 69 |
|
|
| 70 |
|
<!-- Test classpath --> |
| 71 |
|
<path id="j1.classpath"> |
| 72 |
|
<pathelement location="${build.j1.dir}"/> |
| 73 |
|
<pathelement location="${junit.jar}"/> |
| 74 |
|
</path> |
| 75 |
|
|
| 76 |
|
|
| 77 |
<!-- Main targets --> |
<!-- Main targets --> |
| 78 |
|
|
| 454 |
fork="true"> |
fork="true"> |
| 455 |
|
|
| 456 |
<jvmarg value="${bootclasspath.args}"/> |
<jvmarg value="${bootclasspath.args}"/> |
| 457 |
|
<jvmarg value="-server"/> |
| 458 |
|
<jvmarg value="-showversion"/> |
| 459 |
|
|
| 460 |
<classpath refid="test.classpath"/> |
<classpath refid="test.classpath"/> |
| 461 |
|
|
| 602 |
|
|
| 603 |
<!-- Standalone sample program --> |
<!-- Standalone sample program --> |
| 604 |
|
|
| 605 |
<target name="sample" depends="jar"> |
<target name="sample" depends=""> |
| 606 |
|
|
| 607 |
<mkdir dir="${build.testcases.dir}"/> |
<mkdir dir="${build.testcases.dir}"/> |
| 608 |
|
|
| 614 |
source="${build.sourcelevel}" |
source="${build.sourcelevel}" |
| 615 |
fork="true"> |
fork="true"> |
| 616 |
|
|
| 617 |
|
<!-- |
| 618 |
<compilerarg value="${bootclasspath.args}"/> |
<compilerarg value="${bootclasspath.args}"/> |
| 619 |
<compilerarg line="${build.args}"/> |
<compilerarg line="${build.args}"/> |
| 620 |
|
|
| 621 |
<classpath refid="test.classpath"/> |
<classpath refid="test.classpath"/> |
| 622 |
|
--> |
| 623 |
|
|
| 624 |
<include name="jsr166/test/Sample.java"/> |
<include name="jsr166/test/Sample.java"/> |
| 625 |
|
|
| 626 |
</javac> |
</javac> |
| 627 |
|
|
| 628 |
|
<copy todir="${build.testcases.dir}"> |
| 629 |
|
<fileset dir="${test.src.dir}"> |
| 630 |
|
<include name="**/*.properties"/> |
| 631 |
|
</fileset> |
| 632 |
|
</copy> |
| 633 |
|
|
| 634 |
|
|
| 635 |
<java classname="jsr166.test.Sample" fork="true"> |
<java classname="jsr166.test.Sample" fork="true"> |
| 636 |
<jvmarg value="${bootclasspath.args}"/> |
<jvmarg value="${bootclasspath.args}"/> |
| 637 |
|
<!-- <jvmarg value="-server"/> --> |
| 638 |
|
<!-- <jvmarg value="-ea"/> --> |
| 639 |
<classpath refid="test.classpath"/> |
<classpath refid="test.classpath"/> |
| 640 |
|
<!-- <arg value="1000"/> --> |
| 641 |
</java> |
</java> |
| 642 |
</target> |
</target> |
| 643 |
|
|
| 644 |
|
|
| 645 |
|
<!-- BoF demos --> |
| 646 |
|
|
| 647 |
|
<target name="j1" depends="jar"> |
| 648 |
|
|
| 649 |
|
<mkdir dir="${build.j1.dir}"/> |
| 650 |
|
|
| 651 |
|
<javac srcdir="${j1.src.dir}" |
| 652 |
|
destdir="${build.j1.dir}" |
| 653 |
|
debug="${build.debug}" |
| 654 |
|
debuglevel="${build.debuglevel}" |
| 655 |
|
deprecation="${build.deprecation}" |
| 656 |
|
source="${build.sourcelevel}" |
| 657 |
|
fork="true"> |
| 658 |
|
|
| 659 |
|
<compilerarg value="${bootclasspath.args}"/> |
| 660 |
|
<compilerarg line="${build.args}"/> |
| 661 |
|
|
| 662 |
|
<classpath refid="j1.classpath"/> |
| 663 |
|
|
| 664 |
|
</javac> |
| 665 |
|
|
| 666 |
|
<!-- |
| 667 |
|
<java classname="MainClass" fork="true"> |
| 668 |
|
<jvmarg value="${bootclasspath.args}"/> |
| 669 |
|
<classpath refid="j1.classpath"/> |
| 670 |
|
</java> |
| 671 |
|
--> |
| 672 |
|
|
| 673 |
|
<junit printsummary="true" |
| 674 |
|
showoutput="true" |
| 675 |
|
errorProperty="junit.failed" |
| 676 |
|
failureProperty="junit.failed" |
| 677 |
|
dir="${build.j1.dir}" |
| 678 |
|
fork="true"> |
| 679 |
|
|
| 680 |
|
<jvmarg value="${bootclasspath.args}"/> |
| 681 |
|
<jvmarg value="-server"/> |
| 682 |
|
|
| 683 |
|
<classpath refid="j1.classpath"/> |
| 684 |
|
|
| 685 |
|
<formatter type="xml"/> |
| 686 |
|
|
| 687 |
|
<batchtest todir="${build.j1.dir}"> |
| 688 |
|
<fileset dir="${j1.src.dir}"> |
| 689 |
|
<include name="**/*Test.java"/> |
| 690 |
|
</fileset> |
| 691 |
|
</batchtest> |
| 692 |
|
|
| 693 |
|
</junit> |
| 694 |
|
|
| 695 |
|
<!-- Sets junit.report.format to frames if redirection is present, |
| 696 |
|
otherwise sets it to noframes. --> |
| 697 |
|
<available property="junit.report.format" |
| 698 |
|
value="frames" |
| 699 |
|
classname="org.apache.xalan.lib.Redirect" |
| 700 |
|
/> |
| 701 |
|
<property name="junit.report.format" value="noframes"/> |
| 702 |
|
|
| 703 |
|
<junitreport todir="${build.j1.dir}"> |
| 704 |
|
<fileset dir="${build.j1.dir}"> |
| 705 |
|
<include name="TEST-*.xml"/> |
| 706 |
|
</fileset> |
| 707 |
|
<report styledir="${stylesheet.dir}" |
| 708 |
|
format="${junit.report.format}" |
| 709 |
|
todir="${build.j1.dir}" |
| 710 |
|
/> |
| 711 |
|
</junitreport> |
| 712 |
|
|
| 713 |
|
<fail message="Test Cases Failed" if="junit.failed"/> |
| 714 |
|
|
| 715 |
|
</target> |
| 716 |
|
|
| 717 |
|
|
| 718 |
|
|
| 719 |
<!-- C++ and JNI definitions and demos --> |
<!-- C++ and JNI definitions and demos --> |
| 720 |
|
|
| 818 |
<!-- Watch out: path separator hardwired to semicolon here! --> |
<!-- Watch out: path separator hardwired to semicolon here! --> |
| 819 |
<sysproperty key="java.library.path" path="${java.library.path};${build.dir}"/> |
<sysproperty key="java.library.path" path="${java.library.path};${build.dir}"/> |
| 820 |
<classpath refid="test.classpath"/> |
<classpath refid="test.classpath"/> |
| 821 |
|
<arg line="count in word frequency of word in command line count"/> |
| 822 |
</java> |
</java> |
| 823 |
|
|
| 824 |
</target> |
</target> |