add: parameter for running commandline task
This commit is contained in:
parent
b90143adf7
commit
19a3961207
2 changed files with 5 additions and 1 deletions
|
@ -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
|
||||
}
|
||||
|
|
|
@ -1 +1,3 @@
|
|||
org.gradle.console = plain
|
||||
|
||||
function =
|
||||
|
|
Loading…
Add table
Reference in a new issue