public class AntBuilder extends BuilderSupport
Constructor and Description |
---|
AntBuilder() |
AntBuilder(org.apache.tools.ant.Project project) |
AntBuilder(org.apache.tools.ant.Project project,
org.apache.tools.ant.Target owningTarget) |
AntBuilder(org.apache.tools.ant.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 org.apache.tools.ant.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) |
org.apache.tools.ant.Project |
getAntProject() |
org.apache.tools.ant.helper.AntXMLContext |
getAntXmlContext()
Gets the xml context of Ant used while creating tasks
|
org.apache.tools.ant.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(org.apache.tools.ant.Project project)
public AntBuilder(org.apache.tools.ant.Project project, org.apache.tools.ant.Target owningTarget)
public AntBuilder(org.apache.tools.ant.Task parentTask)
public org.apache.tools.ant.Project getProject()
public org.apache.tools.ant.helper.AntXMLContext getAntXmlContext()
public boolean isSaveStreams()
setSaveStreams(boolean)
public void setSaveStreams(boolean saveStreams)
saveStreams
- set to false to disable this behaviorprotected static org.apache.tools.ant.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 org.apache.tools.ant.Project getAntProject()