Skip to content

Commit 5a737d4

Browse files
committed
latest build script
1 parent fc3ea79 commit 5a737d4

1 file changed

Lines changed: 37 additions & 35 deletions

File tree

build.xml

Lines changed: 37 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -7,80 +7,82 @@
77
<property name="dir.javadoc" value="javadoc" />
88
<property name="dir.result" value="results" />
99
<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" />
1111

1212
<path id="project.classpath">
1313
<pathelement location="${dir.root}/DepFiles/public/jackson-core-asl-1.9.11.jar" />
14+
<pathelement location="${dir.root}/DepFiles/public/java-json.jar" />
1415
<pathelement location="${dir.root}/DepFiles/unittest/jersey-client-1.5.jar" />
1516
<pathelement location="${dir.root}/DepFiles/unittest/jersey-core-1.5.jar" />
1617
<pathelement location="${dir.root}/DepFiles/unittest/junit-4.8.2.jar" />
1718
<pathelement location="${dir.root}/DepFiles/unittest/jts/jts-1.11.jar" />
1819
<pathelement location="${dir.build}" />
1920
</path>
2021

21-
<target name="all" depends="build, jar, execute, report, javadoc" />
22+
<target name="all" depends="build, jar, execute, javadoc" />
2223

2324
<target name="build">
2425
<delete dir="${dir.build}" />
2526
<mkdir dir="${dir.build}" />
2627
<javac srcdir="." includes="src/**" classpathref="project.classpath" destdir="${dir.build}" debug="true" />
2728
<copy todir="${dir.build}">
28-
<fileset dir="${dir.src}" excludes="**/*.java" />
29+
<fileset dir="${dir.src}" includes = "**/*.txt" />
2930
</copy>
3031
</target>
3132

3233
<target name="jar" depends="build">
3334
<delete file="${file.jarname}" />
34-
<jar destfile="${file.jarname}" compress="false" keepcompression="false">
35+
<jar destfile="${file.jarname}" compress="true" keepcompression="true">
3536
<fileset dir="${dir.build}" />
36-
<fileset dir="${dir.src}" />
3737
</jar>
3838
</target>
3939

4040
<target name="build.unittest" depends = "jar">
4141
<javac srcdir="." includes="unittest/**" classpathref="project.classpath" destdir="${dir.build}" debug="true" />
4242
<copy todir="${dir.build}">
43-
<fileset dir="${dir.unittest}" excludes="**/*.java" />
43+
<fileset dir="${dir.unittest}" includes="**/*.txt" />
4444
</copy>
4545
</target>
46-
47-
46+
47+
4848
<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}" />
5452

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" />
6955

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" />
7566
</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>
7980

8081
<target name="javadoc" depends="jar">
8182
<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">
8283
<link href="http://help.arcgis.com/EN/sdk/10.0/Java_AO_ADF/api/arcobjects" />
8384
<link href="http://docs.oracle.com/javase/6/docs/api/" />
8485
</javadoc>
8586
</target>
87+
8688
</project>

0 commit comments

Comments
 (0)