ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 29637] - Default property value not replace when entrered a conditinal block
Date Thu, 17 Jun 2004 10:08:36 GMT
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=29637>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=29637

Default property value not replace when entrered a conditinal block





------- Additional Comments From j_a_fernandez@yahoo.com  2004-06-17 10:08 -------
There is no problem with properties being inmutable. It is just that you have 
to think about your code the other way around. I.e.:

1) First evaluate your conditional and set the value of the property if the 
condition is true.

2) Just before you use the value of the property for the first time
set the property to its default value.

If the property was already set, the second <property/> will have no effect,
otherwise you get the default.

So the only problem here is that you have to change your frame of mind when 
working on a declarative (non-imperative) language.

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


Mime
View raw message