ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Chris Bailey" <>
Subject How to get just the file/dir name from a FileSet item?
Date Tue, 13 Aug 2002 21:45:44 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
Code Intensity

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

View raw message