public class AntBuilder extends BuilderSupport
Constructor and Description |
---|
AntBuilder() |
AntBuilder(Project project) |
AntBuilder(Project project,
Target owningTarget) |
AntBuilder(Task parentTask) |
Modifier and Type | Method and Description |
---|---|
protected static Attributes |
buildAttributes(Map attributes)
Builds an
Attributes from a Map |
protected Object |
createNode(Object tagName) |
protected Object |
createNode(Object name,
Map attributes) |
protected Object |
createNode(Object name,
Map attributes,
Object value) |
protected Object |
createNode(Object name,
Object value) |
protected static Project |
createProject() |
protected Object |
doInvokeMethod(String methodName,
Object name,
Object args)
We don't want to return the node as created in
createNode(Object, Map, Object)
but the one made ready by nodeCompleted(Object, Object) |
Project |
getAntProject() |
AntXMLContext |
getAntXmlContext()
Gets the xml context of Ant used while creating tasks
|
Project |
getProject()
#
Gets the Ant project in which the tasks are executed
|
boolean |
isSaveStreams()
Whether stdin, stdout, stderr streams are saved.
|
protected void |
nodeCompleted(Object parent,
Object node)
Determines, when the ANT Task that is represented by the "node" should perform.
|
protected void |
setParent(Object parent,
Object child) |
void |
setSaveStreams(boolean saveStreams)
Indicates that we save stdin, stdout, stderr and replace them
while AntBuilder is executing tasks with
streams that funnel the normal streams into Ant's logs.
|
protected void |
setText(Object task,
String text) |
getCurrent, getName, invokeMethod, invokeMethod, postNodeCompletion, setClosureDelegate, setCurrent
getMetaClass, getProperty, setMetaClass, setProperty
public AntBuilder()
public AntBuilder(Project project)
public AntBuilder(Task parentTask)
public Project getProject()
public AntXMLContext getAntXmlContext()
public boolean isSaveStreams()
setSaveStreams(boolean)
public void setSaveStreams(boolean saveStreams)
saveStreams
- set to false to disable this behaviorprotected static Project createProject()
protected void setParent(Object parent, Object child)
setParent
in class BuilderSupport
protected Object doInvokeMethod(String methodName, Object name, Object args)
createNode(Object, Map, Object)
but the one made ready by nodeCompleted(Object, Object)
doInvokeMethod
in class BuilderSupport
BuilderSupport.doInvokeMethod(java.lang.String, java.lang.Object, java.lang.Object)
protected void nodeCompleted(Object parent, Object node)
nodeCompleted
in class BuilderSupport
parent
- note: null when node is rootnode
- the node that now has all its children appliedprotected Object createNode(Object tagName)
createNode
in class BuilderSupport
protected Object createNode(Object name, Object value)
createNode
in class BuilderSupport
protected Object createNode(Object name, Map attributes, Object value)
createNode
in class BuilderSupport
protected static Attributes buildAttributes(Map attributes)
Attributes
from a Map
attributes
- the attributes to wrapprotected Object createNode(Object name, Map attributes)
createNode
in class BuilderSupport
public Project getAntProject()