A dashboard section produces a HTML fragment for the report dashboard. This fragment contains a summary of a report generated during a build. It may also hold a reference to the full report.
The summary is created by applying an XSL transformation to the underlying report's XML version.
| Constructor and description |
|---|
DashboardSection
(DashboardTask pTask, java.lang.String pName, org.gradle.api.reporting.Report pReport, org.gradle.api.reporting.Report pDetailedReport, java.lang.String pXslResource)Create a new DashboardSection. |
DashboardSection
(DashboardTask pTask, java.lang.String pName, org.gradle.api.reporting.Report pReport, org.gradle.api.reporting.Report pDetailedReport, java.io.File pXslFile)Create a new DashboardSection. |
| Type | Name and description |
|---|---|
java.io.File |
getXslFile()Get the XSL file that will be used to transform the XML input. |
void |
setXslFile(java.lang.Object pFile)Set the XSL file to use when transforming the XML input. |
void |
writeTo(ReportBuilder pReportBuilder)Write this section to a report by letting the specified report builder apply the transformation. |
| Methods inherited from class | Name |
|---|---|
class java.lang.Object |
java.lang.Object#wait(long, int), java.lang.Object#wait(long), java.lang.Object#wait(), java.lang.Object#equals(java.lang.Object), java.lang.Object#toString(), java.lang.Object#hashCode(), java.lang.Object#getClass(), java.lang.Object#notify(), java.lang.Object#notifyAll() |
Any detailed report the section should refer to.
The name of this section.
The underlying XML report for this section.
Create a new DashboardSection.
pTask - The task that creates the report this section is part of.pName - The name of this section.pReport - The XML report to get the section's content from.pDetailedReport - Any detailed report the section should refer to.pXslResource - The XSL resource to use if no XSL file is specified. Create a new DashboardSection.
pTask - The task that creates the report this section is part of.pName - The name of this section.pReport - The XML report to get the section's content from.pDetailedReport - Any detailed report the section should refer to.pXslFile - The XSL file to transform the report with.Get the XSL file that will be used to transform the XML input.
Set the XSL file to use when transforming the XML input. The specified file will be resolved relative to the project directory.
pFile - The XSL file.Write this section to a report by letting the specified report builder apply the transformation. If the underlying XML report isn't enabled nothing will be output.
pReportBuilder - The report builder holding the report to write this section to.Groovy Documentation