From 4e33619d2872b9d09fdc5457c42642e69afb2748 Mon Sep 17 00:00:00 2001 From: Alejandro Revilla Date: Tue, 11 Dec 2018 11:29:33 -0300 Subject: [PATCH] add task group (so they are visible with 'gradle tasks') [ci skip] --- doc/build.gradle | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/doc/build.gradle b/doc/build.gradle index 9024f18a20..0c66c8ae39 100644 --- a/doc/build.gradle +++ b/doc/build.gradle @@ -32,6 +32,7 @@ task a2x(dependsOn: copySources) { } task createPdf(type: DocbookPdf) { + group = 'Toolchain' setDescription('Generates PDF docbook output.') extension = 'fo' dependsOn a2x @@ -42,6 +43,7 @@ task createPdf(type: DocbookPdf) { } task createHtml(type: DocbookHtml) { + group = 'Toolchain' setDescription('Generates HTML docbook output.') dependsOn a2x,copyWebResources sourceFileName "book.xml" @@ -50,14 +52,14 @@ task createHtml(type: DocbookHtml) { stylesheet "${projectDir}/src/xslt/html.xsl" as File } -task viewHtml (dependsOn: createHtml, description: 'Open HTML docbook outout in default browser') { +task viewHtml (dependsOn: createHtml, description: 'Open HTML docbook outout in default browser', group: 'Toolchain') { doLast { Class.forName("java.awt.Desktop").newInstance().browse( new File("${buildDir}/docbook/html", 'book.html').toURI()) } } -task viewPdf (dependsOn: createPdf , description: 'Open PDF docbook outout in default viewer') { +task viewPdf (dependsOn: createPdf , description: 'Open PDF docbook outout in default viewer', group: 'Toolchain') { doLast { Class.forName("java.awt.Desktop").newInstance().browse( new File("${buildDir}/docbook/pdf", this.project.rootProject.name + '.pdf').toURI())