|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectgroovy.lang.GroovyObjectSupport
groovy.util.BuilderSupport
groovy.util.AntBuilder
public class AntBuilder
Allows Ant tasks to be used with GroovyMarkup. Requires the ant.jar in your classpath which will happen automatically if you are using the Groovy distribution but will be up to you to organize if you are embedding Groovy. If you wish to use the optional tasks you will need to add one or more additional jars from the ant distribution to your classpath.
Constructor Summary | |
---|---|
AntBuilder()
|
|
AntBuilder(Project project)
|
|
AntBuilder(Project project,
Target owningTarget)
|
|
AntBuilder(Task parentTask)
|
Method Summary | |
---|---|
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 |
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)
|
protected void |
setText(Object task,
String text)
|
Methods inherited from class groovy.util.BuilderSupport |
---|
getCurrent, getName, invokeMethod, invokeMethod, postNodeCompletion, setClosureDelegate, setCurrent |
Methods inherited from class groovy.lang.GroovyObjectSupport |
---|
getMetaClass, getProperty, setMetaClass, setProperty |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public AntBuilder()
public AntBuilder(Project project)
public AntBuilder(Project project, Target owningTarget)
public AntBuilder(Task parentTask)
Method Detail |
---|
public Project getProject()
public AntXMLContext getAntXmlContext()
protected 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 wrap
protected Object createNode(Object name, Map attributes)
createNode
in class BuilderSupport
protected void setText(Object task, String text)
public Project getAntProject()
|
Copyright © 2003-2009 The Codehaus. All rights reserved. | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |