Class MailLogger

  extended by
      extended by
All Implemented Interfaces:
java.util.EventListener, BuildListener, BuildLogger

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 property . Any properties defined in that file will override Ant properties.

Field Summary
Fields inherited from class
emacsMode, err, LEFT_COLUMN_SIZE, lSep, msgOutputLevel, out
Constructor Summary
Method Summary
 void buildFinished(BuildEvent event)
          Sends an e-mail with the log results.
protected  void log(java.lang.String message)
          Receives and buffers log messages.
Methods inherited from class
buildStarted, extractProjectName, formatTime, getBuildFailedMessage, getBuildSuccessfulMessage, getTimestamp, messageLogged, printMessage, setEmacsMode, setErrorPrintStream, setMessageOutputLevel, setOutputPrintStream, targetFinished, targetStarted, taskFinished, taskStarted
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

Constructor Detail


public MailLogger()
Method Detail


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

Specified by:
buildFinished in interface BuildListener
buildFinished in class DefaultLogger
event - the build finished event
See Also:


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

log in class DefaultLogger
message - the message being logger