Class FileContentMerger
- Direct Known Subclasses:
PropertiesFileContentMerger
,XmlFileContentMerger
For examples see docs for EclipseProject
or IdeaProject
and others.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
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
org.gradle.internal.MutableActionSet
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.
-
Constructor Details
-
FileContentMerger
public FileContentMerger()
-
-
Method Details
-
getWhenMerged
public org.gradle.internal.MutableActionSet getWhenMerged() -
setWhenMerged
public void setWhenMerged(org.gradle.internal.MutableActionSet whenMerged) -
getBeforeMerged
public org.gradle.internal.MutableActionSet getBeforeMerged() -
setBeforeMerged
public void setBeforeMerged(org.gradle.internal.MutableActionSet beforeMerged) -
beforeMerged
Adds an action to be called after content is loaded from existing file but before gradle build information is merged.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
orIdeaProject
and others.- Parameters:
action
- The action to execute.
-
whenMerged
Adds an action to be called after content is loaded from existing file and after gradle build information is merged.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
orIdeaProject
and others.- Parameters:
action
- The action to execute.
-
beforeMerged
Adds a closure to be called after content is loaded from existing file but before gradle build information is merged.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
orIdeaProject
and others.- Parameters:
closure
- The closure to execute.
-
whenMerged
Adds a closure to be called after content is loaded from existing file and after gradle build information is merged.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
orIdeaProject
and others.- Parameters:
closure
- The closure to execute.
-