ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Erik Hatcher" <jakarta-...@ehatchersolutions.com>
Subject Re: Reset an existing property
Date Tue, 04 Dec 2001 21:23:48 GMT
This is now deprecated behavior though.  Properties *should* be immutable
and things have tightened up quite a bit with it in the nightly builds
recently, although this particular "hole" is still open yet a deprecation
warning will be output when overriding a property using <available>

    Erik


----- Original Message -----
From: "Kurien Mathew" <kurien@envivio.com>
To: "Ant Users List" <ant-user@jakarta.apache.org>
Sent: Tuesday, December 04, 2001 2:05 PM
Subject: RE: Reset an existing property


> > > One, I hope, simple question.
> > >
> > > Is it possible to reset an existing property,
> > > something like
> > >
> > > <property name="dir.src" value="./src"/>
> > > <property name="dirty.src" value="d:\CVS\...."/>
> > > <property name="dir.src" value="${dirty.src}"/>
> > >
>
> Here is an alternative :
>
> <property name="dir.src" value="./src"/>
> <property name="dirty.src" value="d:\CVS\...."/>
>
> <available file="." property="dir.src" value="${dirty.src}"/>
>
> Note: <available> task must be enclosed in some <target>
>
>
>
>
> --
> To unsubscribe, e-mail:   <mailto:ant-user-unsubscribe@jakarta.apache.org>
> For additional commands, e-mail: <mailto:ant-user-help@jakarta.apache.org>
>
>


--
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