蚂蚁,concat:无法添加回车换行

ton*_*ony 1 ant concat

我在Windows上运行ant 1.9.4。eol选项似乎无法正常工作。我试过了:

<concat destfile="${result.file}" append="true" fixlastline="yes" eol="crlf">SUCCESS</concat>
Run Code Online (Sandbox Code Playgroud)

<concat destfile="${result.file}" append="true" fixlastline="true" eol="crlf">SUCCESS</concat>
Run Code Online (Sandbox Code Playgroud)

我究竟做错了什么?谢谢托尼

man*_*uti 5

文档fixlastline属性进行了以下说明:

此属性不适用于嵌入的文本。

您可以改为使用该line.separator属性:

<concat destfile="out.txt" append="true">SUCCESS${line.separator}</concat>
Run Code Online (Sandbox Code Playgroud)