|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.android.manifmerger.ManifestMerger2.Invoker
public static final class ManifestMerger2.Invoker
This class will hold all invocation parameters for the manifest merging tool. There are broadly three types of input to the merging tool :
Nested Class Summary | |
---|---|
static class |
ManifestMerger2.Invoker.Feature
Optional behavior of the merging tool can be turned on by setting these Feature. |
Method Summary | |
---|---|
ManifestMerger2.Invoker |
addFlavorAndBuildTypeManifest(java.io.File file)
Add a flavor or build type manifest file last in the list. |
ManifestMerger2.Invoker |
addFlavorAndBuildTypeManifests(java.io.File... files)
Add several flavor or build type manifest files last in the list. |
ManifestMerger2.Invoker |
addLibraryManifest(java.io.File file)
Add one library file manifest, will be added last in the list of library files which will make the parameter the lowest priority library manifest file. |
ManifestMerger2.Invoker |
addLibraryManifests(java.io.File... files)
Add several library file manifests at then end of the list which will make them the lowest priority manifest files. |
ManifestMerger2.Invoker |
addLibraryManifests(java.util.List<com.android.utils.Pair<java.lang.String,java.io.File>> namesAndFiles)
|
MergingReport |
merge()
Perform the merging and return the result. |
ManifestMerger2.Invoker |
setOverride(ManifestMerger2.SystemProperty override,
java.lang.String value)
Sets a value for a ManifestMerger2.SystemProperty |
ManifestMerger2.Invoker |
setPlaceHolderValue(java.lang.String placeHolderName,
java.lang.String value)
Adds a new placeholder name and value for substitution. |
ManifestMerger2.Invoker |
withFeatures(ManifestMerger2.Invoker.Feature... features)
Sets some optional features for the merge tool. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public ManifestMerger2.Invoker addLibraryManifest(java.io.File file)
file
- the library manifest file to add.
public ManifestMerger2.Invoker addLibraryManifests(java.util.List<com.android.utils.Pair<java.lang.String,java.io.File>> namesAndFiles)
public ManifestMerger2.Invoker addLibraryManifests(java.io.File... files)
files
- library manifest files to add last.
public ManifestMerger2.Invoker addFlavorAndBuildTypeManifest(java.io.File file)
file
- build type or flavor manifest file
public ManifestMerger2.Invoker addFlavorAndBuildTypeManifests(java.io.File... files)
files
- build type of flavor manifest files to add.
public ManifestMerger2.Invoker withFeatures(ManifestMerger2.Invoker.Feature... features)
features
- one to many features to set.
public ManifestMerger2.Invoker setPlaceHolderValue(java.lang.String placeHolderName, java.lang.String value)
public ManifestMerger2.Invoker setOverride(ManifestMerger2.SystemProperty override, java.lang.String value)
ManifestMerger2.SystemProperty
override
- the property to setvalue
- the value for the property
public MergingReport merge() throws ManifestMerger2.MergeFailureException
MergingReport
that will give
access to all the logging and merging records.
This method can be invoked several time and will re-do the file merges.
ManifestMerger2.MergeFailureException
- if the merging cannot be completed successfully.
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |