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:
parent
99b0c3b447
commit
a50a7a2313
1 changed files with 2 additions and 2 deletions
|
@ -36,13 +36,13 @@ public class MavenDependency @Inject constructor(mavenId: MavenId,
|
||||||
} else {
|
} else {
|
||||||
val repoResult = repoFinder.findCorrectRepo(mavenId.toId)
|
val repoResult = repoFinder.findCorrectRepo(mavenId.toId)
|
||||||
if (repoResult.found) {
|
if (repoResult.found) {
|
||||||
val path = if (jar.exists()) jar.absolutePath else aar.absolutePath
|
|
||||||
jarFile =
|
jarFile =
|
||||||
if (repoResult.archiveUrl != null) {
|
if (repoResult.archiveUrl != null) {
|
||||||
|
val path = localRepo.toFullPath(repoResult.path!!)
|
||||||
downloadManager.download(HostConfig(url = repoResult.archiveUrl), path, executor)
|
downloadManager.download(HostConfig(url = repoResult.archiveUrl), path, executor)
|
||||||
} else {
|
} else {
|
||||||
CompletedFuture(File("nonexistentFile")) // will be filtered out
|
CompletedFuture(File("nonexistentFile")) // will be filtered out
|
||||||
}
|
}
|
||||||
pomFile = downloadManager.download(HostConfig(url = repoResult.hostConfig.url + toPomFile(repoResult)),
|
pomFile = downloadManager.download(HostConfig(url = repoResult.hostConfig.url + toPomFile(repoResult)),
|
||||||
pom.absolutePath, executor)
|
pom.absolutePath, executor)
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue