使用ant编辑/附加数据到文本文件 [英] Using ant to edit/append data to a text file
本文介绍了使用ant编辑/附加数据到文本文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我正在尝试在我的ant构建过程中向.jad文件中添加一个属性。
I am trying to add a property to a .jad file in my ant build process.
在ant中是否有任务执行此操作?我需要做的就是在文本文件的末尾添加一行文本但我找不到执行此操作的任务。
Is there a task in ant to do this? All I need to do is add a line of text to the end of a text file but I cannot find a task to do this.
推荐答案
我相信这会奏效。立即测试。
I believe this will work. Testing it now.
<concat append="true" destfile="app.jad">foo: bar</concat>
这篇关于使用ant编辑/附加数据到文本文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文