In an Ant buildfile I have a path stored in an Ant property: ${file}
.
How can I get just the filename and extension without the full path?
Use the Basename task
<basename property="filename" file="${file}"/>
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With