|
7 | 7 | <property name="dir.javadoc" value="javadoc" /> |
8 | 8 | <property name="dir.result" value="results" /> |
9 | 9 | <property name="dir.root" value="." /> |
10 | | - <property name="file.jarname" value="esri-geometry-api-java${ant.java.version}.jar" /> |
| 10 | + <property name="file.jarname" value="esri-geometry-api.jar" /> |
11 | 11 |
|
12 | 12 | <path id="project.classpath"> |
13 | 13 | <pathelement location="${dir.root}/DepFiles/public/jackson-core-asl-1.9.11.jar" /> |
| 14 | + <pathelement location="${dir.root}/DepFiles/public/java-json.jar" /> |
14 | 15 | <pathelement location="${dir.root}/DepFiles/unittest/jersey-client-1.5.jar" /> |
15 | 16 | <pathelement location="${dir.root}/DepFiles/unittest/jersey-core-1.5.jar" /> |
16 | 17 | <pathelement location="${dir.root}/DepFiles/unittest/junit-4.8.2.jar" /> |
17 | 18 | <pathelement location="${dir.root}/DepFiles/unittest/jts/jts-1.11.jar" /> |
18 | 19 | <pathelement location="${dir.build}" /> |
19 | 20 | </path> |
20 | 21 |
|
21 | | - <target name="all" depends="build, jar, execute, report, javadoc" /> |
| 22 | + <target name="all" depends="build, jar, execute, javadoc" /> |
22 | 23 |
|
23 | 24 | <target name="build"> |
24 | 25 | <delete dir="${dir.build}" /> |
25 | 26 | <mkdir dir="${dir.build}" /> |
26 | 27 | <javac srcdir="." includes="src/**" classpathref="project.classpath" destdir="${dir.build}" debug="true" /> |
27 | 28 | <copy todir="${dir.build}"> |
28 | | - <fileset dir="${dir.src}" excludes="**/*.java" /> |
| 29 | + <fileset dir="${dir.src}" includes = "**/*.txt" /> |
29 | 30 | </copy> |
30 | 31 | </target> |
31 | 32 |
|
32 | 33 | <target name="jar" depends="build"> |
33 | 34 | <delete file="${file.jarname}" /> |
34 | | - <jar destfile="${file.jarname}" compress="false" keepcompression="false"> |
| 35 | + <jar destfile="${file.jarname}" compress="true" keepcompression="true"> |
35 | 36 | <fileset dir="${dir.build}" /> |
36 | | - <fileset dir="${dir.src}" /> |
37 | 37 | </jar> |
38 | 38 | </target> |
39 | 39 |
|
40 | 40 | <target name="build.unittest" depends = "jar"> |
41 | 41 | <javac srcdir="." includes="unittest/**" classpathref="project.classpath" destdir="${dir.build}" debug="true" /> |
42 | 42 | <copy todir="${dir.build}"> |
43 | | - <fileset dir="${dir.unittest}" excludes="**/*.java" /> |
| 43 | + <fileset dir="${dir.unittest}" includes="**/*.txt" /> |
44 | 44 | </copy> |
45 | 45 | </target> |
46 | | - |
47 | | - |
| 46 | + |
| 47 | + |
48 | 48 | <target name="execute" depends = "build.unittest"> |
49 | | - <tstamp></tstamp> |
50 | | - <property name="dir.result.today" location="${dir.result}/${DSTAMP}/${TSTAMP}" /> |
51 | | - |
52 | | - <mkdir dir="${dir.result}" /> |
53 | | - <mkdir dir="${dir.result.today}/xml" /> |
| 49 | + <tstamp> |
| 50 | + </tstamp> |
| 51 | + <property name="dir.result.today" location="${dir.result}/${DSTAMP}/${TSTAMP}" /> |
54 | 52 |
|
55 | | - <junit fork="yes" printsummary="withOutAndErr" haltonfailure="no" haltonerror="no"> |
56 | | - <jvmarg value="-Xss2m" /> |
57 | | - <classpath refid="project.classpath" /> |
58 | | - <sysproperty key="dir.report.test" value="${dir.result.today}" /> |
59 | | - <sysproperty key="arcgis.version.target" value="10.2" /> |
60 | | - <sysproperty key="arcgis.product.target" value="desktop" /> |
61 | | - <formatter type="xml" /> |
62 | | - <batchtest todir="${dir.result.today}/xml" fork="yes"> |
63 | | - <fileset dir="${dir.build}"> |
64 | | - <include name="**/Test*.class" /> |
65 | | - </fileset> |
66 | | - </batchtest> |
67 | | - </junit> |
68 | | - </target> |
| 53 | + <mkdir dir="${dir.result}" /> |
| 54 | + <mkdir dir="${dir.result.today}/xml" /> |
69 | 55 |
|
70 | | - <target name="report"> |
71 | | - |
72 | | - <junitreport todir="${dir.result.today}/xml"> |
73 | | - <fileset dir="${dir.result.today}/xml"> |
74 | | - <include name="**/*.xml" /> |
| 56 | + <junit fork="yes" printsummary="withOutAndErr" haltonfailure="no" haltonerror="no"> |
| 57 | + <jvmarg value="-Xss2m" /> |
| 58 | + <classpath refid="project.classpath" /> |
| 59 | + <sysproperty key="dir.report.test" value="${dir.result.today}" /> |
| 60 | + <sysproperty key="arcgis.version.target" value="10.2" /> |
| 61 | + <sysproperty key="arcgis.product.target" value="desktop" /> |
| 62 | + <formatter type="xml" /> |
| 63 | + <batchtest todir="${dir.result.today}/xml" fork="yes"> |
| 64 | + <fileset dir="${dir.build}"> |
| 65 | + <include name="**/Test*.class" /> |
75 | 66 | </fileset> |
76 | | - <report format="frames" todir="${dir.result.today}" /> |
77 | | - </junitreport> |
78 | | - </target> |
| 67 | + </batchtest> |
| 68 | + </junit> |
| 69 | + </target> |
| 70 | + |
| 71 | + <target name="report" depends="execute"> |
| 72 | + |
| 73 | + <junitreport todir="${dir.result.today}/xml"> |
| 74 | + <fileset dir="${dir.result.today}/xml"> |
| 75 | + <include name="**/*.xml" /> |
| 76 | + </fileset> |
| 77 | + <report format="frames" todir="${dir.result.today}" /> |
| 78 | + </junitreport> |
| 79 | + </target> |
79 | 80 |
|
80 | 81 | <target name="javadoc" depends="jar"> |
81 | 82 | <javadoc access="public" author="true" classpathref="project.classpath" destdir="${dir.javadoc}" doctitle="Esri-geometryapi" nodeprecated="false" nodeprecatedlist="false" noindex="false" nonavbar="false" notree="false" packagenames="com.esri.core.geometry" source="1.5" sourcepath="${dir.src}" splitindex="true" use="true" version="true"> |
82 | 83 | <link href="http://help.arcgis.com/EN/sdk/10.0/Java_AO_ADF/api/arcobjects" /> |
83 | 84 | <link href="http://docs.oracle.com/javase/6/docs/api/" /> |
84 | 85 | </javadoc> |
85 | 86 | </target> |
| 87 | + |
86 | 88 | </project> |
0 commit comments