Fix settings file path for windows.

git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@163708 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Emmanuel Venisse 2005-03-29 19:53:27 +00:00
parent 80b1b94fd3
commit 9cf7d63d25
1 changed files with 1 additions and 0 deletions

View File

@ -91,6 +91,7 @@ public class DefaultMavenSettingsBuilder
// TODO: This replacing shouldn't be necessary as user.home should be in the
// context of the container and thus the value would be interpolated by Plexus
String userHome = System.getProperty( "user.home" );
userHome = userHome.replaceAll( "\\\\", "/" );
path = path.replaceAll( "\\$\\{user.home\\}", userHome );
path = path.replaceAll( "\\\\", "/" );