File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Other Open Source Projects and the fly likes MailLogger Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Products » Other Open Source Projects
Reply Bookmark "MailLogger" Watch "MailLogger" New topic
Author

MailLogger

manoj samarasinghe
Greenhorn

Joined: Nov 17, 2004
Posts: 16
hi,

I am using MailLogger for my nightly build for sending a mail with status.
I use something like this,

/vobs/pub/apache-ant-1.6.1/bin/ant -logger org.apache.tools.ant.listener.MailLogger -buildfile /vobs/prof/custom-applications/TBM/nightly_build/call-review.xml -DMailLogger.failure.subject="$failure" -DMailLogger.success.subject="$success" -DMailLogger.properties.file=/vobs/prof/custom-applications/TBM/nightly_build/reviewmail.properties -logfile /vobs/prof/custom-applications/TBM/nightly_build/review-status.log

it works fine.

But i need a way to add one more extra message to the end of the body of the mail i send.

But Content of the mail is taken by the log file ,declared as last line.
(-logfile vobs/prof/custom-applications/TBM/nightly_build/review-status.log)

I cannot add any thing to that file because it is created after each build and overrides preveios information.

Is there any way to add extra information to my mail body (not to mail subject, etc ..)? like MailLogger.message= .

here is my property file i use.

MailLogger.mailhost=
MailLogger.port=25
MailLogger.from=buildusr@xxx.com
MailLogger.failure.to=roshan@xxx.com
MailLogger.success.to=roshan@xxx.com
mail.from.address=buildusr@xxx.com

thanks
manoj.


manojmanoj
 
 
subject: MailLogger
 
Threads others viewed
How to add attachments to Ant MailLogger?
Cruise control giving wrong status in email.
How do I handle Build Failure in Ant?
Ant is not recognized as an internal Commd
can't get the logger to log everything
developer file tools