ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Stefan Bodewig <bode...@apache.org>
Subject Re: filelist to support selections as per the fileset
Date Tue, 13 Apr 2010 13:09:59 GMT
On 2010-04-13, Raja Nagendra Kumar <Nagendra.Raja@tejasoft.com> wrote:

> Any reason, why <filelist> does not support include and excludes as in
> fileset.

The short version: Because they wouldn't make sense (well exclude
wouldn't and the nested include element just has a different name:
<file>).

<fileset> means: scan the file system for files matching one of the
include patterns and none of the exclude patterns and return what you've
found.

<filelist> means: here is a list of files that may or may not be there,
return all of them don't check whether they are there at all.  No
wildcards supported.

If you look at it this way, exclude doesnt make sense for <filelist>
since you already list all files explicitly anyway.  If you need to
filter the results, wrap the filelist in a <restrict>.

> It would be very nice to have such support.

What would you use them for that you cannot do with the existing
functionality?

Stefan

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


Mime
View raw message