Since a property can be used in different contexts (like <fileset dir="${dir}/.." includes="${dir}/"/>) and in general we might not want to change the property string value, but we still need to rebase it. One of the possibility is to use a "shadow" property with a different name. Another way is to store multiple values in one property for different contexts. Rebased value will be calculated lazily or during the property setting (the build file's base dir is available here). After that ANT could provide different property values depending on a context - string value, path value (and possibly path list value). I still think it would be great to have <property name="xxx" path="yyy;zzz"/> - it will make rebasing much simpler, since it is now clear how to rebase the property.
- Alexey. -- { http://trelony.cjb.net/ } Alexey N. Solofnenko Pleasant Hill, CA (GMT-8 usually) -----Original Message----- From: Nicola Ken Barozzi [mailto:[EMAIL PROTECTED] Sent: Tuesday, January 14, 2003 5:25 AM To: Ant Developers List Subject: Re: Improt task and project basedir Alexey Solofnenko wrote: > Hello Nicola, > > I think that every property in ANT can have three values simultaneously. > One just a string, another is a path, and a path list. The values can be > created lazily as needed and used when a property is used in a particular > context. But thinking a little bit more I see that would make a simple > property substitution more difficult. Maybe just adding "context: > enum{plain|location|path}" parameter to the routine can solve the problem. Could you please explain more in detail about this solution? Thanks :-) -- Nicola Ken Barozzi [EMAIL PROTECTED] - verba volant, scripta manent - (discussions get forgotten, just code remains) --------------------------------------------------------------------- -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]> -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>