You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@sling.apache.org by pa...@apache.org on 2018/11/16 14:16:44 UTC

[sling-org-apache-sling-feature-io] branch master updated: SLING-8112: encoded path to local repository correctly on windows.

This is an automated email from the ASF dual-hosted git repository.

pauls pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/sling-org-apache-sling-feature-io.git


The following commit(s) were added to refs/heads/master by this push:
     new 7f7478a  SLING-8112: encoded path to local repository correctly on windows.
7f7478a is described below

commit 7f7478adc7a03591bfdedecac76d671fb3906919
Author: Karl Pauls <ka...@gmail.com>
AuthorDate: Fri Nov 16 15:16:34 2018 +0100

    SLING-8112: encoded path to local repository correctly on windows.
---
 .../java/org/apache/sling/feature/io/file/ArtifactManagerConfig.java    | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/main/java/org/apache/sling/feature/io/file/ArtifactManagerConfig.java b/src/main/java/org/apache/sling/feature/io/file/ArtifactManagerConfig.java
index 60c620b..d3c8bea 100644
--- a/src/main/java/org/apache/sling/feature/io/file/ArtifactManagerConfig.java
+++ b/src/main/java/org/apache/sling/feature/io/file/ArtifactManagerConfig.java
@@ -46,7 +46,7 @@ public class ArtifactManagerConfig implements ArtifactProviderContext {
     public ArtifactManagerConfig() {
         // set defaults
         this.repositoryUrls = new String[] {
-                "file://" + System.getProperty("user.home") + "/.m2/repository",
+                "file://" + new File(System.getProperty("user.home")).toURI().getPath() + ".m2/repository",
                 "https://repo.maven.apache.org/maven2",
                 "https://repository.apache.org/content/groups/snapshots"
                 };