How to "pathconvert" under Maven?

Posted by Gili on Stack Overflow See other posts from Stack Overflow or by Gili
Published on 2010-06-16T19:41:52Z Indexed on 2010/06/17 19:53 UTC
Read the original article Hit count: 553

Filed under:
|
|

I am having a similar problem as http://stackoverflow.com/questions/1799684/ant-basedir-slashes-escape-problem except that I'm running under Maven.

I'd like to generate cross-platform paths relative to Maven's built-in property ${basedir}. The problem is that under Windows, ${basedir} resolves to a path containing Windows-style slashes. Is there an easy way for me to get ${basedir} into a form that always uses Unix-style slashes even under Windows?

© Stack Overflow or respective owner

Related posts about Windows

Related posts about maven