# BuildListener.php

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
Package
  phing
See
  \BuildEvent
See
  \Project::addBuildListener()
Version
  $Revision: 526 $

## \BuildListener
jump to top

Package: phing

Interface for build listeners.

Classes that implement a listener must extend this class and (faux)implement all methods that are decleard as dummies below.

Children
  \BuildLogger
See
  \BuildEvent
See
  \Project::addBuildListener()
Author
  Andreas Aderhold
Author
  Hans Lellelid
Version
  $Revision: 526 $

### Methods

`buildFinished( \BuildEvent $event ) : void`

Fired after the last target has finished.

Parameters

Name | Type | Description
--- | --- | ---
$event | \BuildEvent | The BuildEvent

Details

See
  \BuildEvent::getException()

`buildStarted( \BuildEvent $event ) : void`

Fired before any targets are started.

Parameters

Name | Type | Description
--- | --- | ---
$event | \BuildEvent | The BuildEvent

`messageLogged( $event ) : void`

Fired whenever a message is logged.

@param BuildEvent The BuildEvent

Parameters

Name | Type | Description
--- | --- | ---
$event |  |

Details

See
  \BuildEvent::getMessage()

`targetFinished( \BuildEvent $event ) : void`

Fired when a target has finished.

Parameters

Name | Type | Description
--- | --- | ---
$event | \BuildEvent | The BuildEvent

Details

See
  \BuildEvent#getException()

`targetStarted( \BuildEvent $event ) : void`

Fired when a target is started.

Parameters

Name | Type | Description
--- | --- | ---
$event | \BuildEvent | The BuildEvent

Details

See
  \BuildEvent::getTarget()

`taskFinished( $event ) : void`

Fired when a task has finished.

@param BuildEvent The BuildEvent

Parameters

Name | Type | Description
--- | --- | ---
$event |  |

Details

See
  \BuildEvent::getException()

`taskStarted( \BuildEvent $event ) : void`

Fired when a task is started.

Parameters

Name | Type | Description
--- | --- | ---
$event | \BuildEvent | The BuildEvent

Details

See
  \BuildEvent::getTask()

Documentation was generated by DocBlox 0.15.1.