org.codehaus.gant
Class GantState

java.lang.Object
  extended by org.codehaus.gant.GantState

public class GantState
extends java.lang.Object

A class to hold the shared global state for a run of Gant, also a variety of general-use constants are defined here.

This class was originally needed because parts of Gant are written in Java and parts in Groovy and it was not possible to compile them all at the same time. All references to Groovy classes had to be avoided in the Java classes so that the Java could be compiled and then the Groovy compiled. This class contains things that should be in the Gant class but could not be. All this is no longer true, so the material could go back into the Gant class.

Author:
Russel Winder

Field Summary
static int DEBUG
          Output huge amounts of information about what is going on.
static boolean dryRun
          Whether this is a dry drun, i.e.
static int ERRORS_ONLY
          Output only information about errors.
static int NORMAL
          Output information about which task is executing, and other things.
static int SILENT
          Output no information ever.
static int VERBOSE
          Output lots of information about what is going on.
static int verbosity
          The current state of the verbosity of execution -- default is NORMAL.
static int WARNINGS_AND_ERRORS
          Output only the meagrest of information.
 
Constructor Summary
private GantState()
          We never want an instance of this class, so the constructor is made private.
 
Method Summary
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

SILENT

public static final int SILENT
Output no information ever.

See Also:
Constant Field Values

ERRORS_ONLY

public static final int ERRORS_ONLY
Output only information about errors.

See Also:
Constant Field Values

WARNINGS_AND_ERRORS

public static final int WARNINGS_AND_ERRORS
Output only the meagrest of information.

See Also:
Constant Field Values

NORMAL

public static final int NORMAL
Output information about which task is executing, and other things.

See Also:
Constant Field Values

VERBOSE

public static final int VERBOSE
Output lots of information about what is going on.

See Also:
Constant Field Values

DEBUG

public static final int DEBUG
Output huge amounts of information about what is going on.

See Also:
Constant Field Values

verbosity

public static int verbosity
The current state of the verbosity of execution -- default is NORMAL.


dryRun

public static boolean dryRun
Whether this is a dry drun, i.e. no actual execution occur.

Constructor Detail

GantState

private GantState()
We never want an instance of this class, so the constructor is made private.


Copyright © 2006–9 The Codehaus. All Rights Reserved.