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

Fix download path for aars.

This commit is contained in:
Cedric Beust 2016-02-10 01:28:36 +04:00
parent 99b0c3b447
commit a50a7a2313

View file

@ -36,13 +36,13 @@ public class MavenDependency @Inject constructor(mavenId: MavenId,
} else {
val repoResult = repoFinder.findCorrectRepo(mavenId.toId)
if (repoResult.found) {
val path = if (jar.exists()) jar.absolutePath else aar.absolutePath
jarFile =
if (repoResult.archiveUrl != null) {
val path = localRepo.toFullPath(repoResult.path!!)
downloadManager.download(HostConfig(url = repoResult.archiveUrl), path, executor)
} else {
CompletedFuture(File("nonexistentFile")) // will be filtered out
}
}
pomFile = downloadManager.download(HostConfig(url = repoResult.hostConfig.url + toPomFile(repoResult)),
pom.absolutePath, executor)
} else {