mirror of https://github.com/apache/maven.git
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:
parent
80b1b94fd3
commit
9cf7d63d25
|
@ -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( "\\\\", "/" );
|
||||
|
|
Loading…
Reference in New Issue