im wondering if theres any possibility to test a directory for its existance in ant.
goal is, to copy some resource files only if the source folder really exists.
You can do this using the available task. Here’s an example from the manual:
<available file="/usr/local/lib" type="dir" property="local.lib.present"/>
sets the local.lib.present property to the value “true” if the directory /usr/local/lib is found.
very nice, thx. i really didnt notice that task … little odd, but true :