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"/> |
59 |
<!-- Jar locations --> |
<!-- Jar locations --> |
60 |
<property name="product.jar" location="${build.lib.dir}/jsr166.jar"/> |
<property name="product.jar" location="${build.lib.dir}/jsr166.jar"/> |
61 |
<property name="junit.jar" location="${lib.dir}/junit.jar"/> |
<property name="junit.jar" location="${lib.dir}/junit.jar"/> |
62 |
|
|
63 |
<!-- Bootclasspath argument --> |
<!-- Bootclasspath argument --> |
64 |
<property name="bootclasspath.args" value="-Xbootclasspath/p:${product.jar}"/> |
<property name="bootclasspath.args" value="-Xbootclasspath/p:${product.jar}"/> |
65 |
|
|
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}"/> |
175 |
classpath="${lib.dir}/checkstyle-all-3.1.jar"/> |
classpath="${lib.dir}/checkstyle-all-3.1.jar"/> |
176 |
|
|
177 |
<mkdir dir="${build.checkstyle.dir}"/> |
<mkdir dir="${build.checkstyle.dir}"/> |
178 |
|
|
179 |
<checkstyle config="etc/checkstyle/sun_checks.xml" |
<checkstyle config="etc/checkstyle/sun_checks.xml" |
180 |
failOnViolation="false"> |
failOnViolation="false"> |
181 |
<formatter type="xml" toFile="${build.checkstyle.dir}/checkstyle-report.xml"/> |
<formatter type="xml" toFile="${build.checkstyle.dir}/checkstyle-report.xml"/> |
182 |
<fileset dir="${build.filter.src.dir}" includes="**/*.java"/> |
<fileset dir="${build.filter.src.dir}" includes="**/*.java"/> |
183 |
</checkstyle> |
</checkstyle> |
184 |
|
|
185 |
<style in="${build.checkstyle.dir}/checkstyle-report.xml" |
<style in="${build.checkstyle.dir}/checkstyle-report.xml" |
186 |
out="${build.checkstyle.dir}/checkstyle-report.html" |
out="${build.checkstyle.dir}/checkstyle-report.html" |
187 |
style="${stylesheet.dir}/checkstyle-frames.xsl"/> |
style="${stylesheet.dir}/checkstyle-frames.xsl"/> |
188 |
|
|
189 |
</target> |
</target> |
190 |
|
|
191 |
|
|
192 |
|
|
193 |
<target name="dist" |
<target name="dist" |
194 |
depends="init, dist-clean, dist-jar, dist-docs" |
depends="init, dist-clean, dist-jar, dist-docs" |
266 |
<echo>java.home is ${java.home}</echo> |
<echo>java.home is ${java.home}</echo> |
267 |
|
|
268 |
</target> |
</target> |
269 |
|
|
270 |
|
|
271 |
<target name="dist-jar" |
<target name="dist-jar" |
272 |
depends="clean, jar"> |
depends="clean, jar"> |
273 |
|
|
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 |
|
|
402 |
|
|
403 |
<compilerarg value="${bootclasspath.args}"/> |
<compilerarg value="${bootclasspath.args}"/> |
404 |
<compilerarg line="${build.args}"/> |
<compilerarg line="${build.args}"/> |
405 |
|
|
406 |
<classpath refid="test.classpath"/> |
<classpath refid="test.classpath"/> |
407 |
|
|
408 |
</javac> |
</javac> |
416 |
fork="true"> |
fork="true"> |
417 |
|
|
418 |
<include name="jsr166/test/**"/> |
<include name="jsr166/test/**"/> |
419 |
|
|
420 |
<compilerarg value="${bootclasspath.args}"/> |
<compilerarg value="${bootclasspath.args}"/> |
421 |
<compilerarg line="${build.args}"/> |
<compilerarg line="${build.args}"/> |
422 |
|
|
423 |
<classpath refid="test.classpath"/> |
<classpath refid="test.classpath"/> |
424 |
|
|
425 |
</javac> |
</javac> |
435 |
|
|
436 |
<compilerarg value="${bootclasspath.args}"/> |
<compilerarg value="${bootclasspath.args}"/> |
437 |
<compilerarg line="${build.args}"/> |
<compilerarg line="${build.args}"/> |
438 |
|
|
439 |
<classpath refid="test.classpath"/> |
<classpath refid="test.classpath"/> |
440 |
|
|
441 |
</javac> |
</javac> |
462 |
<jvmarg value="${bootclasspath.args}"/> |
<jvmarg value="${bootclasspath.args}"/> |
463 |
<jvmarg value="-server"/> |
<jvmarg value="-server"/> |
464 |
<jvmarg value="-showversion"/> |
<jvmarg value="-showversion"/> |
465 |
|
|
466 |
<classpath refid="test.classpath"/> |
<classpath refid="test.classpath"/> |
467 |
|
|
468 |
<formatter type="xml"/> |
<formatter type="xml"/> |
472 |
<include name="**/${testcase}Test.java"/> |
<include name="**/${testcase}Test.java"/> |
473 |
</fileset> |
</fileset> |
474 |
</batchtest> |
</batchtest> |
475 |
|
|
476 |
<batchtest todir="${build.reports.dir}" if="do.test.old"> |
<batchtest todir="${build.reports.dir}" if="do.test.old"> |
477 |
<fileset dir="${test.src.dir}"> |
<fileset dir="${test.src.dir}"> |
478 |
<include name="jsr166/test/**/${testcase}Test.java"/> |
<include name="jsr166/test/**/${testcase}Test.java"/> |
479 |
</fileset> |
</fileset> |
480 |
</batchtest> |
</batchtest> |
481 |
|
|
482 |
<!-- |
<!-- |
483 |
<batchtest todir="${build.reports.dir}" if="do.test.jtreg"> |
<batchtest todir="${build.reports.dir}" if="do.test.jtreg"> |
484 |
<fileset dir="${jtreg.src.dir}"> |
<fileset dir="${jtreg.src.dir}"> |
485 |
<include name="**/${testcase}Test.java"/> |
<include name="**/${testcase}Test.java"/> |
546 |
<available property="xalan.available" |
<available property="xalan.available" |
547 |
classname="org.apache.xalan.Version"/> |
classname="org.apache.xalan.Version"/> |
548 |
|
|
549 |
|
|
550 |
<!-- Ant 1.6beta and later don't need or want this check --> |
<!-- Ant 1.6beta and later don't need or want this check --> |
551 |
<!-- |
<!-- |
552 |
<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" |
553 |
unless="junit.available"/> |
unless="junit.available"/> |
554 |
|
|
563 |
<!-- Anthill targets --> |
<!-- Anthill targets --> |
564 |
|
|
565 |
<target name="anthill-build"> |
<target name="anthill-build"> |
566 |
|
|
567 |
<!-- Override this in user.properties --> |
<!-- Override this in user.properties --> |
568 |
<property name="tiger.home" location="e:/j2sdk1.5.0"/> |
<property name="tiger.home" location="e:/j2sdk1.5.0"/> |
569 |
|
|
570 |
<exec resultproperty="result.property" dir="${basedir}" executable="${tiger.home}/bin/java"> |
<exec resultproperty="result.property" dir="${basedir}" executable="${tiger.home}/bin/java"> |
571 |
<arg value="-Xmx256000000"/> |
<arg value="-Xmx256000000"/> |
572 |
<!-- classpath of new JVM --> |
<!-- classpath of new JVM --> |
582 |
<arg value="do-anthill-build"/> |
<arg value="do-anthill-build"/> |
583 |
</exec> |
</exec> |
584 |
</target> |
</target> |
585 |
|
|
586 |
<target name="do-anthill-build" |
<target name="do-anthill-build" |
587 |
depends="jar, test, docs, dist-docs"/> |
depends="jar, test, docs, dist-docs"/> |
588 |
|
|
606 |
</target> |
</target> |
607 |
|
|
608 |
|
|
609 |
<!-- Standalone sample program --> |
|
610 |
|
<!-- Various demos and test programs --> |
611 |
<target name="sample" depends=""> |
|
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 |
|
|
618 |
<javac srcdir="${test.src.dir}" |
<javac srcdir="${test.src.dir}" |
619 |
destdir="${build.testcases.dir}" |
destdir="${build.testcases.dir}" |
620 |
debug="${build.debug}" |
debug="${build.debug}" |
622 |
deprecation="${build.deprecation}" |
deprecation="${build.deprecation}" |
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}"> |
<copy todir="${build.testcases.dir}"> |
631 |
<fileset dir="${test.src.dir}"> |
<fileset dir="${test.src.dir}"> |
632 |
<include name="**/*.properties"/> |
<include name="**/*.properties"/> |
633 |
</fileset> |
</fileset> |
634 |
</copy> |
</copy> |
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 |
<target name="j1" depends="jar"> |
|
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}"/> |
<mkdir dir="${build.j1.dir}"/> |
674 |
|
|
675 |
<javac srcdir="${j1.src.dir}" |
<javac srcdir="${j1.src.dir}" |
676 |
destdir="${build.j1.dir}" |
destdir="${build.j1.dir}" |
677 |
debug="${build.debug}" |
debug="${build.debug}" |
679 |
deprecation="${build.deprecation}" |
deprecation="${build.deprecation}" |
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 |
<java classname="MainClass" fork="true"> |
|
690 |
<jvmarg value="${bootclasspath.args}"/> |
|
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"/> |
<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" |
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}"> |
756 |
|
|
757 |
</target> |
</target> |
758 |
|
|
759 |
|
|
760 |
|
|
761 |
<!-- C++ and JNI definitions and demos --> |
<!-- C++ and JNI definitions and demos --> |
762 |
|
|
763 |
<target name="configure-cpp"> |
<target name="configure-cpp"> |
764 |
|
|
765 |
<!-- Define tasks and types --> |
<!-- Define tasks and types --> |
766 |
|
|
767 |
<path id="cpptasks.path"> |
<path id="cpptasks.path"> |
768 |
<pathelement location="${lib.dir}/cpptasks.jar"/> |
<pathelement location="${lib.dir}/cpptasks.jar"/> |
769 |
</path> |
</path> |
770 |
<taskdef resource="cpptasks.tasks" classpathref="cpptasks.path"/> |
<taskdef resource="cpptasks.tasks" classpathref="cpptasks.path"/> |
771 |
<typedef resource="cpptasks.types" classpathref="cpptasks.path"/> |
<typedef resource="cpptasks.types" classpathref="cpptasks.path"/> |
772 |
|
|
773 |
<!-- Set platform property for JNI includes --> |
<!-- Set platform property for JNI includes --> |
774 |
|
|
775 |
<condition property="platform" value="linux"> |
<condition property="platform" value="linux"> |
776 |
<os name="Linux"/> |
<os name="Linux"/> |
777 |
</condition> |
</condition> |
781 |
<condition property="platform" value="solaris"> |
<condition property="platform" value="solaris"> |
782 |
<os name="SunOS"/> |
<os name="SunOS"/> |
783 |
</condition> |
</condition> |
784 |
|
|
785 |
</target> |
</target> |
786 |
|
|
787 |
|
|
788 |
<target name="cppdemo" depends="configure-cpp"> |
<target name="cppdemo" depends="configure-cpp"> |
789 |
|
|
790 |
<mkdir dir="${build.dir}"/> |
<mkdir dir="${build.dir}"/> |
791 |
|
|
792 |
<cc multithreaded="true" |
<cc multithreaded="true" |
793 |
name="g++" |
name="g++" |
794 |
objdir="${build.dir}" |
objdir="${build.dir}" |
795 |
outfile="${build.dir}/CppDemo"> |
outfile="${build.dir}/CppDemo"> |
796 |
<fileset dir="${test.src.dir}" includes="CppDemo.cpp"/> |
<fileset dir="${test.src.dir}" includes="CppDemo.cpp"/> |
797 |
<libset libs="stdc++"/> |
<libset libs="stdc++"/> |
798 |
</cc> |
</cc> |
799 |
|
|
800 |
<exec executable="${build.dir}/CppDemo"> |
<exec executable="${build.dir}/CppDemo"> |
801 |
<arg line="count in word frequency of word in command line count"/> |
<arg line="count in word frequency of word in command line count"/> |
802 |
</exec> |
</exec> |
803 |
|
|
804 |
</target> |
</target> |
805 |
|
|
806 |
|
|
807 |
<target name="jnidemo" depends="init, configure-compiler, configure-cpp"> |
<target name="jnidemo" depends="init, configure-compiler, configure-cpp"> |
808 |
|
|
809 |
<mkdir dir="${build.testcases.dir}"/> |
<mkdir dir="${build.testcases.dir}"/> |
810 |
|
|
811 |
<javac srcdir="${test.src.dir}" |
<javac srcdir="${test.src.dir}" |
812 |
destdir="${build.testcases.dir}" |
destdir="${build.testcases.dir}" |
813 |
debug="${build.debug}" |
debug="${build.debug}" |
820 |
<classpath refid="test.classpath"/> |
<classpath refid="test.classpath"/> |
821 |
<include name="JniDemo.java"/> |
<include name="JniDemo.java"/> |
822 |
</javac> |
</javac> |
823 |
|
|
824 |
<javah destdir="${build.testcases.dir}" |
<javah destdir="${build.testcases.dir}" |
825 |
classpathref="test.classpath"> |
classpathref="test.classpath"> |
826 |
<class name="JniDemo"/> |
<class name="JniDemo"/> |
827 |
</javah> |
</javah> |
828 |
|
|
829 |
<cc multithreaded="true" |
<cc multithreaded="true" |
830 |
name="g++" |
name="g++" |
831 |
objdir="${build.dir}" |
objdir="${build.dir}" |
832 |
outfile="${build.dir}/JniDemo" |
outfile="${build.dir}/JniDemo" |
833 |
outtype="shared"> |
outtype="shared"> |
834 |
|
|
835 |
<compiler> |
<compiler> |
836 |
<defineset> |
<defineset> |
837 |
<define name="__int64" value="long long"/> |
<define name="__int64" value="long long"/> |
840 |
<includepath location="${java.home}/../include/${platform}"/> |
<includepath location="${java.home}/../include/${platform}"/> |
841 |
<compilerarg value="-mno-cygwin"/> |
<compilerarg value="-mno-cygwin"/> |
842 |
</compiler> |
</compiler> |
843 |
|
|
844 |
<linker> |
<linker> |
845 |
<linkerarg value="--add-stdcall-alias"/> |
<linkerarg value="--add-stdcall-alias"/> |
846 |
</linker> |
</linker> |
847 |
|
|
848 |
<includepath location="${build.testcases.dir}"/> |
<includepath location="${build.testcases.dir}"/> |
849 |
|
|
850 |
<fileset dir="${test.src.dir}" includes="JniDemo.cpp"/> |
<fileset dir="${test.src.dir}" includes="JniDemo.cpp"/> |
851 |
|
|
852 |
<libset libs="stdc++"/> |
<libset libs="stdc++"/> |
853 |
|
|
854 |
</cc> |
</cc> |
855 |
|
|
856 |
<!-- Necessary if windows, harmless if not --> |
<!-- Necessary if windows, harmless if not --> |
857 |
<copy file="${build.dir}/libJniDemo.so" tofile="${build.dir}/JniDemo.dll"/> |
<copy file="${build.dir}/libJniDemo.so" tofile="${build.dir}/JniDemo.dll"/> |
858 |
|
|
859 |
<java classname="JniDemo" fork="true"> |
<java classname="JniDemo" fork="true"> |
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"/> |
<arg line="count in word frequency of word in command line count"/> |
864 |
</java> |
</java> |
865 |
|
|
866 |
</target> |
</target> |
867 |
|
|
868 |
|
|
875 |
<property name="build.pretiger.dir" location="${build.dir}/pretiger/classes"/> |
<property name="build.pretiger.dir" location="${build.dir}/pretiger/classes"/> |
876 |
<property name="pretiger.jar" location="${build.lib.dir}/jsr166-pretiger.jar"/> |
<property name="pretiger.jar" location="${build.lib.dir}/jsr166-pretiger.jar"/> |
877 |
<property name="pretiger.sourcelevel" value="1.4"/> |
<property name="pretiger.sourcelevel" value="1.4"/> |
878 |
|
|
879 |
<target name="defang" |
<target name="defang" |
880 |
depends="init" |
depends="init" |
881 |
description="Generates pre-Tiger compatible source"> |
description="Generates pre-Tiger compatible source"> |
882 |
|
|
883 |
<delete dir="${pretiger.src.dir}"/> |
<delete dir="${pretiger.src.dir}"/> |
884 |
<mkdir dir="${pretiger.src.dir}"/> |
<mkdir dir="${pretiger.src.dir}"/> |
885 |
|
|
886 |
<exec executable="perl"> |
<exec executable="perl"> |
887 |
<arg file="etc/defang.pl"/> |
<arg file="etc/defang.pl"/> |
888 |
<!-- <arg value="-v"/> --> |
<!-- <arg value="-v"/> --> |
889 |
<arg value="-s"/> <arg file="${src.dir}"/> |
<arg value="-s"/> <arg file="${src.dir}"/> |
890 |
<arg value="-t"/> <arg file="${pretiger.src.dir}"/> |
<arg value="-t"/> <arg file="${pretiger.src.dir}"/> |
891 |
</exec> |
</exec> |
892 |
|
|
893 |
</target> |
</target> |
894 |
|
|
895 |
<target name="compile-pretiger" |
<target name="compile-pretiger" |
912 |
</javac> |
</javac> |
913 |
|
|
914 |
</target> |
</target> |
915 |
|
|
916 |
<target name="pretiger" depends="compile-pretiger"> |
<target name="pretiger" depends="compile-pretiger"> |
917 |
|
|
918 |
<mkdir dir="${build.lib.dir}"/> |
<mkdir dir="${build.lib.dir}"/> |
919 |
|
|
920 |
<jar destfile="${pretiger.jar}"> |
<jar destfile="${pretiger.jar}"> |
921 |
<fileset dir="${build.pretiger.dir}"> |
<fileset dir="${build.pretiger.dir}"> |
922 |
</fileset> |
</fileset> |
923 |
</jar> |
</jar> |
924 |
|
|
925 |
</target> |
</target> |
926 |
|
|
927 |
</project> |
</project> |