ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Mikael Petterson" <mikael.petter...@ericsson.com>
Subject Set value if directory exists
Date Fri, 11 Sep 2009 11:22:21 GMT
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="." />

Mikael Petterson
Software Designer


Ericsson AB, Stockholm, Sweden
Visiting address: Torshamnsgatan 42, Kista
Phone: +46 70 2673044 
E-mail: mikael.petterson@ericsson.com 




Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message