PropertiesFileContentMerger
, XmlFileContentMerger
public class FileContentMerger
extends java.lang.Object
For examples see docs for EclipseProject
or IdeaProject
and others.
Constructor | Description |
---|---|
FileContentMerger() |
Modifier and Type | Method | Description |
---|---|---|
void |
beforeMerged(Closure closure) |
Adds a closure to be called after content is loaded from existing file but before gradle build information is merged.
|
void |
beforeMerged(Action<?> action) |
Adds an action to be called after content is loaded from existing file but before gradle build information is merged.
|
org.gradle.internal.MutableActionSet |
getBeforeMerged() |
|
org.gradle.internal.MutableActionSet |
getWhenMerged() |
|
void |
setBeforeMerged(org.gradle.internal.MutableActionSet beforeMerged) |
|
void |
setWhenMerged(org.gradle.internal.MutableActionSet whenMerged) |
|
void |
whenMerged(Closure closure) |
Adds a closure to be called after content is loaded from existing file and after gradle build information is merged.
|
void |
whenMerged(Action<?> action) |
Adds an action to be called after content is loaded from existing file and after gradle build information is merged.
|
public org.gradle.internal.MutableActionSet getWhenMerged()
public void setWhenMerged(org.gradle.internal.MutableActionSet whenMerged)
public org.gradle.internal.MutableActionSet getBeforeMerged()
public void setBeforeMerged(org.gradle.internal.MutableActionSet beforeMerged)
public void beforeMerged(Action<?> action)
This is advanced api that gives access to internal implementation. It might be useful if you want to alter the way gradle build information is merged into existing file content.
For examples see docs for EclipseProject
or IdeaProject
and others.
action
- The action to execute.public void whenMerged(Action<?> action)
This is advanced api that gives access to internal implementation of idea plugin. Use it only to tackle some tricky edge cases.
For examples see docs for EclipseProject
or IdeaProject
and others.
action
- The action to execute.public void beforeMerged(Closure closure)
This is advanced api that gives access to internal implementation. It might be useful if you want to alter the way gradle build information is merged into existing file content.
For examples see docs for EclipseProject
or IdeaProject
and others.
closure
- The closure to execute.public void whenMerged(Closure closure)
This is advanced api that gives access to internal implementation of idea plugin. Use it only to tackle some tricky edge cases.
For examples see docs for EclipseProject
or IdeaProject
and others.
closure
- The closure to execute.