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

Fix development mode for Apache classes.

This commit is contained in:
Cedric Beust 2016-07-11 22:49:28 -08:00
parent 80f1472018
commit c57502b985

View file

@ -37,10 +37,13 @@ class KFiles {
// kobalt-wrapper.properties: kobalt.version=0.827
// When Kobalt can't find the newest jar file, it will instead use the classes produced by IDEA
// in the directories specified here:
val previousVersion = ((Kobalt.version.toFloat()* 1000 - 1) / 1000).toString()
val previousJar = joinDir(distributionsDir, "kobalt-" + previousVersion,
"kobalt/wrapper/kobalt-" + previousVersion + ".jar")
val result = listOf("", "modules/kobalt-plugin-api", "modules/wrapper").map {
File(homeDir(KFiles.joinDir("kotlin", "kobalt", it, "kobaltBuild", "classes")))
.absolutePath
}
} + listOf(previousJar)
debug("Couldn't find ${jarFile.absolutePath}, using\n " + result.joinToString(" "))
return result
}