ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Roger Vaughn <rvau...@seaconinc.com>
Subject Re: Some thoughts about runtime evaluation of properties
Date Wed, 26 Jul 2000 15:15:17 GMT
Paul Philion wrote:

> Stefan -
>
> That's a reasonable way to do it (and easy to implement), unless
> someone wants to implement something like:
>
> <property name="dist.bin.dir" value="${dist.dir}/bin"/>
> <property name="dist.lib.dir" value="${dist.dir}/lib"/>
> ...
> <target xyz...>
>     <property name="dist.dir" value="../package1/dist"/>
> </target>
> <target zyx...>
>     <property name="dist.dir" value="../package2/dist"/>
> </target>
>
> Note: I'm not suggesting that that is something that should be
> supported, or that it is something anyone would ever use. I'm just
> trying to point out potential issues.
>
> My goal is to make ant build files as simple as possible, both the
> write and understand. Immutable properties are very attractive (for
> their simplicity) but they do produce problems.
>
> - Paul

Paul,

This is *exactly* what I did in some earlier projects.  It worked in
1.0.8, but broke when properties became immutable in 1.1, which
eventually accounted for a huge flood of messages.....  I happen to like
the pattern myself.

roger



Mime
View raw message