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" <[EMAIL PROTECTED]>
To: "'Ant Users List'" <[EMAIL PROTECTED]>
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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to