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:
parent
24bd2c6299
commit
27d6332ea4
8 changed files with 81 additions and 13 deletions
|
@ -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)
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue