aboutsummaryrefslogtreecommitdiffstats
path: root/anttasks/src/com/android/ant/NewSetupTask.java
diff options
context:
space:
mode:
authorXavier Ducrohet <xav@android.com>2012-02-16 17:08:13 -0800
committerXavier Ducrohet <xav@android.com>2012-02-16 17:08:13 -0800
commit8688abd925ddd7288f9e9075f065ecd12a81ae05 (patch)
tree0a0c2127b0589202aaf419a19743e49fafd933af /anttasks/src/com/android/ant/NewSetupTask.java
parent7c65c6065057425170d5c37ecfc2f7f288889a64 (diff)
downloadsdk-8688abd925ddd7288f9e9075f065ecd12a81ae05.zip
sdk-8688abd925ddd7288f9e9075f065ecd12a81ae05.tar.gz
sdk-8688abd925ddd7288f9e9075f065ecd12a81ae05.tar.bz2
Remove warning that minsdkVersion is lower than the compile target.
This is not needed anymore now that Lint can check if this is actually a problem or not. Change-Id: I9f43f46033e07c44b78728e8582364b355ff1ccf
Diffstat (limited to 'anttasks/src/com/android/ant/NewSetupTask.java')
-rw-r--r--anttasks/src/com/android/ant/NewSetupTask.java7
1 files changed, 1 insertions, 6 deletions
diff --git a/anttasks/src/com/android/ant/NewSetupTask.java b/anttasks/src/com/android/ant/NewSetupTask.java
index f3fd9aa..1f29d17 100644
--- a/anttasks/src/com/android/ant/NewSetupTask.java
+++ b/anttasks/src/com/android/ant/NewSetupTask.java
@@ -412,12 +412,7 @@ public class NewSetupTask extends Task {
antProject.setProperty(mTargetApiOut, value);
int projectApiLevel = androidVersion.getApiLevel();
- if (minSdkValue < projectApiLevel) {
- System.out.println(String.format(
- "WARNING: Attribute %1$s in AndroidManifest.xml (%2$d) is lower than the project target API level (%3$d)",
- AndroidManifest.ATTRIBUTE_MIN_SDK_VERSION,
- minSdkValue, projectApiLevel));
- } else if (minSdkValue > androidVersion.getApiLevel()) {
+ if (minSdkValue > androidVersion.getApiLevel()) {
System.out.println(String.format(
"WARNING: Attribute %1$s in AndroidManifest.xml (%2$d) is higher than the project target API level (%3$d)",
AndroidManifest.ATTRIBUTE_MIN_SDK_VERSION,