IdeaModuleIml
public class XmlFileContentMerger extends FileContentMerger
For examples see docs for EclipseProject
or IdeaProject
and others.
Constructor | Description |
---|---|
XmlFileContentMerger(org.gradle.internal.xml.XmlTransformer xmlTransformer) |
Modifier and Type | Method | Description |
---|---|---|
org.gradle.internal.xml.XmlTransformer |
getXmlTransformer() |
|
void |
setXmlTransformer(org.gradle.internal.xml.XmlTransformer xmlTransformer) |
|
void |
withXml(Closure closure) |
Adds a closure to be called when the file has been created.
|
void |
withXml(Action<? super XmlProvider> action) |
Adds an action to be called when the file has been created.
|
beforeMerged, beforeMerged, getBeforeMerged, getWhenMerged, setBeforeMerged, setWhenMerged, whenMerged, whenMerged
public XmlFileContentMerger(org.gradle.internal.xml.XmlTransformer xmlTransformer)
public org.gradle.internal.xml.XmlTransformer getXmlTransformer()
public void setXmlTransformer(org.gradle.internal.xml.XmlTransformer xmlTransformer)
public void withXml(Closure closure)
XmlProvider
.
The closure can modify the XML before it is written to the output file.
For examples see docs for EclipseProject
or IdeaProject
and others.
closure
- The closure to execute when the XML has been created.public void withXml(Action<? super XmlProvider> action)
See withXml(Closure)
action
- The action to execute when the XML has been created.