我在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)
我究竟做错了什么?谢谢托尼
该文档对fixlastline属性进行了以下说明:
此属性不适用于嵌入的文本。
您可以改为使用该line.separator属性:
<concat destfile="out.txt" append="true">SUCCESS${line.separator}</concat>
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
1451 次 |
| 最近记录: |