14516d89950fccbb8f44c957242a822f6af39f702Michael Wright<?xml version="1.0" encoding="UTF-8"?> 24516d89950fccbb8f44c957242a822f6af39f702Michael Wright<project name="MyActivity" default="help"> 34516d89950fccbb8f44c957242a822f6af39f702Michael Wright 44516d89950fccbb8f44c957242a822f6af39f702Michael Wright <!-- The local.properties file is created and updated by the 'android' tool. 54516d89950fccbb8f44c957242a822f6af39f702Michael Wright It contains the path to the SDK. It should *NOT* be checked into 64516d89950fccbb8f44c957242a822f6af39f702Michael Wright Version Control Systems. --> 74516d89950fccbb8f44c957242a822f6af39f702Michael Wright <property file="local.properties" /> 84516d89950fccbb8f44c957242a822f6af39f702Michael Wright 94516d89950fccbb8f44c957242a822f6af39f702Michael Wright <!-- The ant.properties file can be created by you. It is only edited by the 104516d89950fccbb8f44c957242a822f6af39f702Michael Wright 'android' tool to add properties to it. 114516d89950fccbb8f44c957242a822f6af39f702Michael Wright This is the place to change some Ant specific build properties. 124516d89950fccbb8f44c957242a822f6af39f702Michael Wright Here are some properties you may want to change/update: 134516d89950fccbb8f44c957242a822f6af39f702Michael Wright 144516d89950fccbb8f44c957242a822f6af39f702Michael Wright source.dir 154516d89950fccbb8f44c957242a822f6af39f702Michael Wright The name of the source directory. Default is 'src'. 164516d89950fccbb8f44c957242a822f6af39f702Michael Wright out.dir 174516d89950fccbb8f44c957242a822f6af39f702Michael Wright The name of the output directory. Default is 'bin'. 184516d89950fccbb8f44c957242a822f6af39f702Michael Wright 194516d89950fccbb8f44c957242a822f6af39f702Michael Wright For other overridable properties, look at the beginning of the rules 204516d89950fccbb8f44c957242a822f6af39f702Michael Wright files in the SDK, at tools/ant/build.xml 214516d89950fccbb8f44c957242a822f6af39f702Michael Wright 224516d89950fccbb8f44c957242a822f6af39f702Michael Wright Properties related to the SDK location or the project target should 234516d89950fccbb8f44c957242a822f6af39f702Michael Wright be updated using the 'android' tool with the 'update' action. 244516d89950fccbb8f44c957242a822f6af39f702Michael Wright 254516d89950fccbb8f44c957242a822f6af39f702Michael Wright This file is an integral part of the build system for your 264516d89950fccbb8f44c957242a822f6af39f702Michael Wright application and should be checked into Version Control Systems. 274516d89950fccbb8f44c957242a822f6af39f702Michael Wright 284516d89950fccbb8f44c957242a822f6af39f702Michael Wright --> 294516d89950fccbb8f44c957242a822f6af39f702Michael Wright <property file="ant.properties" /> 304516d89950fccbb8f44c957242a822f6af39f702Michael Wright 314516d89950fccbb8f44c957242a822f6af39f702Michael Wright <!-- The project.properties file is created and updated by the 'android' 324516d89950fccbb8f44c957242a822f6af39f702Michael Wright tool, as well as ADT. 334516d89950fccbb8f44c957242a822f6af39f702Michael Wright 344516d89950fccbb8f44c957242a822f6af39f702Michael Wright This contains project specific properties such as project target, and library 354516d89950fccbb8f44c957242a822f6af39f702Michael Wright dependencies. Lower level build properties are stored in ant.properties 364516d89950fccbb8f44c957242a822f6af39f702Michael Wright (or in .classpath for Eclipse projects). 374516d89950fccbb8f44c957242a822f6af39f702Michael Wright 384516d89950fccbb8f44c957242a822f6af39f702Michael Wright This file is an integral part of the build system for your 394516d89950fccbb8f44c957242a822f6af39f702Michael Wright application and should be checked into Version Control Systems. --> 404516d89950fccbb8f44c957242a822f6af39f702Michael Wright <loadproperties srcFile="project.properties" /> 414516d89950fccbb8f44c957242a822f6af39f702Michael Wright 424516d89950fccbb8f44c957242a822f6af39f702Michael Wright <!-- if sdk.dir was not set from one of the property file, then 434516d89950fccbb8f44c957242a822f6af39f702Michael Wright get it from the ANDROID_HOME env var. --> 444516d89950fccbb8f44c957242a822f6af39f702Michael Wright <property environment="env" /> 454516d89950fccbb8f44c957242a822f6af39f702Michael Wright <condition property="sdk.dir" value="${env.ANDROID_HOME}"> 464516d89950fccbb8f44c957242a822f6af39f702Michael Wright <isset property="env.ANDROID_HOME" /> 474516d89950fccbb8f44c957242a822f6af39f702Michael Wright </condition> 484516d89950fccbb8f44c957242a822f6af39f702Michael Wright 494516d89950fccbb8f44c957242a822f6af39f702Michael Wright <!-- quick check on sdk.dir --> 504516d89950fccbb8f44c957242a822f6af39f702Michael Wright <fail 514516d89950fccbb8f44c957242a822f6af39f702Michael Wright message="sdk.dir is missing. Make sure to generate local.properties using 'android update project' or to inject it through the ANDROID_HOME environment variable." 524516d89950fccbb8f44c957242a822f6af39f702Michael Wright unless="sdk.dir" 534516d89950fccbb8f44c957242a822f6af39f702Michael Wright /> 544516d89950fccbb8f44c957242a822f6af39f702Michael Wright 554516d89950fccbb8f44c957242a822f6af39f702Michael Wright <!-- 564516d89950fccbb8f44c957242a822f6af39f702Michael Wright Import per project custom build rules if present at the root of the project. 574516d89950fccbb8f44c957242a822f6af39f702Michael Wright This is the place to put custom intermediary targets such as: 584516d89950fccbb8f44c957242a822f6af39f702Michael Wright -pre-build 594516d89950fccbb8f44c957242a822f6af39f702Michael Wright -pre-compile 604516d89950fccbb8f44c957242a822f6af39f702Michael Wright -post-compile (This is typically used for code obfuscation. 614516d89950fccbb8f44c957242a822f6af39f702Michael Wright Compiled code location: ${out.classes.absolute.dir} 624516d89950fccbb8f44c957242a822f6af39f702Michael Wright If this is not done in place, override ${out.dex.input.absolute.dir}) 634516d89950fccbb8f44c957242a822f6af39f702Michael Wright -post-package 644516d89950fccbb8f44c957242a822f6af39f702Michael Wright -post-build 654516d89950fccbb8f44c957242a822f6af39f702Michael Wright -pre-clean 664516d89950fccbb8f44c957242a822f6af39f702Michael Wright --> 674516d89950fccbb8f44c957242a822f6af39f702Michael Wright <import file="custom_rules.xml" optional="true" /> 684516d89950fccbb8f44c957242a822f6af39f702Michael Wright 694516d89950fccbb8f44c957242a822f6af39f702Michael Wright <!-- Import the actual build file. 704516d89950fccbb8f44c957242a822f6af39f702Michael Wright 714516d89950fccbb8f44c957242a822f6af39f702Michael Wright To customize existing targets, there are two options: 724516d89950fccbb8f44c957242a822f6af39f702Michael Wright - Customize only one target: 734516d89950fccbb8f44c957242a822f6af39f702Michael Wright - copy/paste the target into this file, *before* the 744516d89950fccbb8f44c957242a822f6af39f702Michael Wright <import> task. 754516d89950fccbb8f44c957242a822f6af39f702Michael Wright - customize it to your needs. 764516d89950fccbb8f44c957242a822f6af39f702Michael Wright - Customize the whole content of build.xml 774516d89950fccbb8f44c957242a822f6af39f702Michael Wright - copy/paste the content of the rules files (minus the top node) 784516d89950fccbb8f44c957242a822f6af39f702Michael Wright into this file, replacing the <import> task. 794516d89950fccbb8f44c957242a822f6af39f702Michael Wright - customize to your needs. 804516d89950fccbb8f44c957242a822f6af39f702Michael Wright 814516d89950fccbb8f44c957242a822f6af39f702Michael Wright *********************** 824516d89950fccbb8f44c957242a822f6af39f702Michael Wright ****** IMPORTANT ****** 834516d89950fccbb8f44c957242a822f6af39f702Michael Wright *********************** 844516d89950fccbb8f44c957242a822f6af39f702Michael Wright In all cases you must update the value of version-tag below to read 'custom' instead of an integer, 854516d89950fccbb8f44c957242a822f6af39f702Michael Wright in order to avoid having your file be overridden by tools such as "android update project" 864516d89950fccbb8f44c957242a822f6af39f702Michael Wright --> 874516d89950fccbb8f44c957242a822f6af39f702Michael Wright <!-- version-tag: 1 --> 884516d89950fccbb8f44c957242a822f6af39f702Michael Wright <import file="${sdk.dir}/tools/ant/build.xml" /> 894516d89950fccbb8f44c957242a822f6af39f702Michael Wright 904516d89950fccbb8f44c957242a822f6af39f702Michael Wright</project> 91