mirror of
https://github.com/aljazceru/signal-cli.git
synced 2025-12-18 14:44:19 +01:00
Remove custom -PappArgs handling, gradle now supports --args
This commit is contained in:
@@ -89,6 +89,10 @@ dependencies. If you have a recent gradle version installed, you can replace `./
|
||||
|
||||
./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).
|
||||
|
||||
@@ -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>
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user