opensubscriber
   Find in this group all groups
 
Unknown more information…

u : user@ant.apache.org 11 September 2009 • 7:22PM -0400

Set value if directory exists
by Mikael Petterson

REPLY TO AUTHOR
 
REPLY TO GROUP




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@eric...




Bookmark with:

Delicious   Digg   reddit   Facebook   StumbleUpon

Related Messages

opensubscriber is not affiliated with the authors of this message nor responsible for its content.