org.apache.tools.ant.listener
Class MailLogger
- BuildListener, BuildLogger, EventListener
Buffers log messages from DefaultLogger, and sends an e-mail with the
results. The following Project properties are used to send the mail.
- MailLogger.mailhost [default: localhost] - Mail server to use
- MailLogger.port [default: 25] - Default port for SMTP
- MailLogger.from [required] - Mail "from" address
- MailLogger.failure.notify [default: true] - Send build failure
e-mails?
- MailLogger.success.notify [default: true] - Send build success
e-mails?
- MailLogger.failure.to [required if failure mail to be sent] - Address
to send failure messages to
- MailLogger.success.to [required if success mail to be sent] - Address
to send success messages to
- MailLogger.failure.subject [default: "Build Failure"] - Subject of
failed build
- MailLogger.success.subject [default: "Build Success"] - Subject of
successful build
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.
void | buildFinished(BuildEvent event) - Sends an e-mail with the log results.
|
protected void | log(String message) - Receives and buffers log messages.
|
buildFinished , buildStarted , formatTime , log , messageLogged , printMessage , setEmacsMode , setErrorPrintStream , setMessageOutputLevel , setOutputPrintStream , targetFinished , targetStarted , taskFinished , taskStarted |
log
protected void log(String message)
Receives and buffers log messages.
- log in interface DefaultLogger
message
- the message being logger
Copyright B) 2000-2007 Apache Software Foundation. All Rights Reserved.