ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Sekar Varatharajan" <svar...@rnm.ca>
Subject RE: Unset property Value!
Date Tue, 06 Nov 2001 20:33:10 GMT
Thanks for your input diane. yes i want the property to 'unset' its value
not 'change' it. so everytime i check the
'available' file i should be able to reset the property value...and another
point is im using ant 1.3 so guess i may not able to use 'inheritAll'
attribute. so if you have any custom task which can unset the property value
please send it, it will make my life easier i can avoid another extra
build.xml getting used :)
Thanks
Sekar

-----Original Message-----
From: Diane Holt [mailto:holtdl@yahoo.com]
Sent: Tuesday, November 06, 2001 3:11 PM
To: Ant Users List
Subject: RE: Unset property Value!


--- Ylan Segal <ylan@digiworks.tv> wrote:
> That is correct.. once a property is set you can't change it.

Actually, that's not completely true. There are several ways you can
change the value of a property. The more well-known and "legitimate" way,
using <ant>/<antcall> -- any property set within a target executed via an
<ant> or <antcall> is only set during the execution of the
<ant>/<antcall>, or you can change the value of a property already set
within the main execution by passing that property, with a new value, to
the target being called. There's also the less well-known "backdoor" way,
using <available>, testing for something guaranteed to be available (eg.,
the build-file itself).

However, if by "change it" you mean unset it, then that's closer to true;
although, with the introduction of the "inheritAll" attribute in 1.4, you
almost can -- at least within the execution of the <ant>/<antcall>. Or you
could write (say) an <unset> task (hmm, come to think of it, someone might
have submitted just such a task at some point...or I could've just dreamed
it :)

Diane

=====
(holtdl@yahoo.com)



__________________________________________________
Do You Yahoo!?
Find a job, post your resume.
http://careers.yahoo.com

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