mirror of
https://github.com/ethauvin/kobalt.git
synced 2025-04-27 00:38:11 -07:00
Launch the wrapper last.
This commit is contained in:
parent
1f53aabe50
commit
a6a279f71a
1 changed files with 3 additions and 1 deletions
|
@ -153,8 +153,10 @@ private class Main @Inject constructor(
|
||||||
// --init: create a new build project and install the wrapper
|
// --init: create a new build project and install the wrapper
|
||||||
// Make sure the wrapper won't call us back with --noLaunch
|
// Make sure the wrapper won't call us back with --noLaunch
|
||||||
//
|
//
|
||||||
com.beust.kobalt.wrapper.Main.main(arrayOf("--noLaunch") + argv)
|
|
||||||
projectGenerator.run(args, pluginClassLoader)
|
projectGenerator.run(args, pluginClassLoader)
|
||||||
|
// The wrapper has to call System.exit() in order to set the exit code,
|
||||||
|
// so make sure we call it last (or possibly launch it in a separate JVM).
|
||||||
|
com.beust.kobalt.wrapper.Main.main(arrayOf("--noLaunch") + argv)
|
||||||
} else if (args.usage) {
|
} else if (args.usage) {
|
||||||
jc.usage()
|
jc.usage()
|
||||||
} else if (args.serverMode) {
|
} else if (args.serverMode) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue