Package org.gradle.api.java.archives
Interface ManifestMergeSpec
-
public interface ManifestMergeSpecSpecifies how the entries of multiple manifests should be merged together.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ManifestMergeSpeceachEntry(Closure<?> mergeAction)Adds an action to be applied to each key-value tuple in a merge operation.ManifestMergeSpeceachEntry(Action<? super ManifestMergeDetails> mergeAction)Adds an action to be applied to each key-value tuple in a merge operation.ManifestMergeSpecfrom(java.lang.Object... mergePaths)Adds a merge path to a manifest that should be merged into the base manifest.java.lang.StringgetContentCharset()The character set used to decode the merged manifest content.voidsetContentCharset(java.lang.String contentCharset)The character set used to decode the merged manifest content.
-
-
-
Method Detail
-
getContentCharset
java.lang.String getContentCharset()
The character set used to decode the merged manifest content. Defaults to UTF-8.- Returns:
- the character set used to decode the merged manifest content
- Since:
- 2.14
-
setContentCharset
void setContentCharset(java.lang.String contentCharset)
The character set used to decode the merged manifest content.- Parameters:
contentCharset- the character set used to decode the merged manifest content- Since:
- 2.14
- See Also:
getContentCharset()
-
from
ManifestMergeSpec from(java.lang.Object... mergePaths)
Adds a merge path to a manifest that should be merged into the base manifest. A merge path can be either anotherManifestor a path that is evaluated as perProject.file(Object). If multiple merge paths are specified, the manifest are merged in the order in which they are added.- Parameters:
mergePaths- The paths of manifests to be merged- Returns:
- this
-
eachEntry
ManifestMergeSpec eachEntry(Action<? super ManifestMergeDetails> mergeAction)
Adds an action to be applied to each key-value tuple in a merge operation. If multiple merge paths are specified, the action is called for each key-value tuple of each merge operation. The given action is called with aManifestMergeDetailsas its parameter. Actions are executed in the order added.- Parameters:
mergeAction- A merge action to be executed.- Returns:
- this
-
eachEntry
ManifestMergeSpec eachEntry(@DelegatesTo(ManifestMergeDetails.class) Closure<?> mergeAction)
Adds an action to be applied to each key-value tuple in a merge operation. If multiple merge paths are specified, the action is called for each key-value tuple of each merge operation. The given closure is called with aManifestMergeDetailsas its parameter. Actions are executed in the order added.- Parameters:
mergeAction- The action to execute.- Returns:
- this
-
-