]> nmode's Git Repositories - signal-cli/blobdiff - build.gradle
Gradle option to pass command line arguments to Java application
[signal-cli] / build.gradle
index cc1376e77a2b227509292ed85302d0dac1cf2729..37f97ce5146254dac9ebbfb905d5c5912df70536 100644 (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
 // to the central Maven repo since we last upgraded.
 // http://daniel.gredler.net/2011/08/08/gradle-keeping-libraries-up-to-date/