diff options
author | Xavier Ducrohet <xav@android.com> | 2010-08-27 13:47:42 -0700 |
---|---|---|
committer | Xavier Ducrohet <xav@android.com> | 2010-08-27 13:47:42 -0700 |
commit | 7a12704dcdebc28cd728f2b2ebc9e8115b9c6985 (patch) | |
tree | 35270bdda8339e8826168f472489929346e6b2a4 /files/ant | |
parent | dc46df201c6ebe1f298a5f957352239407f28308 (diff) | |
download | sdk-7a12704dcdebc28cd728f2b2ebc9e8115b9c6985.zip sdk-7a12704dcdebc28cd728f2b2ebc9e8115b9c6985.tar.gz sdk-7a12704dcdebc28cd728f2b2ebc9e8115b9c6985.tar.bz2 |
Add Ant property when in release mode.
Also fix some NPE in usage of ISdkLog.warning
Change-Id: Id2803f7692b82d0d2f5dea49f17f916509a7b205
Diffstat (limited to 'files/ant')
-rw-r--r-- | files/ant/ant_rules_r3.xml | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/files/ant/ant_rules_r3.xml b/files/ant/ant_rules_r3.xml index 7848862..2ac5742 100644 --- a/files/ant/ant_rules_r3.xml +++ b/files/ant/ant_rules_r3.xml @@ -436,11 +436,15 @@ <echo>and run zipalign from the Android SDK tools.</echo> </target> + <target name="-set-release-mode"> + <property name="build.mode.release" value="true"/> + </target> + <!-- This runs -package-release and -release-nosign first and then runs only if release-sign is true (set in -release-check, called by -release-no-sign)--> <target name="release" - depends="-package-release, -release-prompt-for-password, -release-nosign" + depends="-set-release-mode, -package-release, -release-prompt-for-password, -release-nosign" if="has.keystore" description="Builds the application. The generated apk file must be signed before it is published."> |