diff options
author | Xavier Ducrohet <xav@android.com> | 2010-10-14 11:36:29 -0700 |
---|---|---|
committer | Xavier Ducrohet <xav@android.com> | 2010-10-15 12:54:40 -0700 |
commit | 2c4736e46119e7eeb64066ace92c3341ec2d2f62 (patch) | |
tree | 223c2064800c731f4e70f6d4a0c4e5294608835d /anttasks | |
parent | 89f2e38fa3fd0cf5599d6c1bd20c025e652ec87d (diff) | |
download | sdk-2c4736e46119e7eeb64066ace92c3341ec2d2f62.zip sdk-2c4736e46119e7eeb64066ace92c3341ec2d2f62.tar.gz sdk-2c4736e46119e7eeb64066ace92c3341ec2d2f62.tar.bz2 |
Project property cleanup.
Remove obsolete sdk-location on project update, don't
use it as backup location anymore (main_rules.xml won't work with
it anyway).
Remove the old application.package properties since older platforms
will use the new rules anyway.
Change-Id: I5a5ec3d1289cf793dd0f98fb778bd84086976c52
Diffstat (limited to 'anttasks')
-rw-r--r-- | anttasks/src/com/android/ant/TaskHelper.java | 13 |
1 files changed, 1 insertions, 12 deletions
diff --git a/anttasks/src/com/android/ant/TaskHelper.java b/anttasks/src/com/android/ant/TaskHelper.java index 8c50e49..a360eaf 100644 --- a/anttasks/src/com/android/ant/TaskHelper.java +++ b/anttasks/src/com/android/ant/TaskHelper.java @@ -37,18 +37,7 @@ final class TaskHelper { // check if it's valid and exists if (sdkOsPath == null || sdkOsPath.length() == 0) { - // LEGACY support: project created with 1.6 or before may be using a different - // property to declare the location of the SDK. At this point, we cannot - // yet check which target is running so we check both always. - sdkOsPath = antProject.getProperty(ProjectProperties.PROPERTY_SDK_LEGACY); - if (sdkOsPath == null || sdkOsPath.length() == 0) { - throw new BuildException("SDK Location is not set."); - } - } - - // Make sure the OS sdk path ends with a directory separator - if (sdkOsPath.length() > 0 && !sdkOsPath.endsWith(File.separator)) { - sdkOsPath += File.separator; + throw new BuildException("SDK Location is not set."); } File sdk = new File(sdkOsPath); |