From 19a396120766ff0c1d01751642f119a03f0a2d7a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tobi=20Sch=C3=A4fer?= Date: Wed, 18 Mar 2020 10:36:08 +0100 Subject: [PATCH] add: parameter for running commandline task --- build.gradle | 4 +++- gradle.properties | 2 ++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/build.gradle b/build.gradle index d4d8e0b4..51623dc0 100644 --- a/build.gradle +++ b/build.gradle @@ -193,8 +193,10 @@ task rhinoShell(type: JavaExec) { 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) { classpath = files('launcher.jar') main = 'helma.main.launcher.Commandline' - args '-h', projectDir, 'manage.getAllApplications' + args '-h', projectDir, function } diff --git a/gradle.properties b/gradle.properties index 31396f61..71690dc7 100644 --- a/gradle.properties +++ b/gradle.properties @@ -1 +1,3 @@ org.gradle.console = plain + +function =