|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.ggtools.grand.ant.AntProject
public class AntProject
A graph producer from ant build files or Project
objects. The nodes will be the project's target and the links will be the
dependencies between targets. Beside hard dependencies, this producer
is also able to create weaks links from dependencies introduced by the use of
the antcall or foreach tasks.
foreach task.| Constructor Summary | |
|---|---|
AntProject(java.io.File source)
Creates a new project from an ant build file. |
|
AntProject(java.io.File source,
java.util.Properties properties)
Creates a new project from an ant build file. |
|
AntProject(org.apache.tools.ant.Project project)
Creates a new project from an existing ant project. |
|
| Method Summary | |
|---|---|
org.apache.tools.ant.Project |
getAntProject()
Returns the underlying ant project. |
Graph |
getGraph()
Convert an Ant project to a Grand Graph. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public AntProject(java.io.File source)
throws GrandException
ProjectHelper
which is at least a File.
source - The source for XML configuration.
GrandException - if the project cannot be loaded.ProjectHelper.parse(org.apache.tools.ant.Project, java.lang.Object)
public AntProject(java.io.File source,
java.util.Properties properties)
throws GrandException
ProjectHelper
which is at least a File.
source - The source for XML configuration.properties - a set of properties to be preset when opening the graph or
null if no properties should be preset.
GrandException - if the project cannot be loaded.ProjectHelper.parse(org.apache.tools.ant.Project, java.lang.Object)public AntProject(org.apache.tools.ant.Project project)
project - project to create the graph from.| Method Detail |
|---|
public org.apache.tools.ant.Project getAntProject()
public Graph getGraph()
throws GrandException
Node.ATTR_MAIN_NODEattribute set. If the project element has a
valid default target, the corresponding node will be the graph start
target.depends attributes on targets will be translated into
links. antcall s or the contributed foreach
task will be translated in links with the
Link.ATTR_WEAK_LINKset.
getGraph in interface GraphProducerGrandException - if the project cannot be converted to a graph.GraphProducer.getGraph()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||