]> nmode's Git Repositories - signal-cli/commitdiff
Remove custom -PappArgs handling, gradle now supports --args
authorAsamK <asamk@gmx.de>
Sun, 12 Sep 2021 17:20:21 +0000 (19:20 +0200)
committerAsamK <asamk@gmx.de>
Sun, 12 Sep 2021 17:20:21 +0000 (19:20 +0200)
README.md
build.gradle.kts

index b63733d1ea674608c04789fa94f12ee763b22982..9a11ee6ea2f7b3397b9d9b42ee3a20d3b7483788 100644 (file)
--- a/README.md
+++ b/README.md
@@ -89,6 +89,10 @@ dependencies. If you have a recent gradle version installed, you can replace `./
 
         ./gradlew distTar
 
 
         ./gradlew distTar
 
+5. Compile and run signal-cli:
+
+        ./gradlew run --args="--help"
+
 ### Building a native binary with GraalVM (EXPERIMENTAL)
 
 It is possible to build a native binary with [GraalVM](https://www.graalvm.org).
 ### Building a native binary with GraalVM (EXPERIMENTAL)
 
 It is possible to build a native binary with [GraalVM](https://www.graalvm.org).
index 0ef51bda6ce667362b4e6b80ad53c39ba0b2c2b1..51b2ef755f9ab1f6ea0fa1f0ec773709b2b8411c 100644 (file)
@@ -64,12 +64,3 @@ tasks.withType<Jar> {
         )
     }
 }
         )
     }
 }
-
-tasks.withType<JavaExec> {
-    val appArgs: String? by project
-    if (appArgs != null) {
-        // allow passing command-line arguments to the main application e.g.:
-        // $ gradle run -PappArgs="['-u', '+...', 'daemon', '--json']"
-        args = groovy.util.Eval.me(appArgs) as MutableList<String>
-    }
-}