public class PropertiesFileContentMerger extends FileContentMerger
For examples see docs for EclipseJdt and others.
| Constructor | Description |
|---|---|
PropertiesFileContentMerger(org.gradle.api.internal.PropertiesTransformer transformer) |
| Modifier and Type | Method | Description |
|---|---|---|
org.gradle.api.internal.PropertiesTransformer |
getTransformer() |
|
void |
setTransformer(org.gradle.api.internal.PropertiesTransformer transformer) |
|
void |
withProperties(Closure closure) |
Adds a closure to be called when the file has been created.
|
void |
withProperties(Action<java.util.Properties> action) |
Adds an action to be called when the file has been created.
|
beforeMerged, beforeMerged, getBeforeMerged, getWhenMerged, setBeforeMerged, setWhenMerged, whenMerged, whenMergedpublic PropertiesFileContentMerger(org.gradle.api.internal.PropertiesTransformer transformer)
public org.gradle.api.internal.PropertiesTransformer getTransformer()
public void setTransformer(org.gradle.api.internal.PropertiesTransformer transformer)
public void withProperties(Closure closure)
Properties are passed to the closure as a parameter.
The closure can modify the Properties before they are written to the output file.
For examples see docs for EclipseJdt and others.
closure - The closure to execute when the Properties have been created.public void withProperties(Action<java.util.Properties> action)
Properties are passed to the action as a parameter.
The action can modify the Properties before they are written to the output file.
For examples see docs for EclipseJdt and others.
action - The action to execute when the Properties have been created.