I haven't tested it, but there's another task: Available -
http://ant.apache.org/manual/CoreTasks/available.html - which you might find
interesting.
You could couple this with a Condition and the Target-conditions "if" or
"unless"
/nobody important
> Is there a way to test if a file (or directory) exists with Apache
> Ant? The manual has a <condition> element and a <filesmatch> element,
> but together they appear to compare files only. Could <filesmatch> be
> coerced into checking for the existence of a single file?