ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Stefan Bodewig <bode...@apache.org>
Subject Re: Decision making with ANT.
Date Thu, 09 Aug 2001 06:49:25 GMT
In addition to Don's response

On Wed, 8 Aug 2001, Mark Soderquist <cosmo@cosmoworx.com> wrote:

> I would like to set the value of a property based on the value of
> another property.

Using Ant 1.4 from recent nightly builds (or the upcoming beta of
course):

<condition property="my-dependent-property" value="hamstibamsti">
  <equals arg1="${mork}" value="from-ork" />
</condition>

Which will set my-dependent-property to the given value if the
condition holds true.

Stefan

Mime
View raw message