SteamWar/BauSystem
Archiviert
13
0

Simplify build.gradle

Dieser Commit ist enthalten in:
yoyosource 2021-04-12 11:39:28 +02:00
Ursprung a6ad9bd63a
Commit 3985ec3627

Datei anzeigen

@ -119,14 +119,14 @@ if (project.hasProperty("hostname")) {
}
}
def await(Process proc) {
private def await(Process proc) {
def out = new StringBuilder()
def err = new StringBuilder()
proc.waitForProcessOutput(out, err)
return [out, err, proc.exitValue()]
}
def shell(String command) {
private def shell(String command) {
if (operatingSystem == "unix") {
return ['bash', '-c', command].execute()
} else {
@ -134,7 +134,7 @@ def shell(String command) {
}
}
def serverStart(String serverName) {
private def serverStart(String serverName) {
def proc = shell("ssh -t ${hostname} \"./mc ${serverName}\"")
Thread outputThread = new Thread({
@ -197,7 +197,7 @@ private static def awaitClose(Process proc, Thread outputThread, Thread inputThr
inputThread.interrupt()
}
def answer(String question) {
private def answer(String question) {
while (System.in.available() > 0) System.in.read()
println(question)
boolean valid = "Yy".contains(((char)System.in.read()).toString())