我尝试了不同的phing过滤器正则表达式aso。从构建目标中剔除不同的代码片段。
为此,我使用了类似于
##CUTSTART
<?php // ...code to cut... ?>
##CUTEND我猜这不会起作用,因为没有多行支持:
<filterchain>
<replaceregexp>
<regexp pattern="##CUTSTART(.*)##CUTEND" replace="## gone" ignoreCase="true" />
</replaceregexp>
</filterchain> 有主意了吗?
发布于 2010-06-15 00:02:09
看这里:http://phing.info/trac/ticket/472似乎添加了多行支持(4周前!)
https://stackoverflow.com/questions/3038339
复制相似问题