tony
tony

Reputation: 853

Ant, concat: Not able to add a carriage return line feed

I am running ant 1.9.4 on Windows. eol option doesn't seem to work correctly. I have tried:

<concat destfile="${result.file}" append="true" fixlastline="yes" eol="crlf">SUCCESS</concat>

and

<concat destfile="${result.file}" append="true" fixlastline="true" eol="crlf">SUCCESS</concat>

What am I doing wrong? Thanks Tony

Upvotes: 1

Views: 1947

Answers (1)

M A
M A

Reputation: 72854

The documentation says the following about the fixlastline attribute:

This attribute does not apply to embedded text.

You can instead use the line.separator property:

<concat destfile="out.txt" append="true">SUCCESS${line.separator}</concat>

Upvotes: 5

Related Questions