aboutsummaryrefslogtreecommitdiffstats
path: root/anttasks/src
diff options
context:
space:
mode:
authorXavier Ducrohet <xav@android.com>2012-04-23 17:16:04 -0700
committerXavier Ducrohet <xav@android.com>2012-04-23 17:16:04 -0700
commite6ec57d99bfda23f18ec7ec27022c5321b7368e5 (patch)
treea33defb5920450bb4421c61b60de5c35cc953b1a /anttasks/src
parent3b7b3c0cc33462c7eebae6fbd7f5e994625b9011 (diff)
downloadsdk-e6ec57d99bfda23f18ec7ec27022c5321b7368e5.zip
sdk-e6ec57d99bfda23f18ec7ec27022c5321b7368e5.tar.gz
sdk-e6ec57d99bfda23f18ec7ec27022c5321b7368e5.tar.bz2
Revert the disable flag of the manifest merger to be enable instead.
Change-Id: I4f89b469e06f741b95b92d7a4826f979c64dab1b
Diffstat (limited to 'anttasks/src')
-rw-r--r--anttasks/src/com/android/ant/ManifestMergerTask.java14
1 files changed, 7 insertions, 7 deletions
diff --git a/anttasks/src/com/android/ant/ManifestMergerTask.java b/anttasks/src/com/android/ant/ManifestMergerTask.java
index ead564c..a20df4e 100644
--- a/anttasks/src/com/android/ant/ManifestMergerTask.java
+++ b/anttasks/src/com/android/ant/ManifestMergerTask.java
@@ -34,7 +34,7 @@ public class ManifestMergerTask extends SingleDependencyTask {
private String mOutManifest;
private ArrayList<Path> mLibraryPaths;
- private boolean mDisable = true;
+ private boolean mEnabled = false;
public void setAppManifest(Path appManifest) {
mAppManifest = TaskHelper.checkSinglePath("appManifest", appManifest);
@@ -44,8 +44,8 @@ public class ManifestMergerTask extends SingleDependencyTask {
mOutManifest = TaskHelper.checkSinglePath("outManifest", outManifest);
}
- public void setDisable(boolean disable) {
- mDisable = disable;
+ public void setEnable(boolean enabled) {
+ mEnabled = enabled;
}
/**
@@ -88,8 +88,8 @@ public class ManifestMergerTask extends SingleDependencyTask {
File appManifestFile = new File(mAppManifest);
allInputs.add(appManifestFile);
- // if not disabled, the libraries
- if (mDisable == false) {
+ // if enabled: add the libraries
+ if (mEnabled) {
allInputs.addAll(libraries);
}
@@ -108,8 +108,8 @@ public class ManifestMergerTask extends SingleDependencyTask {
System.out.println("Merging AndroidManifest files into one.");
- if (mDisable || libraries.size() == 0) {
- if (mDisable) {
+ if (mEnabled == false || libraries.size() == 0) {
+ if (mEnabled == false) {
System.out.println("Manifest merger disabled. Using project manifest only.");
} else {
System.out.println("No libraries. Using project manifest only.");