Package org.gradle.api.java.archives
Schnittstelle ManifestMergeSpec
public interface ManifestMergeSpec
Specifies how the entries of multiple manifests should be merged together.
-
Methodenübersicht
Modifizierer und TypMethodeBeschreibungAdds an action to be applied to each key-value tuple in a merge operation.eachEntry(Action<? super ManifestMergeDetails> mergeAction) Adds an action to be applied to each key-value tuple in a merge operation.Adds a merge path to a manifest that should be merged into the base manifest.The character set used to decode the merged manifest content.voidsetContentCharset(String contentCharset) The character set used to decode the merged manifest content.
-
Methodendetails
-
getContentCharset
String getContentCharset()The character set used to decode the merged manifest content. Defaults to UTF-8.- Gibt zurück:
- the character set used to decode the merged manifest content
- Seit:
- 2.14
-
setContentCharset
The character set used to decode the merged manifest content.- Parameter:
contentCharset- the character set used to decode the merged manifest content- Seit:
- 2.14
- Siehe auch:
-
from
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.- Parameter:
mergePaths- The paths of manifests to be merged- Gibt zurück:
- this
-
eachEntry
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.- Parameter:
mergeAction- A merge action to be executed.- Gibt zurück:
- this
-
eachEntry
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.- Parameter:
mergeAction- The action to execute.- Gibt zurück:
- this
-