mirror of
https://github.com/ethauvin/kobalt.git
synced 2025-04-25 07:57:12 -07:00
add maven build dirs to classpath in “dev mode”
dev mode = when requested kobalt version jar not found
This commit is contained in:
parent
ae6258acb8
commit
a38a7187e8
1 changed files with 5 additions and 2 deletions
|
@ -57,8 +57,11 @@ class KFiles {
|
|||
"kobalt/wrapper/kobalt-$previousVersion.jar")
|
||||
latestInstalledVersion()
|
||||
val result = listOf("", "modules/kobalt-plugin-api", "modules/wrapper").map {
|
||||
File(homeDir(KFiles.joinDir("kotlin", "kobalt", it, "kobaltBuild", "classes")))
|
||||
.absolutePath
|
||||
File(homeDir(KFiles.joinDir("kotlin", "kobalt", it, "kobaltBuild", "classes"))) //kobalt build dirs
|
||||
.absolutePath
|
||||
} + listOf("modules/kobalt", "modules/kobalt-plugin-api", "modules/wrapper").map {
|
||||
File(homeDir(KFiles.joinDir("kotlin", "kobalt", it, "target", "classes"))) //maven build dirs
|
||||
.absolutePath
|
||||
} + listOf(previousJar)
|
||||
debug("Couldn't find ${jarFile.absolutePath}, using\n " + result.joinToString(" "))
|
||||
return result.filter { File(it).exists() }
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue