| OLD | NEW |
| 1 <project name="Base" default="dist" basedir="."> | 1 <project name="Base" default="dist" basedir="."> |
| 2 <description> | 2 <description> |
| 3 building base java source code with ant | 3 building base java source code with ant |
| 4 </description> | 4 </description> |
| 5 <!-- set global properties for this build --> | 5 <!-- Set global properties for this build --> |
| 6 <property environment="env"/> |
| 7 <property name="sdk.dir" location="${env.ANDROID_SDK_ROOT}"/> |
| 8 <property name="sdk.version" value="${env.ANDROID_SDK_VERSION}"/> |
| 6 <property name="src" location="."/> | 9 <property name="src" location="."/> |
| 7 <property name="build" location="build"/> | 10 <property name="build" location="build"/> |
| 8 <property name="dist" location="dist"/> | 11 <property name="dist" location="dist"/> |
| 9 | 12 |
| 10 <target name="init"> | 13 <target name="init"> |
| 11 <!-- Create the time stamp --> | 14 <!-- Create the time stamp --> |
| 12 <tstamp/> | 15 <tstamp/> |
| 13 <!-- Create the build directory structure used by compile --> | 16 <!-- Create the build directory structure used by compile --> |
| 14 <mkdir dir="${build}"/> | 17 <mkdir dir="${build}"/> |
| 15 </target> | 18 </target> |
| 16 | 19 |
| 17 <target name="compile" depends="init" | 20 <target name="compile" depends="init" |
| 18 description="compile the source " > | 21 description="compile the source " > |
| 19 <!-- Compile the java code from ${src} into ${build} --> | 22 <!-- Compile the java code from ${src} into ${build} --> |
| 20 <javac srcdir="${src}" destdir="${build}"/> | 23 <javac srcdir="${src}" destdir="${build}"> |
| 24 <classpath> |
| 25 <path location="${sdk.dir}/platforms/android-${sdk.version}/android.jar"
/> |
| 26 </classpath> |
| 27 </javac> |
| 21 </target> | 28 </target> |
| 22 | 29 |
| 23 <target name="dist" depends="compile" | 30 <target name="dist" depends="compile" |
| 24 description="generate the distribution" > | 31 description="generate the distribution" > |
| 25 <!-- Create the distribution directory --> | 32 <!-- Create the distribution directory --> |
| 26 <mkdir dir="${dist}/lib"/> | 33 <mkdir dir="${dist}/lib"/> |
| 27 | 34 |
| 28 <!-- Put everything in ${build} into the chromium_base.jar file --> | 35 <!-- Put everything in ${build} into the chromium_base.jar file --> |
| 29 <jar jarfile="${dist}/lib/chromium_base.jar" basedir="${build}"/> | 36 <jar jarfile="${dist}/lib/chromium_base.jar" basedir="${build}"/> |
| 30 </target> | 37 </target> |
| 31 | 38 |
| 32 <target name="clean" | 39 <target name="clean" |
| 33 description="clean up" > | 40 description="clean up" > |
| 34 <!-- Delete the ${build} and ${dist} directory trees --> | 41 <!-- Delete the ${build} and ${dist} directory trees --> |
| 35 <delete dir="${build}"/> | 42 <delete dir="${build}"/> |
| 36 <delete dir="${dist}"/> | 43 <delete dir="${dist}"/> |
| 37 </target> | 44 </target> |
| 38 </project> | 45 </project> |
| OLD | NEW |