ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Rebhan, Gilbert" <>
Subject RE: Set value if directory exists
Date Fri, 11 Sep 2009 11:37:43 GMT
-----Original Message-----
From: Mikael Petterson [] 
Sent: Friday, September 11, 2009 1:22 PM
Subject: Set value if directory exists


How can I set the value of out.dir to /local/tmp/ if it exists.
Currently  the second option when /tmp exists set the value out.dir  to

I know that /local/tmp exists.


	<available property="out.dir" value="/local/tmp" type="dir"
file="/local/tmp" />
	<available property="out.dir" value="/tmp/${}"
type="dir" file="/tmp" />
	<property name="out.dir" location="." />

try =
<available file="/local/tmp" type="dir" property="out.dir" />

Regards, Gilbert
To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message