class AssemblyHandler extends java.lang.Object
Handles assembly definitions.
Type | Name and description |
---|---|
java.util.LinkedList<groovy.lang.Closure<?>> |
extraOperations The extra operations which are only available for this handler. |
java.util.List<java.lang.Object> |
sourceArchives Source archives in ZIP format. |
java.util.List<java.lang.Object> |
sourceFiles Source files and directories. |
java.lang.Object |
target The fragment target path. |
Constructor and description |
---|
AssemblyHandler
(java.lang.Object target) Creates a new instance. |
Type Params | Return Type | Name and description |
---|---|---|
|
AssemblyHandler |
configure(groovy.lang.Closure<?> configurator) Configures this assembly definition. |
|
AssemblyHandler |
extract(java.lang.Object... archives) Adds source archive files (in ZIP) into this assembly definition. |
|
AssemblyHandler |
from(java.lang.Object... files) Adds source files or directories into this assembly definition. |
|
org.gradle.api.tasks.TaskDependency |
getBuildDependencies() |
|
AssemblyHandler |
process(groovy.lang.Closure<?> operation) Adds extra operations for this assembly definition. |
|
AssemblyHandler |
put(java.lang.Object... files) Adds source files or directories into this assembly definition. |
|
AssemblyHandler |
replace(java.util.Map<?, ?> replacement) Adds text replacement operation for this assembly definition. |
|
AssemblyHandler |
replace(java.util.Map<?, ?> replacement, java.lang.String... patterns) Adds text replacement operation for this assembly definition. |
Methods inherited from class | Name |
---|---|
class java.lang.Object |
java.lang.Object#wait(long, int), java.lang.Object#wait(long), java.lang.Object#wait(), java.lang.Object#equals(java.lang.Object), java.lang.Object#toString(), java.lang.Object#hashCode(), java.lang.Object#getClass(), java.lang.Object#notify(), java.lang.Object#notifyAll() |
The extra operations which are only available for this handler.
Source archives in ZIP format.
This will be resolved using project.files(...)
.
Source files and directories.
This will be resolved using project.files(...)
.
The fragment target path. This will be resolved as a string.
Creates a new instance.
target
- the target path (relative from assembly root)Configures this assembly definition.
configurator
- the configurator closureAdds source archive files (in ZIP) into this assembly definition.
archives
- archive filesAdds source files or directories into this assembly definition.
files
- source files or directoriesAdds extra operations for this assembly definition. The closure will receive org.gradle.api.file.CopySpec object for building the target assembly.
operation
- the extra operationAdds source files or directories into this assembly definition.
files
- source files or directories Adds text replacement operation for this assembly definition.
This is equivalent to replace(replacement, '*')
This method is equivalent to process { it.filter(ReplaceTokens, tokens: replacement) }
replacement
- the replacement map Adds text replacement operation for this assembly definition.
This uses ReplaceTokens
filter, and patterns
are qualified with '**/'
.
replacement
- the replacement mappatterns
- target file path patternsCopyright 2011-2019 Asakusa Framework Team.