You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ant.apache.org by st...@sungard.com on 2005/08/24 19:09:35 UTC

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: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org


Re: how to detect relative or absolute path value

Posted by "Alexey N. Solofnenko" <A....@mdl.com>.
Have you tried <property name="path" 
location="${another.path.property}"/>? In that case "path" property will 
have an absolute path of another.path.property.

- Alexey.

sten.rosendahl@sungard.com wrote:
> 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: user-unsubscribe@ant.apache.org
> For additional commands, e-mail: user-help@ant.apache.org
>   

-- 
------------------------------------------------------------------------
/ Alexey N. Solofnenko
MDL Information Systems, Inc.
work: 510-357-2222x1726
home: http://trelony.cjb.net/
/

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org