ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 39456] New: - Allow <fileset> to contain nested <fileset>s
Date Mon, 01 May 2006 07:55:18 GMT
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


Mime
View raw message