ant-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
Subject DO NOT REPLY [Bug 53036] New: FixCRLF does not respect the eol="asis" setting
Date Wed, 04 Apr 2012 23:11:28 GMT

             Bug #: 53036
           Summary: FixCRLF does not respect the eol="asis" setting
           Product: Ant
           Version: nightly
          Platform: PC
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Core tasks
    Classification: Unclassified

Created attachment 28545
Sample Windows project to reproduce the bug

FixCRLF task always converts line endings to platform-default even if
eol="asis" option is specified.

Steps to reproduce in Windows:

1) Create a simple Ant project for conversion, for example:

<project name="test">
        <target name="crlf">
                <fixcrlf file="test.txt"

2) Create a test file, test.txt, for example:


where "^I" is a single TAB character and "$" is a single LF character.

3) Build the "crlf" target:

$ ant crlf

Observed result: the out/test.txt file has each TAB character replaced with 4
spaces, and each end of line represented with CRLF sequence.

Expected result: the out/test.txt file should have each TAB character replaced
with 4 spaces but EOLs should stay LF-only.

Steps to reproduce in *NIX: same, but make sure that the initial test.txt file
in step 2 uses DOS convention for line endings, for example:

$ unix2dos test.txt

After the crlf target is built, the out/test.txt will have LF line endings
while expected result is the original CRLF line endings

Attached is a sample project which can be used to reproduce the bug in Windows.

Tested build: apache-ant-1.9.0alpha nightly build #296 (Mar 19, 2012 12:02:44

Tested platforms:
1) Windows 7 Enterprise
2) Red Hat Enterprise 6.2 kernel 2.6.32-220.4.2.el6.x86_64

Configure bugmail:
------- You are receiving this mail because: -------
You are the assignee for the bug.

View raw message