add: parameter for running commandline task

This commit is contained in:
Tobi Schäfer 2020-03-18 10:36:08 +01:00
parent b90143adf7
commit 19a3961207
2 changed files with 5 additions and 1 deletions

View file

@ -193,8 +193,10 @@ task rhinoShell(type: JavaExec) {
standardInput = System.in standardInput = System.in
} }
// Call this task with a function definition using the `-P` parameter, e.g.
// `./gradlew commandLine -Pfunction=manage.getAllApplications`
task commandLine(type: JavaExec) { task commandLine(type: JavaExec) {
classpath = files('launcher.jar') classpath = files('launcher.jar')
main = 'helma.main.launcher.Commandline' main = 'helma.main.launcher.Commandline'
args '-h', projectDir, 'manage.getAllApplications' args '-h', projectDir, function
} }

View file

@ -1 +1,3 @@
org.gradle.console = plain org.gradle.console = plain
function =