Skip to content

Commit

Permalink
refactor-entrypoint (#10)
Browse files Browse the repository at this point in the history
  • Loading branch information
LGala authored Nov 19, 2022
1 parent 05c2b69 commit d9e7c04
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions src/main.kt
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,7 @@ fun main(args: Array<String>) {
try {
val cliPath = "$CLI_CORE_DIR_PATH/${cliVersionToUse()}.jar"

val cliProcess = ProcessBuilder(listOf("java", "-jar", cliPath) + args).start()

val cliOutput = String(cliProcess.inputStream.readAllBytes()) + String(cliProcess.errorStream.readAllBytes())

println(cliOutput)
ProcessBuilder(listOf("java", "-jar", cliPath) + args).inheritIO().start()
} catch (e: Throwable) {
println(e.message)
}
Expand Down

0 comments on commit d9e7c04

Please sign in to comment.