Fix input

This commit is contained in:
2025-04-29 16:30:00 +08:00
parent 6a6a24c064
commit 4a29a3f870
4 changed files with 4 additions and 1 deletions

View File

@@ -1,2 +1,2 @@
kotlin.code.style=official kotlin.code.style=official
pluginVersion=0.1.3 pluginVersion=0.1.4

View File

@@ -43,6 +43,7 @@ abstract class RunBrokerTask : DefaultTask() {
it.executable = if (executablePath == "-") "java" else executablePath it.executable = if (executablePath == "-") "java" else executablePath
it.args = listOf("-jar", brokerFile.absolutePath) it.args = listOf("-jar", brokerFile.absolutePath)
it.workingDir = project.layout.projectDirectory.dir("run/broker").asFile it.workingDir = project.layout.projectDirectory.dir("run/broker").asFile
it.standardInput = System.`in`
} }
logger.info("Broker started...") logger.info("Broker started...")
} }

View File

@@ -48,6 +48,7 @@ abstract class RunBrokerSubServerTask : DefaultTask() {
it.executable = if (executablePath == "-") "java" else executablePath it.executable = if (executablePath == "-") "java" else executablePath
it.workingDir = project.layout.projectDirectory.dir("run/server/$currentTaskName").asFile it.workingDir = project.layout.projectDirectory.dir("run/server/$currentTaskName").asFile
it.args = listOf("-jar", serverCore.absolutePath, "nogui") it.args = listOf("-jar", serverCore.absolutePath, "nogui")
it.standardInput = System.`in`
} }
logger.info("Server $currentTaskName started...") logger.info("Server $currentTaskName started...")
} }

View File

@@ -43,6 +43,7 @@ abstract class RunBrokerBungeeCordTask : DefaultTask() {
it.executable = if (executablePath == "-") "java" else executablePath it.executable = if (executablePath == "-") "java" else executablePath
it.workingDir = project.layout.projectDirectory.dir("run/bungee/").asFile it.workingDir = project.layout.projectDirectory.dir("run/bungee/").asFile
it.args = listOf("-jar", bungeeCord.absolutePath) it.args = listOf("-jar", bungeeCord.absolutePath)
it.standardInput = System.`in`
} }
logger.info("BungeeCord started...") logger.info("BungeeCord started...")
} }