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:
parent
68ea5de225
commit
371434fdae
1 changed files with 1 additions and 2 deletions
|
@ -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
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue