. */ /** * Interface for build listeners. * * Classes that implement a listener must extend this class and (faux)implement * all methods that are decleard as dummies below. * * @author Andreas Aderhold * @author Hans Lellelid * @version $Revision: 1.6 $ * @see BuildEvent * @see Project::addBuildListener() * @package phing */ interface BuildListener { /** * Fired before any targets are started. * * @param BuildEvent The BuildEvent */ function buildStarted(BuildEvent $event); /** * Fired after the last target has finished. * * @param BuildEvent The BuildEvent * @see BuildEvent::getException() */ function buildFinished(BuildEvent $event); /** * Fired when a target is started. * * @param BuildEvent The BuildEvent * @see BuildEvent::getTarget() */ function targetStarted(BuildEvent $event); /** * Fired when a target has finished. * * @param BuildEvent The BuildEvent * @see BuildEvent#getException() */ function targetFinished(BuildEvent $event); /** * Fired when a task is started. * * @param BuildEvent The BuildEvent * @see BuildEvent::getTask() */ function taskStarted(BuildEvent $event); /** * Fired when a task has finished. * * @param BuildEvent The BuildEvent * @see BuildEvent::getException() */ function taskFinished(BuildEvent $event); /** * Fired whenever a message is logged. * * @param BuildEvent The BuildEvent * @see BuildEvent::getMessage() */ function messageLogged(BuildEvent $event); }