ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Stefano Mancarella" <mancare...@opoipi.bancaintesa.it>
Subject Extracting path from file name
Date Wed, 24 Apr 2002 12:01:00 GMT
I have a property containing the full path to a file and I want extract the
directory path only.

For example, from:

<property name="some.property" value="/somedir/somefile"/>

I want to get "/somedir" only.

How can I do this (using Ant 1.4.1 and, possibly, not with a script)?


--
To unsubscribe, e-mail:   <mailto:ant-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:ant-user-help@jakarta.apache.org>


Mime
View raw message