public class FormatChoiceReportTransformingReport extends ReportTransformingReport
ReportTransformingReport that transforms a FormatChoiceReport. The latter's
format must be XML for the transformation to take place.| Constructor and Description |
|---|
FormatChoiceReportTransformingReport(org.gradle.api.Project pProject,
java.lang.String pName,
java.lang.String pDisplayName,
FormatChoiceReport pInput,
java.lang.String pXslResource)
Create a new
FormatChoiceReportTransformingReport. |
| Modifier and Type | Method and Description |
|---|---|
boolean |
checkUpToDate()
Check if the report is up to date with respect to its XML input.
|
java.io.File |
getXslFile()
Get the XSL file that will be used to transform the XML input.
|
boolean |
reportIsRequired()
Check if this report is required (enabled) and should be created.
|
void |
setXslFile(java.lang.Object pFile)
Set the file containing the style sheet to use when transforming the XML input.
|
void |
transform()
Transform the report's XML input using the XSL style sheet specified for this report and
write the result to this report's destination.
|
getInputFilegetOutputLocationresolveDestinationconfigure, getDestination, getDisplayName, getName, getOutputType, getProject, getProjectLogger, getRequired, isEnabled, setDestination, setDestination, setEnabled, setEnabled, setOutputLocation, setRequired, toString, useDestinationclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitapplyProjectRootXslParametergetOutputLocation, getOutputTypesetDestination, setDestination, setEnabled, setEnabledpublic FormatChoiceReportTransformingReport(org.gradle.api.Project pProject,
java.lang.String pName,
java.lang.String pDisplayName,
FormatChoiceReport pInput,
java.lang.String pXslResource)
FormatChoiceReportTransformingReport.pProject - The project for which the report will be produced.pName - The report's symbolic name.pDisplayName - The report's descriptive name.pInput - The report to transform the output of.pXslResource - The resource containing the default style sheet to apply if no XSL file
is specified.java.lang.NullPointerException - if pProject or pInput is null.public boolean reportIsRequired()
SimpleConfigurableReportreportIsRequired in class ReportTransformingReportpublic java.io.File getXslFile()
TransformingReportgetXslFile in interface TransformingReportpublic void setXslFile(java.lang.Object pFile)
TransformingReportsetXslFile in interface TransformingReportpFile - The file specification, will be resolved using Project.file().public boolean checkUpToDate()
TransformingReportcheckUpToDate in interface TransformingReportpublic void transform()
TransformingReporttransform in interface TransformingReport