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] New: Allow <fileset> with multiple base directories
Date Tue, 26 Jan 2010 15:34:25 GMT
https://issues.apache.org/bugzilla/show_bug.cgi?id=48621

           Summary: Allow <fileset> with multiple base directories
           Product: Ant
           Version: unspecified
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Core tasks
        AssignedTo: notifications@ant.apache.org
        ReportedBy: rich@steelezone.net


The current implementations of <fileset> and <dirset> only allow for a single
base directory; I would like the ability to specify multiple base directories,
perhaps something like this:

<fileset>
   <basedirs refid="src" />
   <include name="*.java" />
</fileset>

Rationale:

The <javac> task allows for multiple source directories using the <src>
element; this is particularly useful for builds that generate source code.  I
can create a generic (reusable) build file for generating source from an
arbitrary number of source directories using this element.

However, dealing with multiple source directories becomes problematic in other
areas, like creating a zip file of all the sources.

I'd prefer to not have to depend on a custom task, like using antcontrib's
<for>, because the script handling this is meant to be generic; the same
argument goes against writing my own task to do this (which I've done).

-- 
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