diff options
author | Xavier Ducrohet <xav@android.com> | 2010-05-07 16:17:54 -0700 |
---|---|---|
committer | Xavier Ducrohet <xav@android.com> | 2010-05-07 16:17:54 -0700 |
commit | 2cc3f070f6c52ecaa93aeb3d97383919ff5f1ceb (patch) | |
tree | 292e93680c6f6c88b99417bee86b91e217e3a896 /anttasks | |
parent | 72b7d2351777146156c367964def50548e899687 (diff) | |
download | sdk-2cc3f070f6c52ecaa93aeb3d97383919ff5f1ceb.zip sdk-2cc3f070f6c52ecaa93aeb3d97383919ff5f1ceb.tar.gz sdk-2cc3f070f6c52ecaa93aeb3d97383919ff5f1ceb.tar.bz2 |
Override local keystore/alias info when using export project to export.
Change-Id: If4f188591b8c5154be894fdd1872a182d1b6eadc
Diffstat (limited to 'anttasks')
-rw-r--r-- | anttasks/src/com/android/ant/MultiApkExportTask.java | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/anttasks/src/com/android/ant/MultiApkExportTask.java b/anttasks/src/com/android/ant/MultiApkExportTask.java index a3dfe5c..2c161d5 100644 --- a/anttasks/src/com/android/ant/MultiApkExportTask.java +++ b/anttasks/src/com/android/ant/MultiApkExportTask.java @@ -300,6 +300,12 @@ public class MultiApkExportTask extends Task { addProp(subAnt, "out.release.file", new File(exportProjectOutput, name + "-" + projectData.buildInfo + "-release.apk").getAbsolutePath()); } else { + // put some empty prop. This is to override possible ones defined in the + // project. The reason is that if there's more than one project, we don't + // want some to signed and some not to be (and we don't want each project + // to prompt for password.) + addProp(subAnt, "key.store", ""); + addProp(subAnt, "key.alias", ""); // final file is the unsigned version. It gets stored locally. addProp(subAnt, "out.unsigned.file", new File(exportProjectOutput, name + "-" + projectData.buildInfo + "-unsigned.apk").getAbsolutePath()); |