mirror of
https://github.com/ethauvin/kobalt.git
synced 2025-04-26 00:17:11 -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")
|
"kobalt/wrapper/kobalt-$previousVersion.jar")
|
||||||
latestInstalledVersion()
|
latestInstalledVersion()
|
||||||
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"))) //kobalt build dirs
|
||||||
.absolutePath
|
.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)
|
} + listOf(previousJar)
|
||||||
debug("Couldn't find ${jarFile.absolutePath}, using\n " + result.joinToString(" "))
|
debug("Couldn't find ${jarFile.absolutePath}, using\n " + result.joinToString(" "))
|
||||||
return result.filter { File(it).exists() }
|
return result.filter { File(it).exists() }
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue