ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Martin" <>
Subject Re: Determining if a build failed or not...
Date Fri, 30 Aug 2002 01:26:49 GMT
Could you use the same property setting facility for your Junit tests..
At beginning of target which executes the Junit tests
set Globalproperty to false..
Junit has failonerror="trué'' bounces out with GlobalProperty set at default
of false
at end of target Globalproperty set to "true"

later mail target will have something like this:
<target name="mailTarget" if="Globalproperty">

Makes sense?

----- Original Message -----
From: "Ciramella, Edward" <>
To: "'Ant Users List'" <>
Sent: Wednesday, January 29, 2003 12:10 AM
Subject: Determining if a build failed or not...

> I would like to send an email regardless of the success/failure of a
> Currently, it goes like this:
> Ant is called with the appropriate target to create an ear file (so
> build is done) from a wrapper script.  This target also sends an email (to
> distribution list) if the build is successful.  This is wonderful if it
> works, but sometimes it doesn't - or sometimes not enough jUnit tests
> The wrapper script also has a test for the existence of the ear file (and
> some logs) and sends email to my cell phone (JUST my cell phone - no one
> else wants text messages at 3 AM) if there was a failure (missing ear
> and which build it was.
> Is there any way to do this completely from ant?  I'm really trying to
> to the core functionality of ant (no try/catch).
> Any suggestions would be excellent!

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

View raw message