Java Mailing List Archive

http://www.ant-tasks.com/

Apache Ant Archive

» Ant Users List
» Ant Developers List
Convert a path

Convert a path

2005-05-03       - By Nicolas Vervelle
Reply:     1     2  

I didn't have much success with my last question :(
I will try with only a small problem then :

How to expand a path (${build.dir}) to match what I get with <modified>
and the reverse modification?
For example : E:\Java\Jmol-web -> E\:\\Java\\Jmol-web -> E:\Java\Jmol-
web

It must be portable (Windows, Linux, Mac OS, ...)
I could probably do it with regular expressions,
but then I will have to check every "escapable" character
They are probably not limited to ':' and '\'

TIA,
Nicolas



---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@(protected)
For additional commands, e-mail: user-help@(protected)


©2008 ant-tasks.com - Jax Systems, LLC, U.S.A.