mirror of
https://github.com/apache/maven.git
synced 2025-02-07 02:29:10 +00:00
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 @@ private File getSettingsFile()
|
||||
// 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…
x
Reference in New Issue
Block a user