From: Riamse Date: Sun, 6 May 2018 18:37:55 +0000 (-0400) Subject: Gradle option to pass command line arguments to Java application X-Git-Tag: v0.6.1~27 X-Git-Url: https://git.nmode.ca/signal-cli/commitdiff_plain/afe18ea5acfc5cbc6d84e916c4267df8fc9f2d1c?ds=sidebyside Gradle option to pass command line arguments to Java application --- diff --git a/build.gradle b/build.gradle index cc1376e7..37f97ce5 100644 --- a/build.gradle +++ b/build.gradle @@ -36,6 +36,12 @@ jar { } } +run { + if (project.hasProperty("appArgs")) { + args Eval.me(appArgs) + } +} + // Find any 3rd party libraries which have released new versions // to the central Maven repo since we last upgraded. // http://daniel.gredler.net/2011/08/08/gradle-keeping-libraries-up-to-date/