Models the generation/parsing/merging capabilities. Adds XML-related hooks.
For examples see docs for EclipseProject or IdeaProject and others.
Constructor and description |
---|
XmlFileContentMerger
(org.gradle.internal.xml.XmlTransformer xmlTransformer) |
Methods inherited from class | Name |
---|---|
class FileContentMerger |
beforeMerged, whenMerged |
class Object |
wait, wait, wait, equals, toString, hashCode, getClass, notify, notifyAll |
Adds a closure to be called when the file has been created. The XML is passed to the closure as a parameter in form of a 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.Gradle API 2.2