ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Stefan Bodewig <bode...@apache.org>
Subject Re: archivefileset resources
Date Fri, 23 Mar 2007 05:06:32 GMT
On Thu, 22 Mar 2007, Matt Benson <gudnabrsam@yahoo.com> wrote:
> --- Stefan Bodewig <bodewig@apache.org> wrote:
> 
>> On Wed, 21 Mar 2007, Matt Benson
>> <gudnabrsam@yahoo.com> wrote:

>> > Surely we can't go there... maybe we'd better rethink the
>> > "instanceof FileResource" idiom instead, e.g.
>> > isFilesystemResource()?
>> 
>> Or throw in an interface that contains getFile() and is implemented
>> by FileRessource - and modify the "instanceof FileResource" idiom
>> to "instanceof that new interface".
> 
> That gives me a nice comfy feeling.

Good.

> If we simply mandate that this type of Resource classification
> should always be interface-defined (we probably should have done
> this from the beginning

+1

> ), we can use JDK1.3 proxies and avoid cglib,

+1 again.

> Another cool thing seems to be that we could provide
> some kind of ResourceCollection that could proxy the
> resources from another collection but provide their
> content in files even for non-file resources

Yes, that sounds interesting.  We could throw in similar things to
attach permission bits to ressources that are not archiveressources
and so on.

Stefan

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


Mime
View raw message