ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Martin" <mgai...@hotmail.com>
Subject Re: Determining if a build failed or not...
Date Fri, 30 Aug 2002 01:26:49 GMT
Ed-
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?
-Martin

----- Original Message -----
From: "Ciramella, Edward" <ECiramella@emptoris.com>
To: "'Ant Users List'" <ant-user@jakarta.apache.org>
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
build.
> Currently, it goes like this:
> Ant is called with the appropriate target to create an ear file (so
complete
> build is done) from a wrapper script.  This target also sends an email (to
a
> distribution list) if the build is successful.  This is wonderful if it
all
> works, but sometimes it doesn't - or sometimes not enough jUnit tests
pass.
> 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
file)
> and which build it was.
>
> Is there any way to do this completely from ant?  I'm really trying to
stick
> to the core functionality of ant (no try/catch).
>
> Any suggestions would be excellent!
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: ant-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: ant-user-help@jakarta.apache.org


Mime
View raw message