public class FileContentMerger extends Object
For examples see docs for EclipseProject
or IdeaProject
and others.
Constructor and Description |
---|
FileContentMerger() |
Modifier and Type | Method and Description |
---|---|
void |
beforeMerged(Action<?> action)
Adds an action to be called after content is loaded from existing file but before gradle build information is merged.
|
void |
beforeMerged(Closure closure)
Adds a closure to be called after content is loaded from existing file but before gradle build information is merged.
|
org.gradle.listener.ActionBroadcast |
getBeforeMerged() |
org.gradle.listener.ActionBroadcast |
getWhenMerged() |
void |
setBeforeMerged(org.gradle.listener.ActionBroadcast beforeMerged) |
void |
setWhenMerged(org.gradle.listener.ActionBroadcast whenMerged) |
void |
whenMerged(Action<?> action)
Adds an action to be called after content is loaded from existing file and after gradle build information is merged.
|
void |
whenMerged(Closure closure)
Adds a closure to be called after content is loaded from existing file and after gradle build information is merged.
|
public org.gradle.listener.ActionBroadcast getWhenMerged()
public void setWhenMerged(org.gradle.listener.ActionBroadcast whenMerged)
public org.gradle.listener.ActionBroadcast getBeforeMerged()
public void setBeforeMerged(org.gradle.listener.ActionBroadcast 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.