ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jeffrey E Care <ca...@us.ibm.com>
Subject Re: Force all location properties to be resolved in Unix Style
Date Mon, 11 Jun 2012 12:15:31 GMT
Raja Nagendra Kumar <nagendra.raja@tejasoft.com> wrote on 06/05/2012 
10:21:36 AM:

> Is it possible for ant location property to be resolved or echoed always 
in
> unix style path seperator.. irrespective of os on which ant is used..
> 
> e.g
> 
>  <property name="downloads.lr.ver.root"
>               location="c:\\java\\portals\\liferay\\vers/"/>
> 
>  <echo message="Unix Style value is ${downloads.lr.ver.root}"/>
> 
> should print c:/java/portals/liferay/vers/

It's not the prettiest solution but I think you could use <pathconvert> 
for this purpose.
Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message