fabric8io/fabric8 — pull request #1368 by luksa (2014-05-13 16:02:09+00:00)
Title: Fixed improper use of String.replaceAll

On Windows, this caused ${karaf.home} to be replaced with "C:someDirSomeSubDir" instead of ("C:\someDir\SomeSubDir")

When using replaceAll, if the replacement isn't a hardcoded regexp replacement expression, it should be quoted with Matcher.quoteReplacement, otherwise replaceAll will evaluate \0 as a a backreference. Also, it will simply remove backslashes when \x (or \a or \b or ...) is not a special escape sequence as far as replaceAll is concerned.