ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Gilbert Rebhan <>
Subject Re: To set property on any build status
Date Fri, 09 Apr 2010 20:49:53 GMT
-------- 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">
> <try>
>       <task1/>
>      <task2/>

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:

View raw message