diff options
author | Xavier Ducrohet <xav@android.com> | 2012-04-23 17:16:04 -0700 |
---|---|---|
committer | Xavier Ducrohet <xav@android.com> | 2012-04-23 17:16:04 -0700 |
commit | e6ec57d99bfda23f18ec7ec27022c5321b7368e5 (patch) | |
tree | a33defb5920450bb4421c61b60de5c35cc953b1a | |
parent | 3b7b3c0cc33462c7eebae6fbd7f5e994625b9011 (diff) | |
download | sdk-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
-rw-r--r-- | anttasks/src/com/android/ant/ManifestMergerTask.java | 14 | ||||
-rw-r--r-- | files/ant/build.xml | 4 |
2 files changed, 9 insertions, 9 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."); diff --git a/files/ant/build.xml b/files/ant/build.xml index db0fd43..0c5b9ea 100644 --- a/files/ant/build.xml +++ b/files/ant/build.xml @@ -57,7 +57,7 @@ <property name="renderscript.release.opt.level" value="O3" /> <!-- manifest merger default value --> - <property name="manifestmerger.disable" value="true" /> + <property name="manifestmerger.enabled" value="false" /> <!-- instrumentation options --> <property name="emma.filter" value="" /> @@ -599,7 +599,7 @@ <mergemanifest appManifest="${manifest.abs.file}" outManifest="${out.manifest.abs.file}" - disable="${manifestmerger.disable}"> + enabled="${manifestmerger.enabled}"> <library refid="project.library.manifest.file.path" /> </mergemanifest> |