I've got a situation where we're generating an Ant <path>
which may contain some directories which don't actually exist. Unfortunately this is being fed into bnd
, which blows up if anything in the path is missing.
So what I want is a way to filter a <path>
to keep only those path elements which actually exist.
Is there a simple way to say this in Ant, or do I have to write a task?