ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Parag Doke <parag.d...@gmail.com>
Subject Re: Mail task on Target failure
Date Fri, 05 Aug 2011 12:51:13 GMT
There is the try/catch task in antcontrib
(http://ant-contrib.sourceforge.net/tasks/tasks/index.html) that
allows you to catch exceptions in tasks. I haven't tried this anytime
... but maybe you could try calling a target within such a block.

Thanks,
Parag Doke
Save paper, save trees. Do not print emails/documents unless
absolutely necessary.



On Fri, Aug 5, 2011 at 2:32 PM, vino_hymi <vinohymi@gmail.com> wrote:
> Hi,
>
> I have ant project where there is set of targets. After successful
> completion of all targets I call mail target at the end to send a mail with
> attached logs with message build successful.
>
> Now, my challenge is if one of the target fails then build exits so it will
> not proceed to mail target which is the last one to perform on completion of
> all. How can I use mail target to send mail on any target failure?
>
> Any hints?
>
> -Vinodh Kumar
>
> --
> View this message in context: http://ant.1045680.n5.nabble.com/Mail-task-on-Target-failure-tp4669046p4669046.html
> Sent from the Ant - Users mailing list archive at Nabble.com.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
> For additional commands, e-mail: user-help@ant.apache.org
>
>

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


Mime
View raw message