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