ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Robert Clark <robert.cl...@quest.com>
Subject Re: dir check
Date Fri, 25 Nov 2005 16:34:58 GMT
On Friday November 25, 2005 09:03 am, "Andrei" <andrei@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


Mime
View raw message