ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Rebhan, Gilbert" <Gilbert.Reb...@huk-coburg.de>
Subject RE: Set value if directory exists
Date Fri, 11 Sep 2009 11:37:43 GMT
 
-----Original Message-----
From: Mikael Petterson [mailto:mikael.petterson@ericsson.com] 
Sent: Friday, September 11, 2009 1:22 PM
To: user@ant.apache.org
Subject: Set value if directory exists

/*
Hi,

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
/tmp/myuser

I know that /local/tmp exists.

//mike	

	<available property="out.dir" value="/local/tmp" type="dir"
file="/local/tmp" />
	<available property="out.dir" value="/tmp/${user.name}"
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: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org


Mime
View raw message