abstract fun withXml(closure: Closure<Any>): DeploymentDescriptor
Adds a closure to be called when the XML document has been created. The XML is passed to the closure as a parameter in form of a groovy.util.Node. The closure can modify the XML before it is written to the output file. This allows additional JavaEE version 6 elements like "data-source" or "resource-ref" to be included.
closure
- The closure to execute when the XML has been created
Return
this
abstract fun withXml(action: Action<in XmlProvider>): DeploymentDescriptor
Adds an action to be called when the XML document has been created. The XML is passed to the action as a parameter in form of a groovy.util.Node. The action can modify the XML before it is written to the output file. This allows additional JavaEE version 6 elements like "data-source" or "resource-ref" to be included.
action
- The action to execute when the XML has been created
Return
this