Models the generation/parsing/merging capabilities. Adds properties-related hooks.
For examples see docs for EclipseJdt and others.
Constructor and description |
---|
PropertiesFileContentMerger
(org.gradle.api.internal.PropertiesTransformer transformer) |
Type | Name and description |
---|---|
org.gradle.api.internal.PropertiesTransformer |
getTransformer() |
void |
setTransformer(org.gradle.api.internal.PropertiesTransformer transformer) |
void |
withProperties(groovy.lang.Closure closure) Adds a closure to be called when the file has been created. |
void |
withProperties(Action<Properties> action) Adds an action to be called when the file has been created. |
Methods inherited from class | Name |
---|---|
class FileContentMerger |
beforeMerged, getBeforeMerged, getWhenMerged, setBeforeMerged, setWhenMerged, whenMerged |
class groovy.lang.GroovyObjectSupport |
groovy.lang.GroovyObjectSupport#setProperty(java.lang.String, java.lang.Object), groovy.lang.GroovyObjectSupport#getProperty(java.lang.String), groovy.lang.GroovyObjectSupport#invokeMethod(java.lang.String, java.lang.Object), groovy.lang.GroovyObjectSupport#getMetaClass(), groovy.lang.GroovyObjectSupport#setMetaClass(groovy.lang.MetaClass), groovy.lang.GroovyObjectSupport#wait(long, int), groovy.lang.GroovyObjectSupport#wait(long), groovy.lang.GroovyObjectSupport#wait(), groovy.lang.GroovyObjectSupport#equals(java.lang.Object), groovy.lang.GroovyObjectSupport#toString(), groovy.lang.GroovyObjectSupport#hashCode(), groovy.lang.GroovyObjectSupport#getClass(), groovy.lang.GroovyObjectSupport#notify(), groovy.lang.GroovyObjectSupport#notifyAll() |
Adds a closure to be called when the file has been created. The 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.Adds an action to be called when the file has been created. The 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.