mirror of
https://github.com/ethauvin/kobalt.git
synced 2025-04-26 08:27:12 -07:00
Fix development mode for Apache classes.
This commit is contained in:
parent
80f1472018
commit
c57502b985
1 changed files with 4 additions and 1 deletions
|
@ -37,10 +37,13 @@ class KFiles {
|
||||||
// kobalt-wrapper.properties: kobalt.version=0.827
|
// 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
|
// When Kobalt can't find the newest jar file, it will instead use the classes produced by IDEA
|
||||||
// in the directories specified here:
|
// 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 {
|
val result = listOf("", "modules/kobalt-plugin-api", "modules/wrapper").map {
|
||||||
File(homeDir(KFiles.joinDir("kotlin", "kobalt", it, "kobaltBuild", "classes")))
|
File(homeDir(KFiles.joinDir("kotlin", "kobalt", it, "kobaltBuild", "classes")))
|
||||||
.absolutePath
|
.absolutePath
|
||||||
}
|
} + listOf(previousJar)
|
||||||
debug("Couldn't find ${jarFile.absolutePath}, using\n " + result.joinToString(" "))
|
debug("Couldn't find ${jarFile.absolutePath}, using\n " + result.joinToString(" "))
|
||||||
return result
|
return result
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue