-----Original Message-----
From: Mikael Petterson [mailto:[email protected]] 
Sent: Friday, September 11, 2009 1:22 PM
To: [email protected]
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: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to