ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Matt Benson <gudnabr...@yahoo.com>
Subject Re: XmlProperty
Date Wed, 02 Nov 2005 22:03:20 GMT
--- Stefan Bodewig <bodewig@apache.org> wrote:

> On Wed, 2 Nov 2005, Matt Benson
> <gudnabrsam@yahoo.com> wrote:
> 
> > To make sure we understand each other, what I mean
> > here is to allow e.g.:
> > <copy resource="url:someurl" tofile="foo" />
> > or something similar, IH would pass "url:someurl"
> to a
> > ResourceHelper class or some such that would
> attempt
> > to locate a Resource type defined as "url" and
> call a
> > String constructor with "someurl".
> 
> Hmm, I'd prefer (ab?)using PropertyHelpers for this
> instead of adding
> new helpers.
> 
> <copy resource="${resource:url:someurl}"/> or
> something similar.

Hmm... this appears doable... it will require that the
properties be resolved by IntrospectionHelper instead
of RuntimeConfigurable though, which could require the
usual backwards-compatibility acrobatics.  Then the
internally used interface (abstract class)
AttributeSetter of IH would have to be changed to take
an Object value instead of a String, just to have the
opportunity to use the Object value PropertyHelper is
capable of returning (Project isn't).  The
resource-aware PropertyHelper would become part of the
default PropertyHelper chain then as well?

Speaking of which we still need to make adding
PropertyHelpers to the chain more (at all)
user-friendly, but that's (yet) another discussion.

> 
> > This is more useful for specifying resources for
> > output than for input.
> 
> Agreed.
> 
> > This has been another of my
> so-odd-as-to-likely-be-unpopular ideas,
> 
> You have no idea what type of odd ideas I have for
> resource
> collections 8-)

Please, go ahead.  Scare me!

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



		
__________________________________ 
Yahoo! FareChase: Search multiple travel sites in one click.
http://farechase.yahoo.com

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


Mime
View raw message