Package org.gradle.plugins.ide.api
Klasse PropertiesFileContentMerger
java.lang.Object
org.gradle.plugins.ide.api.FileContentMerger
org.gradle.plugins.ide.api.PropertiesFileContentMerger
Models the generation/parsing/merging capabilities.
Adds properties-related hooks.
For examples see docs for EclipseJdt and others.
-
Konstruktorübersicht
KonstruktorenKonstruktorBeschreibungPropertiesFileContentMerger(org.gradle.api.internal.PropertiesTransformer transformer) -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungorg.gradle.api.internal.PropertiesTransformervoidsetTransformer(org.gradle.api.internal.PropertiesTransformer transformer) voidwithProperties(Closure closure) Adds a closure to be called when the file has been created.voidwithProperties(Action<Properties> action) Adds an action to be called when the file has been created.Von Klasse geerbte Methoden org.gradle.plugins.ide.api.FileContentMerger
beforeMerged, beforeMerged, getBeforeMerged, getWhenMerged, setBeforeMerged, setWhenMerged, whenMerged, whenMerged
-
Konstruktordetails
-
PropertiesFileContentMerger
public PropertiesFileContentMerger(org.gradle.api.internal.PropertiesTransformer transformer)
-
-
Methodendetails
-
getTransformer
public org.gradle.api.internal.PropertiesTransformer getTransformer() -
setTransformer
public void setTransformer(org.gradle.api.internal.PropertiesTransformer transformer) -
withProperties
Adds a closure to be called when the file has been created. ThePropertiesare 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
EclipseJdtand others.- Parameter:
closure- The closure to execute when the Properties have been created.
-
withProperties
Adds an action to be called when the file has been created. ThePropertiesare 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
EclipseJdtand others.- Parameter:
action- The action to execute when the Properties have been created.
-