ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Matt Benson <gudnabr...@yahoo.com>
Subject Re: Is recursive property evaluation supported?
Date Wed, 16 Apr 2008 15:10:03 GMT

--- Dominique Devienne <ddevienne@gmail.com> wrote:

> On Mon, Apr 14, 2008 at 6:11 PM, Shawn Castrianni
> <Shawn.Castrianni@halliburton.com> wrote:
> >  So I was surprised my recursive property
> evaluation didn't work.
> 
> It's not. But there's a patch for it in BugZilla,
> and you may be able
> to add it to your SVN controlled copy of Ant via an
> AntLib thanks to
> the PropertyHelper hooks available in Ant Core. They
> may require you
> to "invent" a new syntax for the nested expansion
> and also forces to
> use a property prefix, but overall it's probably a
> doable hack.

Actually, to the best of my knowledge, the patch in BZ
was made obsolete with the changes to PropertyHelper +
the props sandbox antlib, which provides a
NestedPropertyExpander.  See
http://ant.apache.org/antlibs/sandbox.html#Props%20-%20additional%20Property%20Resolver
for more info.

HTH,
Matt

> 
> Would like something like ${lgc:outer%inner%} for
> example. (using
> ${inner} or @{inner} it too likely to create issues
> I believe).
> 
> Using <propertycopy> or a custom task of your own is
> also an option,
> probably easier ;-) --DD
> 
>
---------------------------------------------------------------------
> To unsubscribe, e-mail:
> user-unsubscribe@ant.apache.org
> For additional commands, e-mail:
> user-help@ant.apache.org
> 
> 



      ____________________________________________________________________________________
Be a better friend, newshound, and 
know-it-all with Yahoo! Mobile.  Try it now.  http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ

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


Mime
View raw message