ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Matt Benson <gudnabr...@yahoo.com>
Subject Re: resource enabling something
Date Fri, 27 Apr 2007 14:23:50 GMT

--- Steve Loughran <stevel@apache.org> wrote:

> I'm just prototypting resource support for
> <scriptdef>, so it can load 
> scripts off the classpath, etc...all the work goes
> on in ScriptHelper
> 
> One question. Should I resource enable a task by
> adding support for 
> ResourceCollections inst
> 
> add(ResourceCollection rc)
> 
> rather than simple resources
> 
> add(ResourceCollection rc)
> 
> Every resource is a ResourceCollection, after all,
> and doing it this way 
> lets me handle any specific collection in the list
> of resources...

Right--and then you just document that the
"collection" you receive should be of size 1?  Is that
what you mean?  I realized when I made the decision
that Resource would implement ResourceCollection that
it was kind of a weird concept ("endlessly recursive
composite"?), but my hope was that the ease in task
authoring would justify it.

-Matt

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


__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.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