ant有替换一段文本的功能吗? 比如一个文件夹里有很多文件,比如50个java文件(或别的也可以),我想把这些文件里只要有"copyright 2008"的文本,都替换成"copyright 2010"。ant能实现吗?最好能把脚本片段告诉我。谢谢! 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 不知道ant能不能实现,但是知道自己写代码是肯定能够实现,而且写这个代码也就十几分钟的事情,何必那么懒呢? 有啊。看:http://ant.apache.org/manual/CoreTasks/replace.html 貌似可以.!<replace file="${src}/index.html" token="@@@" value="wombat"/>replaces occurrences of the string "@@@" with the string "wombat", in the file ${src}/index.html. java 中有没有Input类啊? 说一说编程恶习 取得实例的类名 高分求解几个问题 运行服务器端,抛出异常Exception in thread "Thread-0" java.lang.NullPointerException at com cvs的官方网站是什么? 很简单的一个问题。为什么会出错? 有c++基础和一些开发经验的人,初学java应该看什么书? javamail 请问哪里有可信的Kawa下载,我不想再下了 new String hashSet 根据字符串调用函数
<replace file="${src}/index.html" token="@@@" value="wombat"/>
replaces occurrences of the string "@@@" with the string "wombat", in the file ${src}/index.html.