Unfortunately the <fail> task only has an "unless" property in Ant 1.5.
Makes Cactus a bit hard to build. It's possible to emulate that
behaviour with <antcall> statements to targets with "if" conditions.

Btw, I'm halfway through implementing a check-for-valid-properties in
Excalibur. It also recurses through the projects.. kinda neat, hope it
works =)


--Jeff

On Sun, Mar 31, 2002 at 08:54:53PM +1000, Peter Donald wrote:
> Hi,
> 
> This just appeared on the maven list. I though you may be interested Paul ;)
> 
> Specifically look down to the check.properties target. That looks to be what 
> you want ?
....
-->
>     <target name="check.properties" depends="display.properties">
> 
>         <condition property="properties.ok">
>             <and>
>                 <available file="${j2ee.jar}"/>
>                 <available file="${log4j.jar}"/>
>                 <available file="${commons.httpclient.jar}"/>
>                 <available file="${httpunit.jar}"/>
>            </and>
>         </condition>
> 
>         <fail message="Missing property or property pointing to an
> invalid file (check your build.properties file)"
>             unless="properties.ok"/>
....
> 
> Thanks
> -Vincent

--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to