使用 ant 将数据编辑/附加到文本文件 [英] Using ant to edit/append data to a text file

查看:21
本文介绍了使用 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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆