ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Dominique Devienne <>
Subject Re: multiple compilations
Date Fri, 27 May 2005 02:27:34 GMT
> <target name="compile_a">
>   <trycatch>
>     <try>
>       <javac...>
>     </try>
>     <catch>
>       <property name="onefailed" value="true"/>
>     </catch>
>   <trycacth>
> </target>

That's kind of ugly, although necessary right now.

<javac> does have failonerror, but misses failureproperty, so you have
to resort to Ant-Contrib's <trycatch>.

failonrerror/failureproperty is yet another feature implemented at the
task level instead of in the framework, so some tasks have it, some
don't, and some like <javac> have half of it only. I think I should do
something about it ;-) Eventually... --DD

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

View raw message