1
0
Fork 0
mirror of https://github.com/ethauvin/kobalt.git synced 2025-04-26 08:27:12 -07:00

Fix Windows resolution bug.

This commit is contained in:
Cedric Beust 2015-11-03 06:57:15 -08:00
parent 68ea5de225
commit 371434fdae

View file

@ -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