From 9cf7d63d252b05f5a3db3c47322504a66073562e Mon Sep 17 00:00:00 2001 From: Emmanuel Venisse Date: Tue, 29 Mar 2005 19:53:27 +0000 Subject: [PATCH] Fix settings file path for windows. git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@163708 13f79535-47bb-0310-9956-ffa450edef68 --- .../org/apache/maven/settings/DefaultMavenSettingsBuilder.java | 1 + 1 file changed, 1 insertion(+) diff --git a/maven-core/src/main/java/org/apache/maven/settings/DefaultMavenSettingsBuilder.java b/maven-core/src/main/java/org/apache/maven/settings/DefaultMavenSettingsBuilder.java index 5b79a82154..c929d82b8d 100644 --- a/maven-core/src/main/java/org/apache/maven/settings/DefaultMavenSettingsBuilder.java +++ b/maven-core/src/main/java/org/apache/maven/settings/DefaultMavenSettingsBuilder.java @@ -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( "\\\\", "/" );