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 16780] New: - copy with <filterset> corrupts binary files
Date Tue, 04 Feb 2003 21:19:12 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=16780>.
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=16780

copy with <filterset> corrupts binary files

           Summary: copy with <filterset> corrupts binary files
           Product: Ant
           Version: 1.5.1
          Platform: Macintosh
        OS/Version: MacOS X
            Status: NEW
          Severity: Normal
          Priority: Other
         Component: Core tasks
        AssignedTo: ant-dev@jakarta.apache.org
        ReportedBy: smagoun@mac.com


I'm trying to use the copy task in conjunction with a Filterset. My source
directory contains both binary and text files, and I want all of the files
copied. I found that using using the filterset causes corruption in my binary
files (most jpgs). Nothing in the ant documentation indicates that I can't do this.

I've enclosed a very simple test case: it's a build script and an image to be
copied. To use it, unpack + run the build script. It will copy a .jpg from one
directory to another using the copy task and a filterset. The new, filtered file
will be corrupt (use any image viewer or web browser to open it).

The behavior is 100% repeatable and affects all of the binary files I've tried
(about 20 so far). Changing the arguments to the filter task doesn't seem to
affect the bug.

There are workarounds (use the copy and replace tasks separately).

I'm running Ant 1.5.1 on Mac OS X 10.2.3 with JDK 1.3.1.

Mime
View raw message