| 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="ContentPublic" 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 --> |
| 11 <property environment="env"/> | 11 <property environment="env"/> |
| 12 <property name="sdk.dir" location="${env.ANDROID_SDK_ROOT}"/> | 12 <property name="sdk.dir" location="${env.ANDROID_SDK_ROOT}"/> |
| 13 <property name="sdk.version" value="${env.ANDROID_SDK_VERSION}"/> | 13 <property name="sdk.version" value="${env.ANDROID_SDK_VERSION}"/> |
| 14 <property name="src" location="."/> | 14 <property name="src" location="."/> |
| 15 <property name="out.dir" location="${PRODUCT_DIR}"/> | 15 <property name="out.dir" location="${PRODUCT_DIR}"/> |
| 16 <property name="classes.dir" location="${out.dir}/java/${PACKAGE_NAME}"/> | 16 <property name="classes.dir" location="${out.dir}/java/${PACKAGE_NAME}"/> |
| (...skipping 25 matching lines...) Expand all Loading... |
| 42 <path location="${location.base}/android.jar"/> | 42 <path location="${location.base}/android.jar"/> |
| 43 </classpath> | 43 </classpath> |
| 44 </javac> | 44 </javac> |
| 45 </target> | 45 </target> |
| 46 | 46 |
| 47 <target name="dist" depends="compile" | 47 <target name="dist" depends="compile" |
| 48 description="generate the distribution" > | 48 description="generate the distribution" > |
| 49 <!-- Create the distribution directory --> | 49 <!-- Create the distribution directory --> |
| 50 <mkdir dir="${jar.dir}"/> | 50 <mkdir dir="${jar.dir}"/> |
| 51 | 51 |
| 52 <!-- Put everything in ${classes.dir} into the chromium_content.jar file --> | 52 <!-- Put everything in ${classes.dir} into the chromium_content_public.jar f
ile --> |
| 53 <jar jarfile="${jar.dir}/chromium_${PACKAGE_NAME}.jar" basedir="${classes.di
r}"/> | 53 <jar jarfile="${jar.dir}/chromium_${PACKAGE_NAME}.jar" basedir="${classes.di
r}"/> |
| 54 </target> | 54 </target> |
| 55 | 55 |
| 56 <target name="clean" description="clean up" > | 56 <target name="clean" description="clean up" > |
| 57 <!-- Delete the generated content --> | 57 <!-- Delete the generated content --> |
| 58 <delete dir="${classes.dir}"/> | 58 <delete dir="${classes.dir}"/> |
| 59 <delete file="${jar.dir}/chromium_${PACKAGE_NAME}.jar"/> | 59 <delete file="${jar.dir}/chromium_${PACKAGE_NAME}.jar"/> |
| 60 </target> | 60 </target> |
| 61 </project> | 61 </project> |
| OLD | NEW |