ant-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 48621] Allow <fileset> with multiple base directories
Date Wed, 27 Jan 2010 05:21:28 GMT
https://issues.apache.org/bugzilla/show_bug.cgi?id=48621

Stefan Bodewig <bodewig@apache.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
            Version|unspecified                 |1.8Alpha (nightly)
   Target Milestone|---                         |1.8.1
           Severity|normal                      |enhancement

--- Comment #3 from Stefan Bodewig <bodewig@apache.org> 2010-01-26 21:21:23 UTC ---
I understand - you are correct if the list of basedirs is not known there is no
built-in way to do that.

You may get there using a <for> loop creating a fileset, echoing the included
filenames to a file using pathconvert and echo and finally use a filelist
reading the written file, but this is clumsy.

Extending <fileset> won't work since most tasks that work on fileset expect it
to have a single base directory (they invoke getBasedir and getIncludedFiles
and build up File instances).

What we can do is to write a resource collection that behaves like a union of
filesets that share the same include/exclude patterns with basedirs taken from
another resource collection.  It shouldn't be too hard to do, but we are too
close to the 1.8.0 release to throw it in right now.

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

Mime
View raw message