ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Erik Hatcher" <>
Subject Re: confirmation of build success
Date Sun, 02 Jun 2002 13:32:26 GMT
First things first.... could you give us more details about how you get a
"BUILD SUCCESSFUL" with exceptions in the log?

As for monitoring whether a build is successful or not and then doing
something based on that, a custom listener is the way to go, or use one of
the built-in ones such as the Log4jListener or perhaps the MailLogger (in
Ant 1.5).


----- Original Message -----
From: "Abhishek Srivastava" <>
To: <>
Sent: Sunday, June 02, 2002 8:11 AM
Subject: confirmation of build success

> Hello All,
> I am setting up a cron job to run my ant script every night.
> This cron job needs to check whether the build is successful or not.
> how I have done this today, is that I generate the log file of the output
> of ant and then look for a string called "BUILD SUCCESSFULL"
> if this string is not found then I send an email to myself with the log
> attached.
> problems is that sometimes, even when there are some exceptions
> in the log, the line "BUILD SUCCESSFULL" is still there in the log.
> because of this the cron job does not send mail to me even when the build
> had failed.
> Now, is there a better test that looking for the string "build successful"
> to find out whether my build has succeeded or failed ?
> please help.
> regards,
> Abhishek.
> --
> To unsubscribe, e-mail:   <>
> For additional commands, e-mail: <>

To unsubscribe, e-mail:   <>
For additional commands, e-mail: <>

View raw message