Add build.gradle dynamic uploadProject task
Dieser Commit ist enthalten in:
Ursprung
d192d843b1
Commit
27cc6efb43
18
build.gradle
18
build.gradle
@ -83,16 +83,18 @@ task finalizeProject {
|
|||||||
}
|
}
|
||||||
build.finalizedBy(finalizeProject)
|
build.finalizedBy(finalizeProject)
|
||||||
|
|
||||||
task uploadProject {
|
if (project.hasProperty("hostname")) {
|
||||||
description 'Upload this project'
|
task uploadProject {
|
||||||
group "Steamwar"
|
description 'Upload this project'
|
||||||
|
group "Steamwar"
|
||||||
|
|
||||||
doLast {
|
doLast {
|
||||||
shell("scp ${libs}/${jarName} ${hostname}:~/Dev1.15/plugins")
|
shell("scp ${libs}/${jarName} ${hostname}:~/Dev1.15/plugins")
|
||||||
if (!answer("Start DEV server?")) {
|
if (!answer("Start DEV server?")) {
|
||||||
return
|
return
|
||||||
|
}
|
||||||
|
shell("ssh ${hostname} \"./mc Dev1.15\"")
|
||||||
}
|
}
|
||||||
shell("ssh ${hostname} \"./mc Dev1.15\"")
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
In neuem Issue referenzieren
Einen Benutzer sperren