ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Matt Benson <gudnabr...@yahoo.com>
Subject Re: How about ${fromRefId:some-reference}?
Date Thu, 17 Sep 2009 15:42:11 GMT
So I take it you don't see any value in making all propertyhelper delegates optional, as is
the case with those provided by the props antlib?  Or are you concerned about adoption, or...?

-Matt

--- On Thu, 9/17/09, Stefan Bodewig <bodewig@apache.org> wrote:

> From: Stefan Bodewig <bodewig@apache.org>
> Subject: Re: How about ${fromRefId:some-reference}?
> To: dev@ant.apache.org
> Date: Thursday, September 17, 2009, 7:04 AM
> On 2009-09-04, Stefan Bodewig <bodewig@apache.org>
> wrote:
> 
> > I suggest to add another core PropertyEvaluator that
> works like the one
> > for toString but doesn't invoke toString() on the
> reference (but leaves
> > that to IntrospectionHelper if necessary).
> 
> It is in with svn revision 816153
> 
> > As usual, I'm unsure about the name of the prefix
> 
> Combining Gilles' and Jan's feedback it is
> ${ant.refid:foo}.
> 
> Given that this property evaluator is the very first one
> added to
> PropertyHelper it will be the last one consulted. 
> This reduces the
> possibility of collisions - if anybody used properties
> with
> ant.refid:foo in her build file, this file will work as
> before with
> current trunk.  Only if a build file relied on
> ${ant.refid:foo} to not
> expand to anything and a reference named "foo" exists there
> will now be
> a change of behavior.
> 
> Stefan
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org
> For additional commands, e-mail: dev-help@ant.apache.org
> 
> 


      

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


Mime
View raw message