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