Remove custom -PappArgs handling, gradle now supports --args

This commit is contained in:
AsamK 2021-09-12 19:20:21 +02:00
parent 627a587952
commit 12e85ec671
2 changed files with 4 additions and 9 deletions

View file

@ -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).

View 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>
}
}