public class DashboardTask extends org.gradle.api.DefaultTask implements ReportingEntity<DashboardReports>
DashboardSection for each report included in the summary.
By default the task generates a summary of the reports from the Test, JaCoCo, Cobertura, Scent,
JDepend, SpotBugs, Checkstyle, PMD, and CPD tasks that are available in the project. Build
scripts can access and modify these standard sections through the sections property,
which is a map from task name to DashboardSection instance. New sections can also be
added to this map.
The layout of the dashboard sections can be configured through the task's layout
property.
| Constructor and Description |
|---|
DashboardTask() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
addBuiltInSection(org.gradle.api.Task pTask)
Add a built-in dashboard section for a task.
|
void |
addSection(java.lang.String pName,
org.gradle.api.reporting.Report pReport,
java.lang.Object pXslFile)
Add or modify the dashboard section with a specific name.
|
void |
addSection(java.lang.String pName,
org.gradle.api.reporting.Report pReport,
org.gradle.api.reporting.Report pDetailedReport,
java.lang.Object pXslFile)
Add or modify the dashboard section with a specific name.
|
org.gradle.api.Task |
configure(groovy.lang.Closure pClosure)
Add the default sections before configuring the task.
|
void |
createReport()
Create the dashboard report with all sections that have been added to the task.
|
java.util.List<org.myire.quill.dashboard.DashboardTask.DashboardSectionSpec> |
getInputSections()
Get the map with the individual dashboard sections that will be included in the report.
|
DashboardLayout |
getLayout()
Get the layout of the dashboard.
|
DashboardReports |
getReports()
Get the reports produced by this task.
|
java.util.Map<java.lang.String,DashboardSection> |
getSections()
Get the map with the individual dashboard sections that will be included in the report.
|
boolean |
isVerbose()
Should the path to the report file be logged after it has been created?
|
DashboardLayout |
layout(groovy.lang.Closure pClosure)
Configure the dashboard's layout.
|
DashboardSection |
removeSection(java.lang.String pName)
Remove a dashboard section with a specific name.
|
DashboardReports |
reports(org.gradle.api.Action<? super DashboardReports> pAction)
Configure this task's reports.
|
DashboardReports |
reports(groovy.lang.Closure pClosure)
Configure this task's reports.
|
void |
setVerbose(boolean pVerbose) |
addValidator, appendParallelSafeAction, compareTo, deleteAllActions, dependsOn, dependsOnTaskDidWork, doFirst, doFirst, doLast, doLast, execute, finalizedBy, getActions, getAnt, getAsDynamicObject, getConvention, getDependsOn, getDescription, getDestroyables, getDidWork, getEnabled, getExecuter, getExtensions, getFinalizedBy, getGroup, getIdentityPath, getImpliesSubProjects, getInputs, getLogger, getLogging, getMustRunAfter, getName, getOnlyIf, getOutputs, getPath, getProject, getServices, getShouldRunAfter, getStandardOutputCapture, getState, getTaskActions, getTaskDependencies, getTemporaryDir, getTemporaryDirFactory, getValidators, hasProperty, injectIntoNewInstance, isEnabled, isHasCustomActions, leftShift, mustRunAfter, onlyIf, onlyIf, prependParallelSafeAction, property, setActions, setDependsOn, setDescription, setDidWork, setEnabled, setExecuter, setFinalizedBy, setGroup, setImpliesSubProjects, setMustRunAfter, setOnlyIf, setOnlyIf, setProperty, setShouldRunAfter, shouldRunAfter, toStringpublic org.gradle.api.Task configure(groovy.lang.Closure pClosure)
configure in interface org.gradle.api.Taskconfigure in interface org.gradle.util.Configurable<org.gradle.api.Task>configure in class org.gradle.api.internal.AbstractTaskpClosure - The closure to configure the task with.@Input public boolean isVerbose()
public void setVerbose(boolean pVerbose)
public DashboardLayout getLayout()
public DashboardLayout layout(groovy.lang.Closure pClosure)
pClosure - A closure that configures the layout.public DashboardReports getReports()
getReports in interface ReportingEntity<DashboardReports>public DashboardReports reports(groovy.lang.Closure pClosure)
reports in interface ReportingEntity<DashboardReports>pClosure - A closure that configures the reports.public DashboardReports reports(org.gradle.api.Action<? super DashboardReports> pAction)
reports in interface ReportingEntity<DashboardReports>pAction - An action that configures the reports.@Input public java.util.List<org.myire.quill.dashboard.DashboardTask.DashboardSectionSpec> getInputSections()
@Internal public java.util.Map<java.lang.String,DashboardSection> getSections()
public void addSection(java.lang.String pName,
org.gradle.api.reporting.Report pReport,
java.lang.Object pXslFile)
pName - The name of the dashboard section.pReport - The XML report to transform.pXslFile - The XSL file to transform the report with.public void addSection(java.lang.String pName,
org.gradle.api.reporting.Report pReport,
org.gradle.api.reporting.Report pDetailedReport,
java.lang.Object pXslFile)
pName - The name of the dashboard section.pReport - The XML report to transform.pDetailedReport - The detailed report to refer to from the dashboard section.pXslFile - The XSL file to transform the report with.public boolean addBuiltInSection(org.gradle.api.Task pTask)
pTask - The task to add a dashboard section for.public DashboardSection removeSection(java.lang.String pName)
pName - The name of the dashboard section.public void createReport()