Add gradle property jvmArgs (#1161)
Allows specifying additional arguments for the vm, which would make using tools such as HotSwapAgent and dcevm easier Example: run -PjvmArgs='["-XXaltjvm=dcevm"]'
This commit is contained in:
@@ -28,6 +28,10 @@ task run(dependsOn: classes, type: JavaExec){
|
||||
args Eval.me(project.getProperties()["args"])
|
||||
}
|
||||
|
||||
if(project.hasProperty("jvmArgs")){
|
||||
jvmArgs((List<String>)Eval.me(project.getProperties()["jvmArgs"]))
|
||||
}
|
||||
|
||||
if(args.contains("debug")){
|
||||
main = "io.anuke.mindustry.DebugLauncher"
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user