org.apache.tools.ant.listener

Class MailLogger

public class MailLogger extends DefaultLogger

Buffers log messages from DefaultLogger, and sends an e-mail with the results. The following Project properties are used to send the mail. These properties are set using standard Ant property setting mechanisms (<property>, command-line -D, etc). Ant properties can be overridden by specifying the filename of a properties file in the MailLogger.properties.file property . Any properties defined in that file will override Ant properties.
Method Summary
voidbuildFinished(BuildEvent event)
Sends an e-mail with the log results.
protected voidlog(String message)
Receives and buffers log messages.

Method Detail

buildFinished

public void buildFinished(BuildEvent event)
Sends an e-mail with the log results.

Parameters: event the build finished event

log

protected void log(String message)
Receives and buffers log messages.

Parameters: message the message being logger