ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mindspin311 <>
Subject Need to find current directory (not entire path)
Date Mon, 31 Mar 2008 19:51:30 GMT

If I have the following path: /blah/foo/trunk/ 

I want to be able to assign just "trunk" to a property, similar to dirname:

  <dirname property="pdir" file="build.xml" />

This returns the whole path. I just want it to return the last element of a

View this message in context:
Sent from the Ant - Users mailing list archive at

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message