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 26814] New: - empty includesfile in fileset includes all files in dir
Date Tue, 10 Feb 2004 04:00:18 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=26814>.
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=26814

empty includesfile in fileset includes all files in dir

           Summary: empty includesfile in fileset includes all files in dir
           Product: Ant
           Version: 1.6.1beta1
          Platform: PC
        OS/Version: Windows XP
            Status: NEW
          Severity: Normal
          Priority: Other
         Component: Core
        AssignedTo: dev@ant.apache.org
        ReportedBy: chelberg@spss.com


I'm using an automated process (an XSLT transformation) to generate a file list 
that is used in a later task to create a fileset. The problem comes when there 
are no files to be added to the fileset. In that case, the includesfile is 
empty. Intuitively, I expected that the following fileset definition would 
include no files when tutorial-1-graphics.txt is empty (0 bytes).

<fileset includesfile="c:\work\xml\test\ant\tutorial-1-graphics.txt" 
dir="/pubs/clementine/Images"/>

Instead, what happens is that the fileset contains *all* the files 
in /pubs/clementine/images instead of no files.

I can work around it by always writing at least one bogus file to the 
includesfile (zzz.zzz or something like that), but it seems to me that a 
fileset that uses an empty file to construct its include list ought to end up 
with no files in it.

If I've missed something here, and this behavior is designed or intentional, 
perhaps someone would be good enough to point out the logic behind it. (I'm 
pretty new to Ant, so it's entirely possible that I just don't understand quite 
as well as I think I do.) Thanks.

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


Mime
View raw message