1
0
Fork 0
mirror of https://github.com/ethauvin/kobalt.git synced 2025-04-27 00:38:11 -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 mavenId = MavenId(id)
val groupId = mavenId.groupId val groupId = mavenId.groupId
val artifactId = mavenId.artifactId val artifactId = mavenId.artifactId
var packaging = mavenId.packaging
val version = mavenId.version val version = mavenId.version
if (! mavenId.hasVersion) { if (! mavenId.hasVersion) {
val ud = UnversionedDep(groupId, artifactId) val ud = UnversionedDep(groupId, artifactId)
@ -101,7 +100,7 @@ public class RepoFinder @Inject constructor(val urlFactory: Kurl.IFactory, val e
val found = val found =
if (! hasJar) { if (! hasJar) {
// No jar, try to find the directory // 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 urlFactory.create(url).exists
} else { } else {
true true