ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Nathan Christiansen" <Nathan_Christian...@morinda.com>
Subject RE: Set a property based on directory exists
Date Thu, 12 Dec 2002 00:04:24 GMT
Oh, that is what the <available> task is about. (How embarrassing.)

Thanks.

-----Original Message-----
From: Dominique Devienne [mailto:DDevienne@lgc.com]
Sent: Wednesday, December 11, 2002 4:09 PM
To: 'Ant Users List'
Subject: RE: Set a property based on directory exists


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

-----Original Message-----
From: Nathan Christiansen [mailto:Nathan_Christiansen@morinda.com] 
Sent: Wednesday, December 11, 2002 5: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]>

--
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