class PatchingPlugin extends java.lang.Object
A Gradle plug-in for working with patch files.
The plugin creates a processPatches task when applied.
If a processResources task exists then the process-patches
task is made a dependency of process-resources, so patches are processed
before general resource processing takes place.
The processResources is created and included in the dependency
chain but is not configured with content or patches. If executed it will
do nothing. To configure the task, a configuration closure similar to this
should be used:
processResources {
content = "${project.projectDir}/src/main/content"
patches = "${project.projectDir}/src/main/patches"
destination = "${project.buildDir}/resources/main"
}
| Type Params | Return Type | Name and description |
|---|---|---|
|
void |
apply(org.gradle.api.Project project)Applies the plug-in to the parameter project. |
|
protected void |
configureDefaultTaskDependencies(org.gradle.api.Project project, org.gradle.api.Task processPatches) |
|
protected org.gradle.api.Task |
createProcessPatchesTask(org.gradle.api.Project project) |
| 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() |
Applies the plug-in to the parameter project.
project - The project to apply the plug-in to