This commit is contained in:
@ -173,6 +173,7 @@ class DevCommand : CliktCommand("dev") {
|
|||||||
"-jar",
|
"-jar",
|
||||||
*cmd.toTypedArray()
|
*cmd.toTypedArray()
|
||||||
).directory(serverDir).inheritIO().start()
|
).directory(serverDir).inheritIO().start()
|
||||||
|
Runtime.getRuntime().addShutdownHook(Thread { if (process.isAlive) process.destroyForcibly() })
|
||||||
process.waitFor()
|
process.waitFor()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user