ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Chris Bailey" <ch...@codeintensity.com>
Subject How to get just the file/dir name from a FileSet item?
Date Wed, 14 Aug 2002 04:09:02 GMT
I'd like to use the Foreach ant-contrib task to iterate over a set of
directories, and assign the name of the directory to a property.  By the
name, I mean, just the individual directory name.  e.g. if the dir is
"/foo/bar/goo", then I just want "goo".  Is there a way to do this in Ant
for a FileSet (or some other way)?  The only solution I can see right now is
to use a <script> to do it, but I'm hoping I'm just missing something...

____
Chris Bailey       mailto:chris@codeintensity.com
Code Intensity       http://www.codeintensity.com


--
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