ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jan.Mate...@rzf.fin-nrw.de
Subject AW: os independent paths
Date Fri, 15 Apr 2005 12:29:36 GMT
Ant can work (internally) with your ${build.dir}.
When you want to write the content in a platformspecific format
to a file you have to specify which format to use. From where
Ant should know that?

Jan

> -----Urspr√ľngliche Nachricht-----
> Von: rakesh mailgroups [mailto:rakesh.mailgroups@gmail.com]
> Gesendet am: Freitag, 15. April 2005 14:20
> An: Ant Users List
> Betreff: os independent paths
> 
> Hi,
> 
> found the ant website a bit cryptic when i looked up pathconvert. I
> hope someone can help me.
> 
> I would like to be able to take one of my properties such as
> ${build.dir}, (defined as build.dir=war/WEB-INF) and  and then convert
> that into a os-dependent path to use in my config files.
> 
> So, for windows, I would get a property like this :
> C:\Projects\myapp\war\WEB-INF
> 
> In unix I would get this:
> 
> /usr/rak/projects/myapp/war/WEB-INF
> 
> Ant of course will choose the correct one based on the os it 
> is running on.
> 
> Thanks
> 
> Rakesh
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
> For additional commands, e-mail: user-help@ant.apache.org
> 

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message