>> Support of ResourceCollections, or Paths could be good ...
>
>google does not find much useful information on that. for example how 
>they are used and why they are better than file sets for 
>example... it's not the same, is it?


FileSets are a collection of files with a common directory.
Paths are a collections of files.
ResourceCollections are collections of resources.
Files are resources.

zipentries, urls, strings are resources, too ...

Since Ant 1.8 (just committed yesterday) there is a new interface for
file based resources
        package org.apache.tools.ant.types.resources;
        public interface FileProvider {
            File getFile();
        }

I think dealing with paths or RCs is easier than dealing with filesets. 
Have a look at the tutorial [1] and compare the use of filesets [2] with
the use of paths [3].
Paths are easier to use for the developer (no dealing with
DirectoryScanner).
Paths are easier to use for the user (no "just-one-common-basedir"
problem).
That tutorial was written before RC came in ...


Jan


[1] http://ant.apache.org/manual/tutorial-tasks-filesets-properties.html
[2]
http://ant.apache.org/manual/tutorial-tasks-filesets-properties.html#fil
esets
[3]
http://ant.apache.org/manual/tutorial-tasks-filesets-properties.html#pat
h

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to