Logo Search packages:      
Sourcecode: gant version File versions

org::codehaus::gant::GantBuilder Class Reference

Inherits groovy::util::AntBuilder.

List of all members.


Detailed Description

This class is a sub-class of AntBuilder to 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.

Author:
Russel Winder <russel.winder@concertant.com>

Definition at line 49 of file GantBuilder.java.


Public Member Functions

 GantBuilder (final Project project)
 GantBuilder ()
Object invokeMethod (final String name, final Object arguments)
void setMessageOutputLevel ()

Private Member Functions

void addGroovycTask ()

The documentation for this class was generated from the following file:

Generated by  Doxygen 1.6.0   Back to index