AntBuilderto provide extra capabilities. In particular, a dry-run capability, and the implementation of various levels of verbosity.
If execution is from a command line Gant or call from a Groovy script then the class loader for all objects is a single instance of
org.codehaus.groovy.tools.RootLoader, which already has Ant and Groovy jars in the classpath. If however execution is from an Ant execution via the Gant Ant Task, then the classloader for the instance is an instance of
org.apache.tools.ant.AntClassLoader with Ant and Groovy jars on the classpath BUT the class loader for the
org.apache.tools.ant.Project instance is a simple
java.net.URLClassLoader and does not have the necessary jars on the classpath. When using Ant, the Ant jar has been loaded before the Groovy aspects of the classpath have been set up. So we must allow for a specialized constructor taking a preprepared
org.apache.tools.ant.Project to handle this situation.
Public Member Functions
|GantBuilder (final Project project)|
|Object||invokeMethod (final String name, final Object arguments)|
Private Member Functions