ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Stefan Bodewig <bode...@apache.org>
Subject Re: if
Date Tue, 06 Aug 2002 13:06:48 GMT
On Tue, 6 Aug 2002, Geoff Meakin <geoffm@isocra.com> wrote:

>   <condition property="isWindows" value="true">
>     <or>
>       <equals arg1="${os.name}" arg2="Windows NT"/>
>       <equals arg1="${os.name}" arg2="WindowsNT"/>
>       <equals arg1="${os.name}" arg2="Windows 2000"/>
>       <equals arg1="${os.name}" arg2="Windows 95"/>
>       <equals arg1="${os.name}" arg2="Windows 98"/>
>       <equals arg1="${os.name}" arg2="Windows ME"/>
>       <equals arg1="${os.name}" arg2="Windows NT"/>
>     </or>
>   </condition>

Why not

<condition property="isWindows" value="true">
  <os family="windows" />
</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