利用 Ant 和 Eclipse 有效地提高部署工作效率

转载自:http://www.ibm.com/developerworks/cn/java/j-lo-ant-eclipse/

 

在ant里面找到了这个task可以使用正则表达式进行字符串替换,分享一下

doc的说明在http://ant.apache.org/manual/OptionalTasks/replaceregexp.html

 

<replaceregexp file="${src}/build.properties"
                         match="OldProperty=(.*)"
                         replace="NewProperty=\1"
                         byline="true"/>

你可能感兴趣的:(eclipse,工作,正则表达式,ant,IBM)