org.codehaus.groovy.grails.cli.logging
Class GrailsConsoleBuildListener

java.lang.Object
  extended by org.codehaus.groovy.grails.cli.logging.GrailsConsoleBuildListener
All Implemented Interfaces:
java.util.EventListener, org.apache.tools.ant.BuildListener

public class GrailsConsoleBuildListener
extends java.lang.Object
implements org.apache.tools.ant.BuildListener

Mainly silences a lot of redundant Ant output.


Constructor Summary
GrailsConsoleBuildListener()
           
GrailsConsoleBuildListener(GrailsConsole ui)
           
 
Method Summary
 void buildFinished(org.apache.tools.ant.BuildEvent finish)
          Signals that the last target has finished.
 void buildStarted(org.apache.tools.ant.BuildEvent start)
          Signals that a build has started.
 void messageLogged(org.apache.tools.ant.BuildEvent event)
          When a message is sent to this logger, Ant calls this method.
 void targetFinished(org.apache.tools.ant.BuildEvent finish)
          Signals that a target has finished.
 void targetStarted(org.apache.tools.ant.BuildEvent start)
          Signals that a target is starting.
 void taskFinished(org.apache.tools.ant.BuildEvent finish)
          Signals that a task has finished.
 void taskStarted(org.apache.tools.ant.BuildEvent start)
          Signals that a task is starting.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GrailsConsoleBuildListener

public GrailsConsoleBuildListener()

GrailsConsoleBuildListener

public GrailsConsoleBuildListener(GrailsConsole ui)
Method Detail

buildStarted

public final void buildStarted(org.apache.tools.ant.BuildEvent start)

Signals that a build has started. This event is fired before any targets have started.

Specified by:
buildStarted in interface org.apache.tools.ant.BuildListener
Parameters:
start - An event with any relevant extra information. Must not be null.

buildFinished

public final void buildFinished(org.apache.tools.ant.BuildEvent finish)

Signals that the last target has finished. This event will still be fired if an error occurred during the build.

Specified by:
buildFinished in interface org.apache.tools.ant.BuildListener
Parameters:
finish - An event with any relevant extra information. Must not be null.
See Also:
BuildEvent.getException()

targetStarted

public final void targetStarted(org.apache.tools.ant.BuildEvent start)

Signals that a target is starting.

Specified by:
targetStarted in interface org.apache.tools.ant.BuildListener
Parameters:
start - An event with any relevant extra information. Must not be null.
See Also:
BuildEvent.getTarget()

targetFinished

public final void targetFinished(org.apache.tools.ant.BuildEvent finish)

Signals that a target has finished. This event will still be fired if an error occurred during the build.

Specified by:
targetFinished in interface org.apache.tools.ant.BuildListener
Parameters:
finish - An event with any relevant extra information. Must not be null.
See Also:
BuildEvent.getException()

taskStarted

public final void taskStarted(org.apache.tools.ant.BuildEvent start)

Signals that a task is starting.

Specified by:
taskStarted in interface org.apache.tools.ant.BuildListener
Parameters:
start - An event with any relevant extra information. Must not be null.
See Also:
BuildEvent.getTask()

taskFinished

public final void taskFinished(org.apache.tools.ant.BuildEvent finish)

Signals that a task has finished. This event will still be fired if an error occurred during the build.

Specified by:
taskFinished in interface org.apache.tools.ant.BuildListener
Parameters:
finish - An event with any relevant extra information. Must not be null.
See Also:
BuildEvent.getException()

messageLogged

public void messageLogged(org.apache.tools.ant.BuildEvent event)

When a message is sent to this logger, Ant calls this method.

Specified by:
messageLogged in interface org.apache.tools.ant.BuildListener
Parameters:
event - An event with any relevant extra information. Must not be null.
See Also:
BuildEvent.getMessage(), BuildEvent.getPriority()