我正在尋找一些用於字符串操作的util方法。例如。拆分版本到其major.minor.bugfix部分:用於ant構建文件的StringUtils?
1.0.2
major=1
minor=0
bugfix=2
我已經看過:
http://www.docjar.com/docs/api/org/apache/tools/ant/util/StringUtils.html
它位於我的C:\ Apache的ANT-1.8.2 \ lib中\ ant.jar
但我該如何使用例如。我的build.xml文件中的plit方法?
這裏完成其使用Groovy:
http://www.coderanch.com/t/431213/tools/Ant-Split-string-assign-property
但有沒有「官方」蟻JAR /包含此基本類型的字符串操作任務,可以在我的build.xml文件被稱爲擴展?