windows-os-hotfix: RepositoryPath string representation relativized if needed
package org.carlspring.strongbox.providers.io;
+import org.carlspring.strongbox.artifact.coordinates.ArtifactCoordinates;
+
import java.io.IOException;
import java.net.URI;
-import java.net.URL;
import java.nio.file.Files;
import java.util.Arrays;
import java.util.Collections;
@@ -10,8 +11,6 @@ import java.util.Set;
import java.util.StringJoiner;
import java.util.stream.Collectors;
-import org.carlspring.strongbox.artifact.coordinates.ArtifactCoordinates;
-
public abstract class RepositoryFiles
{
@@ -137,6 +136,10 @@ public abstract class RepositoryFiles
{
return p.path;
}
+ if (!p.isAbsolute())
+ {
+ return p.path = p.toString();
+ }
return p.path = relativizeUri(p).toString();
}
