Grokbase Groups Ant user April 2010

-------- Original Message --------
Subject: Re: To set property on any build status
From: Pooja Ganapathi <>
Date: 09.04.2010 09:39

Hey Gilbert,

Thanks, that was a useful info on try\catch. I implemented it in my script,
and it was good.
However, when I tried to catch any exception, it didn't do that well.

basically, I have a main target, which does couple of tasks -this I have put
under try and have set exception message too in <trycatch>. So, my <catch>
gets the exception message as "Build failed".

What am looking is a brief note on which sub task caused exception.

<trycatch property = "exception" reference ="exception_ref">

i didn't mention try/catch in my response to your post :-)

but back to your try/catch problem,maybe it's as simple as a missing
failonerror="true" attribute in your nested tasks, means try =

trycatch property = "exception" reference ="exception_ref">
<task1 .. failonerror="true"/>
<task2.. failonerror="true"/>

because without failonerror="true" it won't get catched ;-)

Regards, Gilbert

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

Search Discussions

Discussion Posts


Related Discussions

Discussion Navigation
viewthread | post
posts ‹ prev | 5 of 5 | next ›
Discussion Overview
groupuser @
postedApr 8, '10 at 12:15p
activeApr 9, '10 at 8:50p



site design / logo © 2018 Grokbase