ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Grace Li" <Grace...@thespigroup.com>
Subject RE: Set a property based on directory exists
Date Wed, 11 Dec 2002 23:09:43 GMT
try this

<available file="/home/httpd/html" type="dir" property="in.test.environment"/>

-----Original Message-----
From: Nathan Christiansen [mailto:Nathan_Christiansen@morinda.com]
Sent: Wednesday, December 11, 2002 6:07 PM
To: Ant Users List
Subject: Set a property based on directory exists


I am looking for a way to set a property based on wether a specified directory exists.

Psudeocode:

  <[If the directory "/home/httpd/html" exists]>
    <property name="in.test.environment" value="true" />
  </[If statement]>

-- Nathan Christiansen
   Morinda, Inc.
   http://www.tahitiannoni.com

--
To unsubscribe, e-mail:   <mailto:ant-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:ant-user-help@jakarta.apache.org>


--
To unsubscribe, e-mail:   <mailto:ant-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:ant-user-help@jakarta.apache.org>


Mime
View raw message