Groovy Documentation

org.linkedin.groovy.util.ant
[Groovy] Class AntBuilder6068

java.lang.Object
  groovy.lang.GroovyObjectSupport
      groovy.util.BuilderSupport
          org.linkedin.groovy.util.ant.AntBuilder6068

class AntBuilder6068
extends groovy.util.BuilderSupport

YP Note: this class is copied from groovy code directly in order to workaround issue groovy-6068 (with groovy 2.0.7)


Property Summary
boolean insideTask

 
Constructor Summary
AntBuilder6068()

AntBuilder6068(org.apache.tools.ant.Project project)

AntBuilder6068(org.apache.tools.ant.Project project, org.apache.tools.ant.Target owningTarget)

AntBuilder6068(org.apache.tools.ant.Task parentTask)

 
Method Summary
protected static org.xml.sax.Attributes buildAttributes(java.util.Map attributes)

Builds an org.xml.sax.Attributes from a java.util.Map

protected java.lang.Object createNode(java.lang.Object tagName)

protected java.lang.Object createNode(java.lang.Object name, java.lang.Object value)

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.util.Map attributes)

protected static org.apache.tools.ant.Project createProject()

@return Factory method to create new Project instances

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

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)

protected void setText(java.lang.Object task, java.lang.String text)

 
Methods inherited from class groovy.util.BuilderSupport
groovy.util.BuilderSupport#invokeMethod(java.lang.String, java.lang.Object), groovy.util.BuilderSupport#invokeMethod(java.lang.String), groovy.util.BuilderSupport#setProperty(java.lang.String, java.lang.Object), groovy.util.BuilderSupport#getProperty(java.lang.String), groovy.util.BuilderSupport#getMetaClass(), groovy.util.BuilderSupport#setMetaClass(groovy.lang.MetaClass), groovy.util.BuilderSupport#wait(), groovy.util.BuilderSupport#wait(long), groovy.util.BuilderSupport#wait(long, int), groovy.util.BuilderSupport#equals(java.lang.Object), groovy.util.BuilderSupport#toString(), groovy.util.BuilderSupport#hashCode(), groovy.util.BuilderSupport#getClass(), groovy.util.BuilderSupport#notify(), groovy.util.BuilderSupport#notifyAll()
 
Methods inherited from class groovy.lang.GroovyObjectSupport
groovy.lang.GroovyObjectSupport#setProperty(java.lang.String, java.lang.Object), groovy.lang.GroovyObjectSupport#getProperty(java.lang.String), groovy.lang.GroovyObjectSupport#getMetaClass(), groovy.lang.GroovyObjectSupport#setMetaClass(groovy.lang.MetaClass), groovy.lang.GroovyObjectSupport#invokeMethod(java.lang.String, java.lang.Object), groovy.lang.GroovyObjectSupport#wait(), groovy.lang.GroovyObjectSupport#wait(long), groovy.lang.GroovyObjectSupport#wait(long, int), groovy.lang.GroovyObjectSupport#equals(java.lang.Object), groovy.lang.GroovyObjectSupport#toString(), groovy.lang.GroovyObjectSupport#hashCode(), groovy.lang.GroovyObjectSupport#getClass(), groovy.lang.GroovyObjectSupport#notify(), groovy.lang.GroovyObjectSupport#notifyAll()
 

Property Detail

insideTask

boolean insideTask


 
Constructor Detail

AntBuilder6068

AntBuilder6068()


AntBuilder6068

AntBuilder6068(org.apache.tools.ant.Project project)


AntBuilder6068

AntBuilder6068(org.apache.tools.ant.Project project, org.apache.tools.ant.Target owningTarget)


AntBuilder6068

AntBuilder6068(org.apache.tools.ant.Task parentTask)


 
Method Detail

buildAttributes

protected static org.xml.sax.Attributes buildAttributes(java.util.Map attributes)
Builds an org.xml.sax.Attributes from a java.util.Map
Parameters:
attributes - the attributes to wrap
Returns:
the wrapped attributes


createNode

protected java.lang.Object createNode(java.lang.Object tagName)


createNode

protected java.lang.Object createNode(java.lang.Object name, java.lang.Object value)


createNode

protected java.lang.Object createNode(java.lang.Object name, java.util.Map attributes, java.lang.Object value)


createNode

protected java.lang.Object createNode(java.lang.Object name, java.util.Map attributes)


createProject

protected static org.apache.tools.ant.Project createProject()
Returns:
Factory method to create new Project instances


doInvokeMethod

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)
See Also:
groovy.util.BuilderSupport#doInvokeMethod(java.lang.String, java.lang.Object, java.lang.Object)


getAntProject

org.apache.tools.ant.Project getAntProject()


getAntXmlContext

org.apache.tools.ant.helper.AntXMLContext getAntXmlContext()
Gets the xml context of Ant used while creating tasks
Returns:
the Ant xml context


getProject

org.apache.tools.ant.Project getProject()
# Gets the Ant project in which the tasks are executed
Returns:
the project


nodeCompleted

protected void nodeCompleted(java.lang.Object parent, java.lang.Object node)
Determines, when the ANT Task that is represented by the "node" should perform. Node must be an ANT Task or no "perform" is called. If node is an ANT Task, it performs right after complete construction. If node is nested in a TaskContainer, calling "perform" is delegated to that TaskContainer.
Parameters:
parent - note: null when node is root
node - the node that now has all its children applied


setParent

protected void setParent(java.lang.Object parent, java.lang.Object child)


setText

protected void setText(java.lang.Object task, java.lang.String text)


 

Groovy Documentation