123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192 |
- <?xml version="1.0" encoding="UTF-8"?>
-
- <project name="Cordova" default="jar">
-
-
- <loadfile property="version" srcFile="../VERSION">
- <filterchain>
- <striplinebreaks/>
- </filterchain>
- </loadfile>
-
-
- <antversion property="thisantversion" atleast="1.8.0" />
- <fail message="The required minimum version of ant is 1.8.0, you have ${ant.version}"
- unless="thisantversion" />
-
-
-
- <available file="local.properties" property="exists.local.properties" />
- <fail message="You need to create the file 'local.properties' by running 'android update project -p .' here."
- unless="exists.local.properties" />
- <loadproperties srcFile="local.properties" />
-
-
-
- <property file="ant.properties" />
-
-
-
- <loadproperties srcFile="project.properties" />
-
-
- <fail
- message="sdk.dir is missing. Make sure to generate local.properties using 'android update project'"
- unless="sdk.dir"
- />
-
-
-
-
- <target name="-pre-clean">
-
- <delete dir="javadoc-public" failonerror="false" />
- <delete dir="javadoc-private" failonerror="false" />
-
- <delete file="cordova-${version}.jar" failonerror="false" />
- </target>
-
-
-
- <import file="${sdk.dir}/tools/ant/build.xml" />
-
-
-
- <target name="jar" depends="-compile">
- <jar
- basedir="bin/classes"
- excludes="org/apache/cordova/R.class,org/apache/cordova/R$*.class"
- jarfile="cordova-${version}.jar" />
- </target>
-
- <target name="javadoc">
- <delete dir="javadoc-public" failonerror="false" />
- <javadoc
- access="public"
- destdir="javadoc-public"
- classpath="${sdk.dir}/platforms/${target}/android.jar">
- <packageset dir="src">
- <include name="org/apache/cordova/**" />
- </packageset>
- </javadoc>
- <delete dir="javadoc-private" failonerror="false" />
- <javadoc
- access="private"
- destdir="javadoc-private"
- classpath="${sdk.dir}/platforms/${target}/android.jar">
- <packageset dir="src">
- <include name="org/apache/cordova/**" />
- </packageset>
- </javadoc>
- </target>
-
-
- <property name="test.dir" location="test/org/apache/cordova" />
-
- <path id="test.classpath">
-
- <pathelement location="libs/junit-4.10.jar" />
- <pathelement location="cordova-${version}.jar" />
- <pathelement location="${test.dir}" />
- </path>
-
- <target name="compile-test">
- <javac srcdir="${test.dir}" >
- <classpath refid="test.classpath" />
- </javac>
- </target>
-
- <target name="test" depends="jar, compile-test">
- <junit showoutput="true">
- <classpath refid="test.classpath" />
- <formatter type="brief" usefile="false" />
- <batchtest fork="yes">
- <fileset dir="${test.dir}">
- <include name="*Test.java" />
- <include name="**/*Test.java" />
- </fileset>
- </batchtest>
- </junit>
- </target>
-
- <target name="cordova_debug" depends="debug">
- </target>
-
- <target name="cordova_release" depends="release">
- </target>
-
- </project>
|