mirror of
https://github.com/ethauvin/kobalt.git
synced 2025-04-29 17:38:12 -07:00
Make --server work even if there is no Build.kt.
Fixes https://github.com/cbeust/kobalt-intellij-plugin/issues/69.
This commit is contained in:
parent
4e4c5a7d9e
commit
8a8b5f638d
3 changed files with 5 additions and 16 deletions
|
@ -152,6 +152,9 @@ private class Main @Inject constructor(
|
|||
} else if (args.update) {
|
||||
// --update
|
||||
updateKobalt.updateKobalt()
|
||||
} else if (args.serverMode) {
|
||||
// --server
|
||||
val port = serverFactory.create(args.force, args.port, { cleanUp() }).call()
|
||||
} else {
|
||||
//
|
||||
// Everything below requires to parse the build file first
|
||||
|
@ -165,13 +168,6 @@ private class Main @Inject constructor(
|
|||
if (args.listTemplates) {
|
||||
// --listTemplates
|
||||
Templates().displayTemplates(pluginInfo)
|
||||
} else if (args.serverMode) {
|
||||
// --server
|
||||
val port = serverFactory.create(args.force, args.port,
|
||||
{ buildFile -> projectFinder.initForBuildFile(BuildFile(Paths.get(buildFile),
|
||||
buildFile), args) },
|
||||
{ cleanUp() })
|
||||
.call()
|
||||
} else if (args.projectInfo) {
|
||||
// --projectInfo
|
||||
allProjects.forEach {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue