How can I get the name of the last folder in my basedir path in Ant?
问题 Let's say my basedir = c:/projects/myapp/1.2 How can I get "1.2" in a property? 回答1: Check this out. <basename property="property.for.dirname" file="${basedir}"/> 来源: https://stackoverflow.com/questions/1178462/how-can-i-get-the-name-of-the-last-folder-in-my-basedir-path-in-ant