Server build fix / Debug hook

This commit is contained in:
Anuken
2018-09-10 19:33:12 -04:00
parent 4af0fbf553
commit d9eb4c1296
7 changed files with 24 additions and 11 deletions

View File

@@ -37,8 +37,12 @@ task run(dependsOn: classes, type: JavaExec) {
jvmArgs "-XstartOnFirstThread"
}
ignoreExitValue = true
if (project.hasProperty("appArgs")) {
args Eval.me(appArgs)
if (project.hasProperty("args")) {
args Eval.me(project.getProperties()["args"])
}
if(args.contains("debug")){
main = "io.anuke.mindustry.DebugLauncher"
}
}