You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ant.apache.org by Andrei <an...@netrom.ro> on 2005/11/25 15:03:01 UTC
dir check
Does any body know an ant task which verifies if a directory exists?
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org
Re: dir check
Posted by Robert Clark <ro...@quest.com>.
On Friday November 25, 2005 09:03 am, "Andrei" <an...@netrom.ro>
wrote:
> Does any body know an ant task which verifies if a directory
> exists?
<available/> is the task you are looking for.
<http://ant.apache.org/manual/CoreTasks/available.html>
For example:
<available file="some-dir-name"
type="dir"
property="some-dir.available"/>
<fail unless="some-dir.available"/>
- Rob
--
This is not an automated signature.
I type this in at the bottom of every message.
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org