mirror of
https://github.com/pgpainless/pgpainless.git
synced 2024-11-26 14:22:05 +01:00
Rename pgpainless run script and fix parameter passing
This commit is contained in:
parent
8cf5347b52
commit
f662a3dba9
2 changed files with 12 additions and 1 deletions
|
@ -63,4 +63,11 @@ jar {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
run {
|
||||||
|
// https://discuss.gradle.org/t/how-can-i-provide-command-line-args-to-application-started-with-gradle-run/6474/5
|
||||||
|
if (project.hasProperty("appArgs")) {
|
||||||
|
args Eval.me(appArgs)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
tasks."jar".dependsOn(":pgpainless-core:assemble")
|
tasks."jar".dependsOn(":pgpainless-core:assemble")
|
||||||
|
|
|
@ -15,4 +15,8 @@ popd > /dev/null
|
||||||
|
|
||||||
BASEDIR="$(cd ${SCRIPTDIR}/.. && pwd)"
|
BASEDIR="$(cd ${SCRIPTDIR}/.. && pwd)"
|
||||||
|
|
||||||
exec "${BASEDIR}/gradlew" run --quiet --args="${@}"
|
# https://discuss.gradle.org/t/how-can-i-provide-command-line-args-to-application-started-with-gradle-run/6474/5
|
||||||
|
printf -v var "'%s', " "$@"
|
||||||
|
var=${var%??}
|
||||||
|
|
||||||
|
exec "${BASEDIR}/gradlew" run --quiet -PappArgs="[$var]"
|
Loading…
Reference in a new issue