ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Stefan Bodewig <bode...@apache.org>
Subject Re: RPM builds
Date Tue, 20 Nov 2001 16:13:03 GMT
On Tue, 20 Nov 2001, Conor MacNeill <conor@cortexebusiness.com.au>
wrote:

> The changes check for the existence of /bin/rpm to control whether
> the rpm build is attempted.

Wouldn't it be better to do something like

<property environment="env" />
<condition property="rpm.present">
  <or>
    <available file="rpm" filepath="${env.PATH}" />
    <available file="rpm.exe" filepath="${env.PATH}" />
  </or>
</condition>

which should check for rpm in PATH on most platforms.

Stefan

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


Mime
View raw message