1*90c8c64dSAndroid Build Coastguard Worker<?xml version="1.0" encoding="UTF-8"?> 2*90c8c64dSAndroid Build Coastguard Worker<project name="TouchExampleActivity" default="help"> 3*90c8c64dSAndroid Build Coastguard Worker 4*90c8c64dSAndroid Build Coastguard Worker <!-- The local.properties file is created and updated by the 'android' tool. 5*90c8c64dSAndroid Build Coastguard Worker It contains the path to the SDK. It should *NOT* be checked in in Version 6*90c8c64dSAndroid Build Coastguard Worker Control Systems. --> 7*90c8c64dSAndroid Build Coastguard Worker <property file="local.properties" /> 8*90c8c64dSAndroid Build Coastguard Worker 9*90c8c64dSAndroid Build Coastguard Worker <!-- The build.properties file can be created by you and is never touched 10*90c8c64dSAndroid Build Coastguard Worker by the 'android' tool. This is the place to change some of the default property values 11*90c8c64dSAndroid Build Coastguard Worker used by the Ant rules. 12*90c8c64dSAndroid Build Coastguard Worker Here are some properties you may want to change/update: 13*90c8c64dSAndroid Build Coastguard Worker 14*90c8c64dSAndroid Build Coastguard Worker application.package 15*90c8c64dSAndroid Build Coastguard Worker the name of your application package as defined in the manifest. Used by the 16*90c8c64dSAndroid Build Coastguard Worker 'uninstall' rule. 17*90c8c64dSAndroid Build Coastguard Worker source.dir 18*90c8c64dSAndroid Build Coastguard Worker the name of the source directory. Default is 'src'. 19*90c8c64dSAndroid Build Coastguard Worker out.dir 20*90c8c64dSAndroid Build Coastguard Worker the name of the output directory. Default is 'bin'. 21*90c8c64dSAndroid Build Coastguard Worker 22*90c8c64dSAndroid Build Coastguard Worker Properties related to the SDK location or the project target should be updated 23*90c8c64dSAndroid Build Coastguard Worker using the 'android' tool with the 'update' action. 24*90c8c64dSAndroid Build Coastguard Worker 25*90c8c64dSAndroid Build Coastguard Worker This file is an integral part of the build system for your application and 26*90c8c64dSAndroid Build Coastguard Worker should be checked in in Version Control Systems. 27*90c8c64dSAndroid Build Coastguard Worker 28*90c8c64dSAndroid Build Coastguard Worker --> 29*90c8c64dSAndroid Build Coastguard Worker <property file="build.properties" /> 30*90c8c64dSAndroid Build Coastguard Worker 31*90c8c64dSAndroid Build Coastguard Worker <!-- The default.properties file is created and updated by the 'android' tool, as well 32*90c8c64dSAndroid Build Coastguard Worker as ADT. 33*90c8c64dSAndroid Build Coastguard Worker This file is an integral part of the build system for your application and 34*90c8c64dSAndroid Build Coastguard Worker should be checked in in Version Control Systems. --> 35*90c8c64dSAndroid Build Coastguard Worker <property file="default.properties" /> 36*90c8c64dSAndroid Build Coastguard Worker 37*90c8c64dSAndroid Build Coastguard Worker <!-- Custom Android task to deal with the project target, and import the proper rules. 38*90c8c64dSAndroid Build Coastguard Worker This requires ant 1.6.0 or above. --> 39*90c8c64dSAndroid Build Coastguard Worker <path id="android.antlibs"> 40*90c8c64dSAndroid Build Coastguard Worker <pathelement path="${sdk.dir}/tools/lib/anttasks.jar" /> 41*90c8c64dSAndroid Build Coastguard Worker <pathelement path="${sdk.dir}/tools/lib/sdklib.jar" /> 42*90c8c64dSAndroid Build Coastguard Worker <pathelement path="${sdk.dir}/tools/lib/androidprefs.jar" /> 43*90c8c64dSAndroid Build Coastguard Worker <pathelement path="${sdk.dir}/tools/lib/apkbuilder.jar" /> 44*90c8c64dSAndroid Build Coastguard Worker <pathelement path="${sdk.dir}/tools/lib/jarutils.jar" /> 45*90c8c64dSAndroid Build Coastguard Worker </path> 46*90c8c64dSAndroid Build Coastguard Worker 47*90c8c64dSAndroid Build Coastguard Worker <taskdef name="setup" 48*90c8c64dSAndroid Build Coastguard Worker classname="com.android.ant.SetupTask" 49*90c8c64dSAndroid Build Coastguard Worker classpathref="android.antlibs" /> 50*90c8c64dSAndroid Build Coastguard Worker 51*90c8c64dSAndroid Build Coastguard Worker <!-- Execute the Android Setup task that will setup some properties specific to the target, 52*90c8c64dSAndroid Build Coastguard Worker and import the build rules files. 53*90c8c64dSAndroid Build Coastguard Worker 54*90c8c64dSAndroid Build Coastguard Worker The rules file is imported from 55*90c8c64dSAndroid Build Coastguard Worker <SDK>/platforms/<target_platform>/templates/android_rules.xml 56*90c8c64dSAndroid Build Coastguard Worker 57*90c8c64dSAndroid Build Coastguard Worker To customize some build steps for your project: 58*90c8c64dSAndroid Build Coastguard Worker - copy the content of the main node <project> from android_rules.xml 59*90c8c64dSAndroid Build Coastguard Worker - paste it in this build.xml below the <setup /> task. 60*90c8c64dSAndroid Build Coastguard Worker - disable the import by changing the setup task below to <setup import="false" /> 61*90c8c64dSAndroid Build Coastguard Worker 62*90c8c64dSAndroid Build Coastguard Worker This will ensure that the properties are setup correctly but that your customized 63*90c8c64dSAndroid Build Coastguard Worker build steps are used. 64*90c8c64dSAndroid Build Coastguard Worker --> 65*90c8c64dSAndroid Build Coastguard Worker <setup /> 66*90c8c64dSAndroid Build Coastguard Worker 67*90c8c64dSAndroid Build Coastguard Worker</project> 68