net.dpml.tools.impl
Class StandardBuildListener

java.lang.Object
  extended by net.dpml.tools.impl.StandardBuildListener
All Implemented Interfaces:
EventListener, BuildListener

public class StandardBuildListener
extends Object
implements BuildListener

Standard build listener.

Version:
1.1.3
Author:
Digital Product Meta Library

Constructor Summary
StandardBuildListener(Context context)
          Creation of a new standard build listener.
 
Method Summary
 void buildFinished(BuildEvent event)
          Signals that the last target has finished.
 void buildStarted(BuildEvent event)
          Signals that a build has started.
 void messageLogged(BuildEvent event)
          Signals a message logging event.
 void targetFinished(BuildEvent event)
          Signals that a target has finished.
 void targetStarted(BuildEvent event)
          Signals that a target is starting.
 void taskFinished(BuildEvent event)
          Signals that a task has finished.
 void taskStarted(BuildEvent event)
          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

StandardBuildListener

public StandardBuildListener(Context context)
Creation of a new standard build listener.

Parameters:
context - the wotrking context
Method Detail

buildStarted

public void buildStarted(BuildEvent event)
Signals that a build has started. This event is fired before any targets have started.

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

buildFinished

public void buildFinished(BuildEvent event)
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 BuildListener
Parameters:
event - An event with any relevant extra information. Must not be null.
See Also:
BuildEvent.getException()

targetStarted

public void targetStarted(BuildEvent event)
Signals that a target is starting.

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

targetFinished

public void targetFinished(BuildEvent event)
Signals that a target has finished. This event will still be fired if an error occurred during the build.

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

taskStarted

public void taskStarted(BuildEvent event)
Signals that a task is starting.

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

taskFinished

public void taskFinished(BuildEvent event)
Signals that a task has finished. This event will still be fired if an error occurred during the build.

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

messageLogged

public void messageLogged(BuildEvent event)
Signals a message logging event.

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