在我的ant构建文件中,我有一个包含该版本的属性"Version".防爆.2.5.17.230
现在,我使用propertyregexant-contrib来取代所有'.' (点)带下划线的字符.我写的声明如下:
<propertyregex property="Version" input="${Version}" regexp="." replace="_" global="true" />
但是,它不起作用.我甚至徒劳地试过这些:
regexp="\."和regexp="[.]"
有人可以帮忙吗?
谢谢