You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ant.apache.org by bu...@apache.org on 2006/05/01 09:55:18 UTC
DO NOT REPLY [Bug 39456] New: - Allow to contain nested s
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=39456>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.
http://issues.apache.org/bugzilla/show_bug.cgi?id=39456
Summary: Allow <fileset> to contain nested <fileset>s
Product: Ant
Version: 1.6.5
Platform: PC
OS/Version: Windows XP
Status: NEW
Severity: enhancement
Priority: P3
Component: Core
AssignedTo: dev@ant.apache.org
ReportedBy: saunders@aggienetwork.com
It would be nice to be able to define a <fileset> as the union of other, more
granular <fileset>s:
<fileset id="html files" dir="${dir.output}">
<include name="**/*.html"/>
</fileset>
<fileset id="image files" dir="${dir.images}">
<include name="**/*.png"/>
<include name="**/*.jp?g"/>
</fileset>
<!-- note the lack of "dir" here, because the nested filesets already have their
own value for "dir", which should override anything on the parent fileset -->
<fileset id="all files">
<fileset refid="html files"/>
<fileset refid="image files"/>
</fileset>
Unfortunately, Ant doesn't appear to support any such construct. It is possible
to ref a <patternset> from one <fileset> inside of another, but because
<patternset> doesn't carry the "dir" attribute, this doesn't accomplish the
desired result (i.e., in the new context, the <patternset> may not refer to the
same set of files as in the first).
--
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org
For additional commands, e-mail: dev-help@ant.apache.org
DO NOT REPLY [Bug 39456] - Allow to contain nested s
Posted by bu...@apache.org.
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=39456>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.
http://issues.apache.org/bugzilla/show_bug.cgi?id=39456
gudnabrsam@yahoo.com changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
Target Milestone|--- |1.7
------- Additional Comments From gudnabrsam@yahoo.com 2006-05-01 14:25 -------
Ant 1.7 will introduce the ResourceCollection interface; <fileset>, <filelist>,
<dirset>, and <path> have had this interface added. Ant will ship with a number
of additional ResourceCollections. The <union> collection will no doubt
interest you, as might <intersect> and <difference>. To try them out you can
check out and build SVN HEAD or wait for a "shouldn't-be-much-longer-now" 1.7
beta to be published.
--
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org
For additional commands, e-mail: dev-help@ant.apache.org