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 14058] New: - fileset: Empty "includesfile" selects all files in "dir"
Date Tue, 29 Oct 2002 18:56:09 GMT
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=14058>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=14058

fileset: Empty "includesfile" selects all files in "dir"

           Summary: fileset: Empty "includesfile" selects all files in "dir"
           Product: Ant
           Version: 1.5.1
          Platform: Other
        OS/Version: Other
            Status: NEW
          Severity: Normal
          Priority: Other
         Component: Core
        AssignedTo: ant-dev@jakarta.apache.org
        ReportedBy: glenn_twiggs@bmc.com


If the file specified by "includesfile" is empty, all files in the directory
specified by the fileset's dir attribute are included. The expected behavior is
an empty fileset.

The workaround is to specify a nonexistant includes file. For example:

<checkstyle>
      <!-- BUG WORKAROUND:
        -  The fileset includes a reference to a nonexistant file. Without this,
        -  all files in ${basedir} will be included if the includesfile is
        -  empty.
        -->
    <fileset dir="${basedir}"
             includesfile="filelist.txt"
             includes="nonexistant.file" />
</checkstyle>

--
To unsubscribe, e-mail:   <mailto:ant-dev-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:ant-dev-help@jakarta.apache.org>


Mime
View raw message