add: group and description to custom tasks
This commit is contained in:
parent
cd05af552e
commit
1f1163704a
1 changed files with 9 additions and 0 deletions
|
@ -187,6 +187,9 @@ task update {
|
||||||
}
|
}
|
||||||
|
|
||||||
task jsdoc(type: Exec) {
|
task jsdoc(type: Exec) {
|
||||||
|
group 'Documentation'
|
||||||
|
description 'Generates JSDoc API documentation for the included JavaScript modules'
|
||||||
|
|
||||||
def sources = ['modules/core', 'modules/helma', 'modules/jala/code']
|
def sources = ['modules/core', 'modules/helma', 'modules/jala/code']
|
||||||
def destination = "${project.buildDir}/docs/jsdoc"
|
def destination = "${project.buildDir}/docs/jsdoc"
|
||||||
|
|
||||||
|
@ -203,6 +206,9 @@ task jsdoc(type: Exec) {
|
||||||
}
|
}
|
||||||
|
|
||||||
task rhinoShell(type: JavaExec) {
|
task rhinoShell(type: JavaExec) {
|
||||||
|
group 'Application'
|
||||||
|
description 'Runs the interactive Rhino JavaScript shell'
|
||||||
|
|
||||||
def rhinoJar = configurations.library.files.find { jar ->
|
def rhinoJar = configurations.library.files.find { jar ->
|
||||||
jar.name.startsWith('rhino')
|
jar.name.startsWith('rhino')
|
||||||
}
|
}
|
||||||
|
@ -216,6 +222,9 @@ task rhinoShell(type: JavaExec) {
|
||||||
// Call this task with a function definition using the `-P` parameter, e.g.
|
// Call this task with a function definition using the `-P` parameter, e.g.
|
||||||
// `./gradlew commandLine -Pfunction=manage.getAllApplications`
|
// `./gradlew commandLine -Pfunction=manage.getAllApplications`
|
||||||
task commandLine(type: JavaExec) {
|
task commandLine(type: JavaExec) {
|
||||||
|
group 'Application'
|
||||||
|
description 'Runs a function in a Helma application with `-Pfunction=app.functionName`'
|
||||||
|
|
||||||
classpath = files('launcher.jar')
|
classpath = files('launcher.jar')
|
||||||
main = 'helma.main.launcher.Commandline'
|
main = 'helma.main.launcher.Commandline'
|
||||||
args '-h', projectDir, function
|
args '-h', projectDir, function
|
||||||
|
|
Loading…
Add table
Reference in a new issue