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

Settings for Kobalt.

~/.kobalt/settings.xml.
This commit is contained in:
Cedric Beust 2016-01-12 23:40:48 +04:00
parent 24bd2c6299
commit 27d6332ea4
8 changed files with 81 additions and 13 deletions

View file

@ -11,6 +11,7 @@ import com.beust.kobalt.app.ProjectGenerator
import com.beust.kobalt.app.UpdateKobalt
import com.beust.kobalt.app.remote.KobaltClient
import com.beust.kobalt.app.remote.KobaltServer
import com.beust.kobalt.internal.KobaltSettings
import com.beust.kobalt.internal.PluginInfo
import com.beust.kobalt.internal.TaskManager
import com.beust.kobalt.internal.build.BuildFile
@ -43,7 +44,7 @@ private fun parseArgs(argv: Array<String>): Main.RunInfo {
public fun mainNoExit(argv: Array<String>): Int {
val (jc, args) = parseArgs(argv)
Kobalt.INJECTOR = Guice.createInjector(MainModule(args))
Kobalt.INJECTOR = Guice.createInjector(MainModule(args, KobaltSettings.readSettingsXml()))
return Kobalt.INJECTOR.getInstance(Main::class.java).run(jc, args, argv)
}