Well, I've tried location but even if the input property is an absolute
path like /usr/tmp, Ant will append basedir and create a property
/my/basedir/usr/tmp. I'm using Ant 1.6.2 on Linux.

Sten

-----Original Message-----
From: Burgess, Benjamin [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, August 24, 2005 7:12 PM
To: Ant Users List
Subject: RE: how to detect relative or absolute path value

Instead of using value, use location for the property and it should
convert it o an absolute path automatically.

Ben

-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Wednesday, August 24, 2005 1:10 PM
To: user@ant.apache.org
Subject: how to detect relative or absolute path value

My Ant script needs to know if a property value is a relative or
absolute path in order to decide if to prepend a root path or not. Can
Ant do this without custom tasks?

Sten Rosendahl



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED] For additional
commands, e-mail: [EMAIL PROTECTED]



**************************************************************
This message, including any attachments, contains confidential
information intended for a specific individual and purpose, and is
protected by law.  If you are not the intended recipient, please contact
sender immediately by reply e-mail and destroy all copies.  You are
hereby notified that any disclosure, copying, or distribution of this
message, or the taking of any action based on it, is strictly
prohibited.
TIAA-CREF
**************************************************************


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED] For additional
commands, e-mail: [EMAIL PROTECTED]




---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to