ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Stefan Bodewig <bode...@apache.org>
Subject Re: Substitute different property file in Ant
Date Thu, 05 Sep 2002 05:58:29 GMT
On Wed, 4 Sep 2002, Shailesh Kadam <Skadam@us.nomura.com> wrote:

> How should I write a common build.xml file which picks up the right
> property file on respective environment.

<condition property="propertyfile" value="windows.properties">
  <os family="windows" />
</condition>
<property name="propertyfile" value="unix.properties" />
<property file="${propertyfile}" />

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