ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Tharp, Joshua L, SOLGV" <jlth...@att.com>
Subject RE: converting relative path to abs path
Date Mon, 28 Apr 2003 16:31:48 GMT
If it is just a single path, then why not use the location attribute of
property instead of just value... According to _Java Development with
Ant_ the location attribute of property fixes values to absolute paths.
If you have a path element on the other hand... I don't think that will
work. You may have to build up the path with individual properties.

Josh

-----Original Message-----
From: Tarun Ramakrishna Elankath [mailto:tarun@webkadai.com] 
Sent: Monday, April 28, 2003 9:49 AM
To: user@ant.apache.org
Subject: Re: converting relative path to abs path

How about expressing the path relative to ${basedir} ?
You'll should get the full path then.




On Sat, 2003-04-26 at 17:49, Hanasaki JiJi wrote:
> Need to convert a var with a relative path into a var holding the same

> path represented as an absolute path.
> 
> ex:
> 	${myvar} contains "dist/mywar.war"
> 		convert to
> 	"/home/projects/p1/dist/mywar.war"
> 
> Thank you
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
> For additional commands, e-mail: user-help@ant.apache.org
> 
> 


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


Mime
View raw message