|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.ggtools.grand.ant.ReflectTaskVisitorBase
net.ggtools.grand.ant.LinkFinderVisitor
public class LinkFinderVisitor
A task visitor looking for links created by tasks like ant,
antcall, etc.
| Constructor Summary | |
|---|---|
LinkFinderVisitor(AntProject project)
|
|
| Method Summary | |
|---|---|
void |
defaultVisit(org.apache.tools.ant.RuntimeConfigurable wrapper)
Default action for unknown task. |
java.lang.String |
getAliasForTask(java.lang.String taskName)
A default implementation returning the task name. |
void |
reflectVisit_ant(org.apache.tools.ant.RuntimeConfigurable wrapper)
Process the ant task. |
void |
reflectVisit_antcall(org.apache.tools.ant.RuntimeConfigurable wrapper)
Process antcall and similar tasks. |
void |
reflectVisit_subant(org.apache.tools.ant.RuntimeConfigurable wrapper)
Process subant task. |
void |
setGraph(AntGraph graph)
|
void |
setStartNode(AntTargetNode startNode)
|
| Methods inherited from class net.ggtools.grand.ant.ReflectTaskVisitorBase |
|---|
visit |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public LinkFinderVisitor(AntProject project)
| Method Detail |
|---|
public void defaultVisit(org.apache.tools.ant.RuntimeConfigurable wrapper)
throws GrandException
defaultVisit in class ReflectTaskVisitorBasewrapper - wrapper to check.
GrandExceptionReflectTaskVisitorBase.defaultVisit(org.apache.tools.ant.RuntimeConfigurable)public java.lang.String getAliasForTask(java.lang.String taskName)
ReflectTaskVisitorBase
getAliasForTask in class ReflectTaskVisitorBasenull.
public void reflectVisit_ant(org.apache.tools.ant.RuntimeConfigurable wrapper)
throws DuplicateElementException
ant task. This method will find or create the
destination node of the task, create an AntTaskLinkand find the
nested property nodes to set the link properties. Only
name,value property nodes will be
processed: the file property nodes will be ignored.
The called node name will be either the plain target
attribute value if it is located in the current build file or
[target].
wrapper - the wrapper to process.
DuplicateElementException - if a duplicate node is created, should not happen.
public void reflectVisit_antcall(org.apache.tools.ant.RuntimeConfigurable wrapper)
throws DuplicateElementException
antcall and similar tasks. The method will create
a link between the current start node and the node referenced by the
target attribute creating it with the
Node.ATTR_MISSING_NODEif no such node exists. It will then
create an AntTaskLinklink and look for nested param
elements to set parameters to newly created link.
wrapper - wrapper to process.
DuplicateElementException - if a duplicate node is created (should not happen).
public void reflectVisit_subant(org.apache.tools.ant.RuntimeConfigurable wrapper)
throws DuplicateElementException
subant task. Depending of the existence of the
genericantfile attribute, this method will either create a
special link holding a list of directories or a set of ant taskish
links. During those creations, the end nodes will be created with
the Node.ATTR_MISSING_NODEattribute if needed.
wrapper - wrapper to process.
DuplicateElementException - if a duplicate node is created (should not happen).public void setGraph(AntGraph graph)
graph - The graph to set.public void setStartNode(AntTargetNode startNode)
startNode - The startNode to set.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||