I have a DirSet which I would like to convert to a comma-delimited list of directory names. I'm not interested in the full path, just the names. Using the ant-contrib "for" task I've been able to iterate the directories and create the target list, but for the life of me I can't figure out how to extract just the directory name from the full path.
Is there an Ant task that helps with concatenating/extracting path parts (like File in Java, or System.IO.Path in .NET)?