ant的子串字符串

时间:2012-04-09 14:25:17

标签: ant

有人可以帮助我吗。我想通过ant得到字符串的子串。例如我有路径 d:\ Folder_for_Ant \ Incremental_Build \ My.ear \ Common \ classes.jar 我想通过子串这个路径得到单词“Common”。怎么做?

1 个答案:

答案 0 :(得分:0)

您应该使用propertyregex

或者你可以使用脚本(scriptdef),你可以使用javacript