diff options
author | Xavier Ducrohet <xav@android.com> | 2010-04-27 15:57:52 -0700 |
---|---|---|
committer | Xavier Ducrohet <xav@android.com> | 2010-04-27 17:17:29 -0700 |
commit | 0fd2efc6912586032d5dbe6d5c63e242cf65a31a (patch) | |
tree | b02daa78dca7c3d4aca65115eddd3eb7f4c38646 /anttasks | |
parent | b1abf9ed13963de9733782c8f28b03b2008832b9 (diff) | |
download | sdk-0fd2efc6912586032d5dbe6d5c63e242cf65a31a.zip sdk-0fd2efc6912586032d5dbe6d5c63e242cf65a31a.tar.gz sdk-0fd2efc6912586032d5dbe6d5c63e242cf65a31a.tar.bz2 |
Add rev 3 of the ant rules.
For now they are the same as the r2.
Also modified SetupTask to deal better with older tools.
Change-Id: I22ff809ace3ff81fb6852a707165165a9b4ec88a
Diffstat (limited to 'anttasks')
-rw-r--r-- | anttasks/src/com/android/ant/SetupTask.java | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/anttasks/src/com/android/ant/SetupTask.java b/anttasks/src/com/android/ant/SetupTask.java index e1ee825..a840783 100644 --- a/anttasks/src/com/android/ant/SetupTask.java +++ b/anttasks/src/com/android/ant/SetupTask.java @@ -65,7 +65,7 @@ import javax.xml.xpath.XPathExpressionException; */ public final class SetupTask extends ImportTask { /** current max version of the Ant rules that is supported */ - private final static int ANT_RULES_MAX_VERSION = 2; + private final static int ANT_RULES_MAX_VERSION = 3; // legacy main rules file. private final static String RULES_LEGACY_MAIN = "android_rules.xml"; @@ -183,9 +183,13 @@ public final class SetupTask extends ImportTask { int antBuildVersion = androidTarget.getProperty(SdkConstants.PROP_SDK_ANT_BUILD_REVISION, 1); if (antBuildVersion > ANT_RULES_MAX_VERSION) { - throw new BuildException(String.format( - "The project target (%1$s) requires a more recent version of the tools. Please update.", - androidTarget.getName())); + antBuildVersion = ANT_RULES_MAX_VERSION; + System.out.println("\n\n\n" + + "***********************************************************\n" + + "WARNING: This platform requires Ant build rules not supported by your SDK Tools.\n" + + "WARNING: Attempting to use older build rules instead, but result may not be correct.\n" + + "WARNING: Please update to the newest revisions of the SDK Tools.\n" + + "***********************************************************\n\n\n"); } // check if the project is a library |