How can I get the name of the last folder in my ba

2019-04-19 13:41发布

问题:

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}"/>


标签: ant