From 371434fdae3060bd71d937247e9a38e7856621b6 Mon Sep 17 00:00:00 2001 From: Cedric Beust Date: Tue, 3 Nov 2015 06:57:15 -0800 Subject: [PATCH] Fix Windows resolution bug. --- src/main/kotlin/com/beust/kobalt/maven/RepoFinder.kt | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/main/kotlin/com/beust/kobalt/maven/RepoFinder.kt b/src/main/kotlin/com/beust/kobalt/maven/RepoFinder.kt index 8fb1df8f..ad40545c 100644 --- a/src/main/kotlin/com/beust/kobalt/maven/RepoFinder.kt +++ b/src/main/kotlin/com/beust/kobalt/maven/RepoFinder.kt @@ -73,7 +73,6 @@ public class RepoFinder @Inject constructor(val urlFactory: Kurl.IFactory, val e val mavenId = MavenId(id) val groupId = mavenId.groupId val artifactId = mavenId.artifactId - var packaging = mavenId.packaging val version = mavenId.version if (! mavenId.hasVersion) { val ud = UnversionedDep(groupId, artifactId) @@ -101,7 +100,7 @@ public class RepoFinder @Inject constructor(val urlFactory: Kurl.IFactory, val e val found = if (! hasJar) { // No jar, try to find the directory - val url = repoUrl + File(dep.toJarFile(dep.version)).parentFile.path + val url = repoUrl + File(dep.toJarFile(dep.version)).parentFile.path.replace("\\", "/") urlFactory.create(url).exists } else { true