ant Rplace 批量在资料中替换

ant Rplace 批量在文件中替换replace 可以替换某个文件中的字符串。结果就把 testfile1.txt 中的 hello

ant Rplace 批量在文件中替换

replace 可以替换某个文件中的字符串。

结果就把 testfile1.txt 中的 "hello" 替换成了 "world".

也可以批量处理:

?

就把当前文件夹下面所有 txt 文件按照指定的 filter 替换了。

?

我的一个例子:

?

ant的replace也支持正则表达式