[EMAIL PROTECTED] wrote:
Hi All,I trying to send a mail which will contain the success or failure message of Build, I stuck to one problem which is like this: I collect the build logs in various log files, but there is one build.msg file where I collect the summary of builds which also contains the failed messages, so my build.msg file loks something like this: build.msg --------- Debug Build Started Thu Apr 27 11:31:51 IST 2006 Building mmk/addressbook/taupgradedatabase Failed. Building goldpanel Failed. Building largescreen Failed. So I grep these "Failed" words in separate error.txt file and than do a word count in this error.txt, if I found 0 count than shoots a mail of success and if word counts are greater than 0 than shoots a mail of failure. This is what I do in my shell script:
This is a very bad way of determining what is going on. It will break the moment anything in the code prints "Building something Failed" or the output message changes. And its very hard work to analyse. This may be what you have had to use in make-land, but because Ant routes all its output to logger and listener classes, its easy for a wrapper program to work out what happened, in detail.
But you shouldnt need that wrapper program, because the MailLogger , as documented in the manual, does it.
If you are trying to log/manage multiple builds, get some third party tool like luntbuild or cruise control to manage the whole process...
-steve Personally, i use the MailLogger, which not only can send email, it list --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
