You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ant.apache.org by bu...@apache.org on 2003/09/13 21:40:08 UTC

DO NOT REPLY [Bug 23153] New: - Filtering with filtersets adds line ending at end of file

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=23153>.
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=23153

Filtering with filtersets adds line ending at end of file

           Summary: Filtering with filtersets adds line ending at end of
                    file
           Product: Ant
           Version: 1.5.4
          Platform: PC
        OS/Version: Windows XP
            Status: NEW
          Severity: Normal
          Priority: Other
         Component: Core tasks
        AssignedTo: dev@ant.apache.org
        ReportedBy: gthb@dimon.is


If a text file that ends without a line ending is copied with a filterset in
effect, then a line ending is added to the copy.

This is a nuisance at least in my use case: I'm filtering resources that my
unit tests load to compare against the output of the class I'm testing. The
source code and the unit test resource both go through the same filter. The
filter is for repackaging the source code into a different package tree, so
the unit tests should pass whether or not the filter has been applied. As it
stands, I get a unit test failure in the filtered version, because the extra
line ending constitutes a mismatch between expected and actual output. This
calls for special-case handling, which is inconvenient, yada yada.

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