mirror of
https://github.com/ethauvin/kobalt.git
synced 2025-04-26 16:28:12 -07:00
Fix output classes.
This commit is contained in:
parent
0b8b5d0dc8
commit
71150c6df2
1 changed files with 8 additions and 4 deletions
|
@ -32,10 +32,14 @@ class KFiles {
|
||||||
if (jarFile.exists()) {
|
if (jarFile.exists()) {
|
||||||
return listOf(jarFile.absolutePath)
|
return listOf(jarFile.absolutePath)
|
||||||
} else {
|
} else {
|
||||||
// Will only happen when building kobalt itself: the jar file might not be in the dist/ directory
|
// In development mode, keep your kobalt.properties version one above kobalt-wrapper.properties:
|
||||||
// yet since we're currently building it. Instead, use the classes directly
|
// kobalt.properties: kobalt.version=0.828
|
||||||
val result = listOf("kobalt", "kobalt-plugin-api", "kobalt-wrapper").map {
|
// kobalt-wrapper.properties: kobalt.version=0.827
|
||||||
File(homeDir(KFiles.joinDir("kotlin", "kobalt", "out", "production", it))).absolutePath
|
// When Kobalt can't find the newest jar file, it will instead use the classes produced by IDEA
|
||||||
|
// in the directories specified here:
|
||||||
|
val result = listOf("", "modules/kobalt-plugin-api", "modules/wrapper").map {
|
||||||
|
File(homeDir(KFiles.joinDir("kotlin", "kobalt", it, "kobaltBuild", "classes")))
|
||||||
|
.absolutePath
|
||||||
}
|
}
|
||||||
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