]> nmode's Git Repositories - signal-cli/commitdiff
Gradle option to pass command line arguments to Java application
authorRiamse <andrewwang43@gmail.com>
Sun, 6 May 2018 18:37:55 +0000 (14:37 -0400)
committerAsamK <asamk@gmx.de>
Thu, 17 May 2018 16:07:31 +0000 (18:07 +0200)
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/