OSDN Git Service

Merge "Fix eclipse download link."
[android-x86/sdk.git] / templates / build.export.template
1 <?xml version="1.0" encoding="UTF-8"?>
2 <project name="Main" default="help">
3
4     <!-- The local.properties file is created and updated by the 'android'
5          tool.
6          It contains the path to the SDK. It should *NOT* be checked in in
7          Version Control Systems. -->
8     <property file="local.properties" />
9
10     <!-- ? -->
11     <property file="export.properties" />
12
13     <!-- Custom Android task to deal with the project target, and import the proper rules.
14          This requires ant 1.6.0 or above. -->
15     <path id="android.antlibs">
16         <pathelement path="${sdk.dir}/tools/lib/anttasks.jar" />
17         <pathelement path="${sdk.dir}/tools/lib/sdklib.jar" />
18         <pathelement path="${sdk.dir}/tools/lib/androidprefs.jar" />
19         <pathelement path="${sdk.dir}/tools/lib/apkbuilder.jar" />
20         <pathelement path="${sdk.dir}/tools/lib/jarutils.jar" />
21     </path>
22
23     <taskdef name="android-export"
24         classname="com.android.ant.MultiApkExportTask"
25         classpathref="android.antlibs" />
26
27     <property name="out.dir" value="bin" />
28     <property name="out.absolute.dir" location="${out.dir}" />
29
30     <target name="-dirs">
31         <echo>Creating output directories if needed...</echo>
32         <mkdir dir="${out.absolute.dir}" />
33     </target>
34
35     <target name="release" depends="-dirs">
36         <android-export target="release" />
37     </target>
38
39     <target name="clean">
40         <delete dir="${out.absolute.dir}" verbose="${verbose}" />
41         <android-export target="clean"/>
42     </target>
43
44     <target name="help">
45         <!-- displays starts at col 13
46               |13                                                              80| -->
47         <echo>Android Ant Build. Available targets:</echo>
48         <echo>   help:      Displays this help.</echo>
49         <echo>   clean:     Removes output files created by other targets.</echo>
50         <echo>   release:   Builds the application. The generated apk file must be</echo>
51         <echo>              signed before it is published.</echo>
52     </target>
53 </project>