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: [EMAIL PROTECTED]
        ReportedBy: [EMAIL PROTECTED]


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:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to