|
Groovy Documentation | |||||||
| FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectorg.gradle.api.internal.ConventionTask
org.gradle.api.tasks.GeneratorTask
org.gradle.api.tasks.XmlGeneratorTask
public abstract class XmlGeneratorTask extends GeneratorTask
A convenience superclass for those tasks which generate XML configuration files from a domain object of type T.
- The domain object type.| Field Summary |
|---|
| Fields inherited from class GeneratorTask | |
|---|---|
| generator |
| Constructor Summary | |
XmlGeneratorTask()
|
|
| Method Summary | |
|---|---|
protected void
|
configure(T object)
|
protected T
|
create()
|
protected XmlTransformer
|
getXmlTransformer()
|
void
|
withXml(groovy.lang.Closure closure)
Adds a closure to be called when the XML document has been created. |
void
|
withXml(Action action)
Adds an action to be called when the XML document has been created. |
| Methods inherited from class GeneratorTask | |
|---|---|
| beforeConfigured, beforeConfigured, getInputFile, getOutputFile, setInputFile, setOutputFile, whenConfigured, whenConfigured |
| Constructor Detail |
|---|
public XmlGeneratorTask()
| Method Detail |
|---|
protected void configure(T object)
protected T create()
protected XmlTransformer getXmlTransformer()
public void withXml(groovy.lang.Closure closure)
closure - The closure to execute when the XML has been created.
public void withXml(Action action)
action - The action to execute when the IPR XML has been created.
Groovy Documentation