Skip to content

Commit 9b2b26b

Browse files
committed
Fix no slash in remote artifact URLs
1 parent 85c9240 commit 9b2b26b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/main/java/edu/wpi/first/wpilib/opencv/installer/Installer.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -305,13 +305,13 @@ private static Path copyToMavenLocal(String repo, String artifactId, String vers
305305
}
306306

307307
String jar = resolveFullArtifactName(artifactId, version, classifier) + ".jar";
308-
String jarPath = remoteDir + jar;
308+
String jarPath = remoteDir + '/' + jar;
309309
System.out.println("Copying " + jarPath + " to the local maven repository");
310310
Files.deleteIfExists(Paths.get(dstDir, jar));
311311
Files.copy(new URL(jarPath).openStream(), Paths.get(dstDir, jar));
312312

313313
String pom = String.format("%s-%s.pom", artifactId, version);
314-
String pomPath = remoteDir + pom;
314+
String pomPath = remoteDir + '/' + pom;
315315
Files.deleteIfExists(Paths.get(dstDir, pom));
316316
Files.copy(new URL(pomPath).openStream(), Paths.get(dstDir, pom));
317317

0 commit comments

Comments
 (0)