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"/> |
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 |
|
<property name="concurrent.jar" location="${lib.dir}/concurrent.jar"/> |
63 |
|
|
64 |
<!-- Bootclasspath argument --> |
<!-- Bootclasspath argument --> |
65 |
<property name="bootclasspath.args" value="-Xbootclasspath/p:${product.jar}"/> |
<property name="bootclasspath.args" value="-Xbootclasspath/p:${product.jar}"/> |
66 |
|
|
70 |
<pathelement location="${junit.jar}"/> |
<pathelement location="${junit.jar}"/> |
71 |
</path> |
</path> |
72 |
|
|
73 |
|
<!-- ALoops classpath --> |
74 |
|
<path id="loops.classpath"> |
75 |
|
<pathelement location="${build.loops.dir}"/> |
76 |
|
</path> |
77 |
|
|
78 |
|
<!-- J1 classpath --> |
79 |
|
<path id="j1.classpath"> |
80 |
|
<pathelement location="${build.j1.dir}"/> |
81 |
|
<pathelement location="${junit.jar}"/> |
82 |
|
<pathelement location="${concurrent.jar}"/> |
83 |
|
</path> |
84 |
|
|
85 |
|
|
86 |
<!-- Main targets --> |
<!-- Main targets --> |
87 |
|
|
100 |
source="${build.sourcelevel}" |
source="${build.sourcelevel}" |
101 |
fork="true"> |
fork="true"> |
102 |
|
|
103 |
|
<include name="**/*.java"/> |
104 |
|
<exclude name="java/lang/**"/> |
105 |
<compilerarg line="${build.args}"/> |
<compilerarg line="${build.args}"/> |
106 |
|
|
107 |
</javac> |
</javac> |
179 |
classpath="${lib.dir}/checkstyle-all-3.1.jar"/> |
classpath="${lib.dir}/checkstyle-all-3.1.jar"/> |
180 |
|
|
181 |
<mkdir dir="${build.checkstyle.dir}"/> |
<mkdir dir="${build.checkstyle.dir}"/> |
182 |
|
|
183 |
<checkstyle config="etc/checkstyle/sun_checks.xml" |
<checkstyle config="etc/checkstyle/sun_checks.xml" |
184 |
failOnViolation="false"> |
failOnViolation="false"> |
185 |
<formatter type="xml" toFile="${build.checkstyle.dir}/checkstyle-report.xml"/> |
<formatter type="xml" toFile="${build.checkstyle.dir}/checkstyle-report.xml"/> |
186 |
<fileset dir="${build.filter.src.dir}" includes="**/*.java"/> |
<fileset dir="${build.filter.src.dir}" includes="**/*.java"/> |
187 |
</checkstyle> |
</checkstyle> |
188 |
|
|
189 |
<style in="${build.checkstyle.dir}/checkstyle-report.xml" |
<style in="${build.checkstyle.dir}/checkstyle-report.xml" |
190 |
out="${build.checkstyle.dir}/checkstyle-report.html" |
out="${build.checkstyle.dir}/checkstyle-report.html" |
191 |
style="${stylesheet.dir}/checkstyle-frames.xsl"/> |
style="${stylesheet.dir}/checkstyle-frames.xsl"/> |
192 |
|
|
193 |
</target> |
</target> |
194 |
|
|
195 |
|
|
196 |
|
|
197 |
<target name="dist" |
<target name="dist" |
198 |
depends="init, dist-clean, dist-jar, dist-docs" |
depends="init, dist-clean, dist-jar, dist-docs" |
270 |
<echo>java.home is ${java.home}</echo> |
<echo>java.home is ${java.home}</echo> |
271 |
|
|
272 |
</target> |
</target> |
273 |
|
|
274 |
|
|
275 |
<target name="dist-jar" |
<target name="dist-jar" |
276 |
depends="clean, jar"> |
depends="clean, jar"> |
277 |
|
|
287 |
|
|
288 |
<javac srcdir="${ant.src.dir}" |
<javac srcdir="${ant.src.dir}" |
289 |
destdir="${build.ant.dir}" |
destdir="${build.ant.dir}" |
290 |
source="1.4" |
source="1.4"/> |
|
/> |
|
291 |
|
|
292 |
</target> |
</target> |
293 |
|
|
406 |
|
|
407 |
<compilerarg value="${bootclasspath.args}"/> |
<compilerarg value="${bootclasspath.args}"/> |
408 |
<compilerarg line="${build.args}"/> |
<compilerarg line="${build.args}"/> |
409 |
|
|
410 |
<classpath refid="test.classpath"/> |
<classpath refid="test.classpath"/> |
411 |
|
|
412 |
</javac> |
</javac> |
420 |
fork="true"> |
fork="true"> |
421 |
|
|
422 |
<include name="jsr166/test/**"/> |
<include name="jsr166/test/**"/> |
423 |
|
|
424 |
<compilerarg value="${bootclasspath.args}"/> |
<compilerarg value="${bootclasspath.args}"/> |
425 |
<compilerarg line="${build.args}"/> |
<compilerarg line="${build.args}"/> |
426 |
|
|
427 |
<classpath refid="test.classpath"/> |
<classpath refid="test.classpath"/> |
428 |
|
|
429 |
</javac> |
</javac> |
439 |
|
|
440 |
<compilerarg value="${bootclasspath.args}"/> |
<compilerarg value="${bootclasspath.args}"/> |
441 |
<compilerarg line="${build.args}"/> |
<compilerarg line="${build.args}"/> |
442 |
|
|
443 |
<classpath refid="test.classpath"/> |
<classpath refid="test.classpath"/> |
444 |
|
|
445 |
</javac> |
</javac> |
464 |
fork="true"> |
fork="true"> |
465 |
|
|
466 |
<jvmarg value="${bootclasspath.args}"/> |
<jvmarg value="${bootclasspath.args}"/> |
467 |
|
<jvmarg value="-server"/> |
468 |
|
<jvmarg value="-showversion"/> |
469 |
|
|
470 |
<classpath refid="test.classpath"/> |
<classpath refid="test.classpath"/> |
471 |
|
|
472 |
<formatter type="xml"/> |
<formatter type="xml"/> |
476 |
<include name="**/${testcase}Test.java"/> |
<include name="**/${testcase}Test.java"/> |
477 |
</fileset> |
</fileset> |
478 |
</batchtest> |
</batchtest> |
479 |
|
|
480 |
<batchtest todir="${build.reports.dir}" if="do.test.old"> |
<batchtest todir="${build.reports.dir}" if="do.test.old"> |
481 |
<fileset dir="${test.src.dir}"> |
<fileset dir="${test.src.dir}"> |
482 |
<include name="jsr166/test/**/${testcase}Test.java"/> |
<include name="jsr166/test/**/${testcase}Test.java"/> |
483 |
</fileset> |
</fileset> |
484 |
</batchtest> |
</batchtest> |
485 |
|
|
486 |
<!-- |
<!-- |
487 |
<batchtest todir="${build.reports.dir}" if="do.test.jtreg"> |
<batchtest todir="${build.reports.dir}" if="do.test.jtreg"> |
488 |
<fileset dir="${jtreg.src.dir}"> |
<fileset dir="${jtreg.src.dir}"> |
489 |
<include name="**/${testcase}Test.java"/> |
<include name="**/${testcase}Test.java"/> |
550 |
<available property="xalan.available" |
<available property="xalan.available" |
551 |
classname="org.apache.xalan.Version"/> |
classname="org.apache.xalan.Version"/> |
552 |
|
|
553 |
|
|
554 |
<!-- Ant 1.6beta and later don't need or want this check --> |
<!-- Ant 1.6beta and later don't need or want this check --> |
555 |
<!-- |
<!-- |
556 |
<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" |
557 |
unless="junit.available"/> |
unless="junit.available"/> |
558 |
|
|
567 |
<!-- Anthill targets --> |
<!-- Anthill targets --> |
568 |
|
|
569 |
<target name="anthill-build"> |
<target name="anthill-build"> |
570 |
|
|
571 |
<!-- Override this in user.properties --> |
<!-- Override this in user.properties --> |
572 |
<property name="tiger.home" location="e:/j2sdk1.5.0"/> |
<property name="tiger.home" location="e:/j2sdk1.5.0"/> |
573 |
|
|
574 |
<exec resultproperty="result.property" dir="${basedir}" executable="${tiger.home}/bin/java"> |
<exec resultproperty="result.property" dir="${basedir}" executable="${tiger.home}/bin/java"> |
575 |
<arg value="-Xmx256000000"/> |
<arg value="-Xmx256000000"/> |
576 |
<!-- classpath of new JVM --> |
<!-- classpath of new JVM --> |
586 |
<arg value="do-anthill-build"/> |
<arg value="do-anthill-build"/> |
587 |
</exec> |
</exec> |
588 |
</target> |
</target> |
589 |
|
|
590 |
<target name="do-anthill-build" |
<target name="do-anthill-build" |
591 |
depends="jar, test, docs, dist-docs"/> |
depends="jar, test, docs, dist-docs"/> |
592 |
|
|
610 |
</target> |
</target> |
611 |
|
|
612 |
|
|
613 |
<!-- Standalone sample program --> |
|
614 |
|
<!-- Various demos and test programs --> |
615 |
<target name="sample" depends="jar"> |
|
616 |
|
|
617 |
|
<target name="sample" depends="init, configure-compiler" |
618 |
|
description="Standalone demo program"> |
619 |
|
|
620 |
<mkdir dir="${build.testcases.dir}"/> |
<mkdir dir="${build.testcases.dir}"/> |
621 |
|
|
622 |
<javac srcdir="${test.src.dir}" |
<javac srcdir="${test.src.dir}" |
623 |
destdir="${build.testcases.dir}" |
destdir="${build.testcases.dir}" |
624 |
debug="${build.debug}" |
debug="${build.debug}" |
626 |
deprecation="${build.deprecation}" |
deprecation="${build.deprecation}" |
627 |
source="${build.sourcelevel}" |
source="${build.sourcelevel}" |
628 |
fork="true"> |
fork="true"> |
629 |
|
|
|
<compilerarg value="${bootclasspath.args}"/> |
|
|
<compilerarg line="${build.args}"/> |
|
|
|
|
|
<classpath refid="test.classpath"/> |
|
|
|
|
630 |
<include name="jsr166/test/Sample.java"/> |
<include name="jsr166/test/Sample.java"/> |
631 |
|
|
632 |
</javac> |
</javac> |
633 |
|
|
634 |
|
<copy todir="${build.testcases.dir}"> |
635 |
|
<fileset dir="${test.src.dir}"> |
636 |
|
<include name="**/*.properties"/> |
637 |
|
</fileset> |
638 |
|
</copy> |
639 |
|
|
640 |
|
|
641 |
<java classname="jsr166.test.Sample" fork="true"> |
<java classname="jsr166.test.Sample" fork="true"> |
|
<jvmarg value="${bootclasspath.args}"/> |
|
642 |
<classpath refid="test.classpath"/> |
<classpath refid="test.classpath"/> |
643 |
|
<!-- <jvmarg value="-ea"/> --> |
644 |
|
<!-- <jvmarg value="-server"/> --> |
645 |
|
<!-- <arg value="1000"/> --> |
646 |
</java> |
</java> |
647 |
</target> |
</target> |
648 |
|
|
649 |
|
|
650 |
|
<target name="loops" depends="init, configure-compiler" |
651 |
|
description="Benchmark from Doug Lea's AQS paper"> |
652 |
|
|
653 |
|
<mkdir dir="${build.loops.dir}"/> |
654 |
|
|
655 |
|
<javac srcdir="${loops.src.dir}" |
656 |
|
destdir="${build.loops.dir}" |
657 |
|
debug="${build.debug}" |
658 |
|
debuglevel="${build.debuglevel}" |
659 |
|
deprecation="${build.deprecation}" |
660 |
|
source="${build.sourcelevel}" |
661 |
|
fork="true"> |
662 |
|
|
663 |
|
<compilerarg line="${build.args}"/> |
664 |
|
<classpath refid="loops.classpath"/> |
665 |
|
|
666 |
|
</javac> |
667 |
|
|
668 |
|
<java classname="ALoops" fork="true"> |
669 |
|
<classpath refid="loops.classpath"/> |
670 |
|
</java> |
671 |
|
|
672 |
|
</target> |
673 |
|
|
674 |
|
|
675 |
|
<target name="compile-j1" depends="init, configure-compiler"> |
676 |
|
|
677 |
|
<mkdir dir="${build.j1.dir}"/> |
678 |
|
|
679 |
|
<javac srcdir="${j1.src.dir}" |
680 |
|
destdir="${build.j1.dir}" |
681 |
|
debug="${build.debug}" |
682 |
|
debuglevel="${build.debuglevel}" |
683 |
|
deprecation="${build.deprecation}" |
684 |
|
source="${build.sourcelevel}" > |
685 |
|
|
686 |
|
<include name="**/*.java"/> |
687 |
|
<exclude name="**/dijkstra/**"/> |
688 |
|
|
689 |
|
<compilerarg line="${build.args}"/> |
690 |
|
<classpath refid="j1.classpath"/> |
691 |
|
|
692 |
|
</javac> |
693 |
|
|
694 |
|
</target> |
695 |
|
|
696 |
|
|
697 |
|
<target name="sw" depends="compile-j1" |
698 |
|
description="Runs the SwingWorker demo"> |
699 |
|
|
700 |
|
<!-- |
701 |
|
<java classname="jsr166.swing.SwingWorkerDemo" fork="true"> |
702 |
|
<classpath refid="j1.classpath"/> |
703 |
|
</java> |
704 |
|
--> |
705 |
|
|
706 |
|
<copy todir="${build.j1.dir}" file="${j1.src.dir}/jsr166/swing/SwingWorker.html"/> |
707 |
|
|
708 |
|
<exec dir="${build.j1.dir}" executable="appletviewer.exe"> |
709 |
|
<arg value="${build.j1.dir}/SwingWorker.html"/> |
710 |
|
</exec> |
711 |
|
|
712 |
|
</target> |
713 |
|
|
714 |
|
<target name="j1" depends="compile-j1" |
715 |
|
description="Runs a standalone JavaOne program"> |
716 |
|
|
717 |
|
<java classname="${j1.test}" fork="true"> |
718 |
|
<classpath refid="j1.classpath"/> |
719 |
|
<jvmarg value="-client"/> |
720 |
|
|
721 |
|
<!-- TestPseudoRandom args --> |
722 |
|
<arg value="2"/> |
723 |
|
<arg value="25"/> |
724 |
|
<arg value="100000"/> |
725 |
|
|
726 |
|
<!-- WebCrawler args --> |
727 |
|
<!-- |
728 |
|
<arg value="jsr166.webcrawler.WebCrawler3"/> |
729 |
|
<arg value="http://www.priorartisans.com"/> |
730 |
|
<arg value="25"/> |
731 |
|
--> |
732 |
|
|
733 |
|
</java> |
734 |
|
|
735 |
|
</target> |
736 |
|
|
737 |
|
|
738 |
|
<target name="test-j1" depends="compile-j1" |
739 |
|
description="Runs testcases from the JavaOne source directories"> |
740 |
|
|
741 |
|
<junit printsummary="true" |
742 |
|
showoutput="true" |
743 |
|
errorProperty="junit.failed" |
744 |
|
failureProperty="junit.failed" |
745 |
|
dir="${build.j1.dir}" |
746 |
|
fork="true"> |
747 |
|
|
748 |
|
<!-- <jvmarg value="-server"/> --> |
749 |
|
<classpath refid="j1.classpath"/> |
750 |
|
<formatter type="xml"/> |
751 |
|
|
752 |
|
<batchtest todir="${build.j1.dir}"> |
753 |
|
<fileset dir="${j1.src.dir}"> |
754 |
|
<include name="**/*Test.java"/> |
755 |
|
</fileset> |
756 |
|
</batchtest> |
757 |
|
|
758 |
|
</junit> |
759 |
|
|
760 |
|
<available property="junit.report.format" |
761 |
|
value="frames" |
762 |
|
classname="org.apache.xalan.lib.Redirect"/> |
763 |
|
<property name="junit.report.format" value="noframes"/> |
764 |
|
|
765 |
|
<junitreport todir="${build.j1.dir}"> |
766 |
|
<fileset dir="${build.j1.dir}"> |
767 |
|
<include name="TEST-*.xml"/> |
768 |
|
</fileset> |
769 |
|
<report styledir="${stylesheet.dir}" |
770 |
|
format="${junit.report.format}" |
771 |
|
todir="${build.j1.dir}" |
772 |
|
/> |
773 |
|
</junitreport> |
774 |
|
|
775 |
|
<fail message="Test Cases Failed" if="junit.failed"/> |
776 |
|
|
777 |
|
</target> |
778 |
|
|
779 |
|
|
780 |
|
|
781 |
<!-- C++ and JNI definitions and demos --> |
<!-- C++ and JNI definitions and demos --> |
782 |
|
|
783 |
<target name="configure-cpp"> |
<target name="configure-cpp"> |
784 |
|
|
785 |
<!-- Define tasks and types --> |
<!-- Define tasks and types --> |
786 |
|
|
787 |
<path id="cpptasks.path"> |
<path id="cpptasks.path"> |
788 |
<pathelement location="${lib.dir}/cpptasks.jar"/> |
<pathelement location="${lib.dir}/cpptasks.jar"/> |
789 |
</path> |
</path> |
790 |
<taskdef resource="cpptasks.tasks" classpathref="cpptasks.path"/> |
<taskdef resource="cpptasks.tasks" classpathref="cpptasks.path"/> |
791 |
<typedef resource="cpptasks.types" classpathref="cpptasks.path"/> |
<typedef resource="cpptasks.types" classpathref="cpptasks.path"/> |
792 |
|
|
793 |
<!-- Set platform property for JNI includes --> |
<!-- Set platform property for JNI includes --> |
794 |
|
|
795 |
<condition property="platform" value="linux"> |
<condition property="platform" value="linux"> |
796 |
<os name="Linux"/> |
<os name="Linux"/> |
797 |
</condition> |
</condition> |
801 |
<condition property="platform" value="solaris"> |
<condition property="platform" value="solaris"> |
802 |
<os name="SunOS"/> |
<os name="SunOS"/> |
803 |
</condition> |
</condition> |
804 |
|
|
805 |
</target> |
</target> |
806 |
|
|
807 |
|
|
808 |
<target name="cppdemo" depends="configure-cpp"> |
<target name="cppdemo" depends="configure-cpp"> |
809 |
|
|
810 |
<mkdir dir="${build.dir}"/> |
<mkdir dir="${build.dir}"/> |
811 |
|
|
812 |
<cc multithreaded="true" |
<cc multithreaded="true" |
813 |
name="g++" |
name="g++" |
814 |
objdir="${build.dir}" |
objdir="${build.dir}" |
815 |
outfile="${build.dir}/CppDemo"> |
outfile="${build.dir}/CppDemo"> |
816 |
<fileset dir="${test.src.dir}" includes="CppDemo.cpp"/> |
<fileset dir="${test.src.dir}" includes="CppDemo.cpp"/> |
817 |
<libset libs="stdc++"/> |
<libset libs="stdc++"/> |
818 |
</cc> |
</cc> |
819 |
|
|
820 |
<exec executable="${build.dir}/CppDemo"> |
<exec executable="${build.dir}/CppDemo"> |
821 |
<arg line="count in word frequency of word in command line count"/> |
<arg line="count in word frequency of word in command line count"/> |
822 |
</exec> |
</exec> |
823 |
|
|
824 |
</target> |
</target> |
825 |
|
|
826 |
|
|
827 |
<target name="jnidemo" depends="init, configure-compiler, configure-cpp"> |
<target name="jnidemo" depends="init, configure-compiler, configure-cpp"> |
828 |
|
|
829 |
<mkdir dir="${build.testcases.dir}"/> |
<mkdir dir="${build.testcases.dir}"/> |
830 |
|
|
831 |
<javac srcdir="${test.src.dir}" |
<javac srcdir="${test.src.dir}" |
832 |
destdir="${build.testcases.dir}" |
destdir="${build.testcases.dir}" |
833 |
debug="${build.debug}" |
debug="${build.debug}" |
840 |
<classpath refid="test.classpath"/> |
<classpath refid="test.classpath"/> |
841 |
<include name="JniDemo.java"/> |
<include name="JniDemo.java"/> |
842 |
</javac> |
</javac> |
843 |
|
|
844 |
<javah destdir="${build.testcases.dir}" |
<javah destdir="${build.testcases.dir}" |
845 |
classpathref="test.classpath"> |
classpathref="test.classpath"> |
846 |
<class name="JniDemo"/> |
<class name="JniDemo"/> |
847 |
</javah> |
</javah> |
848 |
|
|
849 |
<cc multithreaded="true" |
<cc multithreaded="true" |
850 |
name="g++" |
name="g++" |
851 |
objdir="${build.dir}" |
objdir="${build.dir}" |
852 |
outfile="${build.dir}/JniDemo" |
outfile="${build.dir}/JniDemo" |
853 |
outtype="shared"> |
outtype="shared"> |
854 |
|
|
855 |
<compiler> |
<compiler> |
856 |
<defineset> |
<defineset> |
857 |
<define name="__int64" value="long long"/> |
<define name="__int64" value="long long"/> |
860 |
<includepath location="${java.home}/../include/${platform}"/> |
<includepath location="${java.home}/../include/${platform}"/> |
861 |
<compilerarg value="-mno-cygwin"/> |
<compilerarg value="-mno-cygwin"/> |
862 |
</compiler> |
</compiler> |
863 |
|
|
864 |
<linker> |
<linker> |
865 |
<linkerarg value="--add-stdcall-alias"/> |
<linkerarg value="--add-stdcall-alias"/> |
866 |
</linker> |
</linker> |
867 |
|
|
868 |
<includepath location="${build.testcases.dir}"/> |
<includepath location="${build.testcases.dir}"/> |
869 |
|
|
870 |
<fileset dir="${test.src.dir}" includes="JniDemo.cpp"/> |
<fileset dir="${test.src.dir}" includes="JniDemo.cpp"/> |
871 |
|
|
872 |
<libset libs="stdc++"/> |
<libset libs="stdc++"/> |
873 |
|
|
874 |
</cc> |
</cc> |
875 |
|
|
876 |
<!-- Necessary if windows, harmless if not --> |
<!-- Necessary if windows, harmless if not --> |
877 |
<copy file="${build.dir}/libJniDemo.so" tofile="${build.dir}/JniDemo.dll"/> |
<copy file="${build.dir}/libJniDemo.so" tofile="${build.dir}/JniDemo.dll"/> |
878 |
|
|
879 |
<java classname="JniDemo" fork="true"> |
<java classname="JniDemo" fork="true"> |
880 |
<!-- Watch out: path separator hardwired to semicolon here! --> |
<!-- Watch out: path separator hardwired to semicolon here! --> |
881 |
<sysproperty key="java.library.path" path="${java.library.path};${build.dir}"/> |
<sysproperty key="java.library.path" path="${java.library.path};${build.dir}"/> |
882 |
<classpath refid="test.classpath"/> |
<classpath refid="test.classpath"/> |
883 |
|
<arg line="count in word frequency of word in command line count"/> |
884 |
</java> |
</java> |
885 |
|
|
886 |
</target> |
</target> |
887 |
|
|
888 |
|
|
895 |
<property name="build.pretiger.dir" location="${build.dir}/pretiger/classes"/> |
<property name="build.pretiger.dir" location="${build.dir}/pretiger/classes"/> |
896 |
<property name="pretiger.jar" location="${build.lib.dir}/jsr166-pretiger.jar"/> |
<property name="pretiger.jar" location="${build.lib.dir}/jsr166-pretiger.jar"/> |
897 |
<property name="pretiger.sourcelevel" value="1.4"/> |
<property name="pretiger.sourcelevel" value="1.4"/> |
898 |
|
|
899 |
<target name="defang" |
<target name="defang" |
900 |
depends="init" |
depends="init" |
901 |
description="Generates pre-Tiger compatible source"> |
description="Generates pre-Tiger compatible source"> |
902 |
|
|
903 |
<delete dir="${pretiger.src.dir}"/> |
<delete dir="${pretiger.src.dir}"/> |
904 |
<mkdir dir="${pretiger.src.dir}"/> |
<mkdir dir="${pretiger.src.dir}"/> |
905 |
|
|
906 |
<exec executable="perl"> |
<exec executable="perl"> |
907 |
<arg file="etc/defang.pl"/> |
<arg file="etc/defang.pl"/> |
908 |
<!-- <arg value="-v"/> --> |
<!-- <arg value="-v"/> --> |
909 |
<arg value="-s"/> <arg file="${src.dir}"/> |
<arg value="-s"/> <arg file="${src.dir}"/> |
910 |
<arg value="-t"/> <arg file="${pretiger.src.dir}"/> |
<arg value="-t"/> <arg file="${pretiger.src.dir}"/> |
911 |
</exec> |
</exec> |
912 |
|
|
913 |
</target> |
</target> |
914 |
|
|
915 |
<target name="compile-pretiger" |
<target name="compile-pretiger" |
932 |
</javac> |
</javac> |
933 |
|
|
934 |
</target> |
</target> |
935 |
|
|
936 |
<target name="pretiger" depends="compile-pretiger"> |
<target name="pretiger" depends="compile-pretiger"> |
937 |
|
|
938 |
<mkdir dir="${build.lib.dir}"/> |
<mkdir dir="${build.lib.dir}"/> |
939 |
|
|
940 |
<jar destfile="${pretiger.jar}"> |
<jar destfile="${pretiger.jar}"> |
941 |
<fileset dir="${build.pretiger.dir}"> |
<fileset dir="${build.pretiger.dir}"> |
942 |
</fileset> |
</fileset> |
943 |
</jar> |
</jar> |
944 |
|
|
945 |
</target> |
</target> |
946 |
|
|
947 |
</project> |
</project> |