Ant properties names legacy support

Support for old property names in SetupTask.java, in order to maintain
compatibility with Donut and earlier.
This commit is contained in:
Piotr Gurgul
2009-08-25 16:11:05 -07:00
parent dfed3cda60
commit 3259661b26
2 changed files with 27 additions and 5 deletions

View File

@@ -37,7 +37,11 @@ public final class ProjectProperties {
public final static String PROPERTY_TARGET = "target";
public final static String PROPERTY_APK_CONFIGS = "apk.configurations";
public final static String PROPERTY_SDK = "sdk.dir";
// LEGACY - compatibility with 1.6 and before
public final static String PROPERTY_SDK_LEGACY = "sdk-location";
public final static String PROPERTY_APP_PACKAGE = "application.package";
// LEGACY - compatibility with 1.6 and before
public final static String PROPERTY_APP_PACKAGE_LEGACY = "application-package";
public static enum PropertyType {
BUILD("build.properties", BUILD_HEADER),
@@ -88,8 +92,8 @@ public final class ProjectProperties {
"# This file is only used by the Ant script.\n" +
"\n" +
"# You can use this to override default values such as\n" +
"# 'source-folder' for the location of your java source folder and\n" +
"# 'out-folder' for the location of your output folder.\n" +
"# 'source.dir' for the location of your java source folder and\n" +
"# 'out.dir' for the location of your output folder.\n" +
"\n" +
"# You can also use it define how the release builds are signed by declaring\n" +
"# the following properties:\n" +