| OLD | NEW |
| 1 <!-- Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 <!-- Copyright (c) 2012 The Chromium Authors. All rights reserved. |
| 2 | 2 |
| 3 Use of this source code is governed by a BSD-style license that can be | 3 Use of this source code is governed by a BSD-style license that can be |
| 4 found in the LICENSE file. | 4 found in the LICENSE file. |
| 5 --> | 5 --> |
| 6 <project name="Content" default="dist" basedir="."> | 6 <project name="Content" default="dist" basedir="."> |
| 7 <description> | 7 <description> |
| 8 building content java source code with ant | 8 building content java source code with ant |
| 9 </description> | 9 </description> |
| 10 <!-- set global properties for this build --> | 10 <!-- set global properties for this build --> |
| (...skipping 22 matching lines...) Expand all Loading... |
| 33 | 33 |
| 34 <target name="compile" depends="init" | 34 <target name="compile" depends="init" |
| 35 description="compile the source " > | 35 description="compile the source " > |
| 36 <!-- Create the classes output directory --> | 36 <!-- Create the classes output directory --> |
| 37 <mkdir dir="${classes.dir}"/> | 37 <mkdir dir="${classes.dir}"/> |
| 38 | 38 |
| 39 <!-- Compile the java code from ${src} into ${classes.dir} --> | 39 <!-- Compile the java code from ${src} into ${classes.dir} --> |
| 40 <javac srcdir="${src}" destdir="${classes.dir}"> | 40 <javac srcdir="${src}" destdir="${classes.dir}"> |
| 41 <classpath> | 41 <classpath> |
| 42 <path location="${location.base}/android.jar"/> | 42 <path location="${location.base}/android.jar"/> |
| 43 <path location="${PRODUCT_DIR}/chromium_base.jar"/> |
| 43 </classpath> | 44 </classpath> |
| 44 </javac> | 45 </javac> |
| 45 </target> | 46 </target> |
| 46 | 47 |
| 47 <target name="dist" depends="compile" | 48 <target name="dist" depends="compile" |
| 48 description="generate the distribution" > | 49 description="generate the distribution" > |
| 49 <!-- Create the distribution directory --> | 50 <!-- Create the distribution directory --> |
| 50 <mkdir dir="${jar.dir}"/> | 51 <mkdir dir="${jar.dir}"/> |
| 51 | 52 |
| 52 <!-- Put everything in ${classes.dir} into the chromium_content.jar file --> | 53 <!-- Put everything in ${classes.dir} into the chromium_content.jar file --> |
| 53 <jar jarfile="${jar.dir}/chromium_${PACKAGE_NAME}.jar" basedir="${classes.di
r}"/> | 54 <jar jarfile="${jar.dir}/chromium_${PACKAGE_NAME}.jar" basedir="${classes.di
r}"/> |
| 54 </target> | 55 </target> |
| 55 | 56 |
| 56 <target name="clean" description="clean up" > | 57 <target name="clean" description="clean up" > |
| 57 <!-- Delete the generated content --> | 58 <!-- Delete the generated content --> |
| 58 <delete dir="${classes.dir}"/> | 59 <delete dir="${classes.dir}"/> |
| 59 <delete file="${jar.dir}/chromium_${PACKAGE_NAME}.jar"/> | 60 <delete file="${jar.dir}/chromium_${PACKAGE_NAME}.jar"/> |
| 60 </target> | 61 </target> |
| 61 </project> | 62 </project> |
| OLD | NEW |