Package org.grails.build.logging
Class GrailsConsoleBuildListener
- java.lang.Object
-
- org.grails.build.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.BuildListenerMainly silences a lot of redundant Ant output.
-
-
Constructor Summary
Constructors Constructor Description GrailsConsoleBuildListener()GrailsConsoleBuildListener(GrailsConsole ui)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidbuildFinished(org.apache.tools.ant.BuildEvent finish)Signals that the last target has finished.voidbuildStarted(org.apache.tools.ant.BuildEvent start)Signals that a build has started.voidmessageLogged(org.apache.tools.ant.BuildEvent event)When a message is sent to this logger, Ant calls this method.voidtargetFinished(org.apache.tools.ant.BuildEvent finish)Signals that a target has finished.voidtargetStarted(org.apache.tools.ant.BuildEvent start)Signals that a target is starting.voidtaskFinished(org.apache.tools.ant.BuildEvent finish)Signals that a task has finished.voidtaskStarted(org.apache.tools.ant.BuildEvent start)Signals that a task is starting.
-
-
-
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:
buildStartedin interfaceorg.apache.tools.ant.BuildListener- Parameters:
start- An event with any relevant extra information. Must not benull.
-
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:
buildFinishedin interfaceorg.apache.tools.ant.BuildListener- Parameters:
finish- An event with any relevant extra information. Must not benull.- See Also:
BuildEvent.getException()
-
targetStarted
public final void targetStarted(org.apache.tools.ant.BuildEvent start)
Signals that a target is starting.
- Specified by:
targetStartedin interfaceorg.apache.tools.ant.BuildListener- Parameters:
start- An event with any relevant extra information. Must not benull.- 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:
targetFinishedin interfaceorg.apache.tools.ant.BuildListener- Parameters:
finish- An event with any relevant extra information. Must not benull.- See Also:
BuildEvent.getException()
-
taskStarted
public final void taskStarted(org.apache.tools.ant.BuildEvent start)
Signals that a task is starting.
- Specified by:
taskStartedin interfaceorg.apache.tools.ant.BuildListener- Parameters:
start- An event with any relevant extra information. Must not benull.- 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:
taskFinishedin interfaceorg.apache.tools.ant.BuildListener- Parameters:
finish- An event with any relevant extra information. Must not benull.- 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:
messageLoggedin interfaceorg.apache.tools.ant.BuildListener- Parameters:
event- An event with any relevant extra information. Must not benull.- See Also:
BuildEvent.getMessage(),BuildEvent.getPriority()
-
-