ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Stefan Bodewig <bode...@apache.org>
Subject Re: FileSets with optional basedir and absolute paths for includes
Date Thu, 10 Mar 2005 07:44:55 GMT
On Wed, 9 Mar 2005, Matt Benson <gudnabrsam@yahoo.com> wrote:

> public interface FileCollection {
>     public (String or File?)[] getFiles();
> }

maybe even Resource[]?  That would capture ZipFileSet in a clean way
as well.

> I think it is sufficient to require the type selector's use to
> restrict to files or directories, if not overly friendly.

I agree.

> Set operations are fine; the referenced bug (5035) includes talk of
> nested FileSets.  FileCollection unions, intersections and
> differences achieve the main spirit of the request in 5035; however
> we need to have some facility for adding additional restrictions (in
> the form of exclude patterns and selectors) to an existing
> FileCollection.

<union>, <intersect>, <difference> and <restrict>, maybe.

> I think the set operations should be implemented as FileCollections
> rather than tasks, for use inline.

+1

> I suppose we could have a "limit" FileCollection that applies
> exclusions and selectors to a single nested FileCollection.

Don't let me chose a name, please 8-)

Stefan

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


Mime
View raw message