Gradle option to pass command line arguments to Java application

This commit is contained in:
Riamse 2018-05-06 14:37:55 -04:00 committed by AsamK
parent a44034a79e
commit afe18ea5ac

View file

@ -36,6 +36,12 @@ jar {
} }
} }
run {
if (project.hasProperty("appArgs")) {
args Eval.me(appArgs)
}
}
// Find any 3rd party libraries which have released new versions // Find any 3rd party libraries which have released new versions
// to the central Maven repo since we last upgraded. // to the central Maven repo since we last upgraded.
// http://daniel.gredler.net/2011/08/08/gradle-keeping-libraries-up-to-date/ // http://daniel.gredler.net/2011/08/08/gradle-keeping-libraries-up-to-date/