Models the generation/parsing/merging capabilities. Adds XML-related hooks.
For examples see docs for EclipseProject or IdeaProject and others.
Type | Name and description |
---|---|
XmlTransformer |
xmlTransformer |
Constructor and description |
---|
XmlFileContentMerger
(XmlTransformer xmlTransformer) |
Methods inherited from class | Name |
---|---|
class FileContentMerger |
beforeMerged, whenMerged |
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.0