ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Bill Winspur" <bwins...@wynnon.com>
Subject Re: How to check availability of an executable?
Date Mon, 25 Feb 2002 15:19:05 GMT
Neat - but where are the <condition> and <or> tags obtained ?

Bill

----- Original Message ----- 
From: "Stefan Bodewig" <bodewig@apache.org>
> untested:
> 
> <property environment="env" />
> <condition property="foo-command-present">
>   <or>
>     <available file="foo" filepath="${env.PATH}" />
>     <!-- special case for Windows, may be PATH or Path -->
>     <available file="foo.exe" filepath="${env.Path}" />
>     <available file="foo.exe" filepath="${env.PATH}" />
>   </or>
> </condition>
> 
> Stefan



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


Mime
View raw message