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

Fix tests.

This commit is contained in:
Cedric Beust 2015-11-19 18:23:54 -08:00
parent 12c98ed56f
commit 88bd553009
4 changed files with 43 additions and 24 deletions

View file

@ -57,6 +57,7 @@ class ArtifactFetcher @Inject constructor(@Assisted("url") val url: String,
file.parentFile.mkdirs()
urlFactory.create(url).toFile(file)
log(1, " Downloaded $url")
log(2, " to $file")
val localMd5 = Md5.toMd5(file)
if (remoteMd5 != null && remoteMd5 != localMd5) {

View file

@ -40,7 +40,7 @@ open public class LocalRepo(open val localRepo: String = KFiles.localRepo) {
val v2 = Versions.toLongVersion(f2.name)
v2.compareTo(v1) // we want the most recent at position 0
})
val result = directories.get(0).name
val result = directories[0].name
val newDep = LocalDep(MavenId.create(groupId, artifactId, packaging, result), this)
if (existsPom(newDep, result) && existsJar(newDep, result)) {
return result