ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Alexey Solofnenko <>
Subject RE: Improt task and project basedir
Date Tue, 14 Jan 2003 16:30:56 GMT
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.

{   } Alexey N. Solofnenko
Pleasant Hill, CA (GMT-8 usually)

-----Original Message-----
From: Nicola Ken Barozzi [] 
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         
             - verba volant, scripta manent -
    (discussions get forgotten, just code remains)

To unsubscribe, e-mail:   <>
For additional commands, e-mail: <>

To unsubscribe, e-mail:   <>
For additional commands, e-mail: <>

View raw message