首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 企业软件 > 行业软件 >

ant 剔除注释和空行

2012-11-04 
ant 删除注释和空行replaceregexp file${basedir}/oa.ear/oaweb.war/WEB-INF/weblogic.xml match!-

ant 删除注释和空行

<replaceregexp file="${basedir}/oa.ear/oaweb.war/WEB-INF/weblogic.xml" match="&lt;!--" replace="" flags="g" byline="true" encoding="utf-8"/><!--删除注释 -->

? ?<replaceregexp file="${basedir}/oa.ear/oaweb.war/WEB-INF/weblogic.xml" match="(.*)? --&gt;" replace="" flags="g" byline="true" encoding="utf-8"/><!--删除注释 -->

<replaceregexp match="^[ |\t]*[\n|\r\n]+" replace="" flags="gm" byline="false" encoding="utf-8"><!-- 删除多余空行 -->

热点排行