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 org.xml.sax.Attributes |
buildAttributes(java.util.Map attributes)
Builds an
Attributes from a Map |
protected java.lang.Object |
createNode(java.lang.Object tagName) |
protected java.lang.Object |
createNode(java.lang.Object name,
java.util.Map attributes) |
protected java.lang.Object |
createNode(java.lang.Object name,
java.util.Map attributes,
java.lang.Object value) |
protected java.lang.Object |
createNode(java.lang.Object name,
java.lang.Object value) |
protected static org.apache.tools.ant.Project |
createProject() |
protected java.lang.Object |
doInvokeMethod(java.lang.String methodName,
java.lang.Object name,
java.lang.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(java.lang.Object parent,
java.lang.Object node)
Determines, when the ANT Task that is represented by the "node" should perform.
|
protected void |
setParent(java.lang.Object parent,
java.lang.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(java.lang.Object task,
java.lang.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(java.lang.Object parent, java.lang.Object child)
setParent
in class BuilderSupport
protected java.lang.Object doInvokeMethod(java.lang.String methodName, java.lang.Object name, java.lang.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(java.lang.Object parent, java.lang.Object node)
nodeCompleted
in class BuilderSupport
parent
- note: null when node is rootnode
- the node that now has all its children appliedprotected java.lang.Object createNode(java.lang.Object tagName)
createNode
in class BuilderSupport
protected java.lang.Object createNode(java.lang.Object name, java.lang.Object value)
createNode
in class BuilderSupport
protected java.lang.Object createNode(java.lang.Object name, java.util.Map attributes, java.lang.Object value)
createNode
in class BuilderSupport
protected static org.xml.sax.Attributes buildAttributes(java.util.Map attributes)
Attributes
from a Map
attributes
- the attributes to wrapprotected java.lang.Object createNode(java.lang.Object name, java.util.Map attributes)
createNode
in class BuilderSupport
protected void setText(java.lang.Object task, java.lang.String text)
public org.apache.tools.ant.Project getAntProject()