public class FileTransformingReport extends DefaultSingleFileReport
| Constructor and Description |
|---|
FileTransformingReport(org.gradle.api.Project pProject,
java.lang.String pName,
java.lang.String pDisplayName,
java.lang.String pXslResource,
groovy.lang.Closure<java.io.File> pInput)
Create a new
FileTransformingReport. |
| Modifier and Type | Method and Description |
|---|---|
boolean |
checkUpToDate()
Check if the report is up to date with respect to its XML input.
|
protected java.io.File |
getInputFile()
Get the XML input file to transform.
|
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 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.
|
getOutputLocationresolveDestinationconfigure, getDestination, getDisplayName, getName, getOutputType, getProject, getProjectLogger, getRequired, isEnabled, reportIsRequired, setDestination, setDestination, setEnabled, setEnabled, setOutputLocation, setRequired, toString, useDestinationclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitapplyProjectRootXslParametergetOutputLocation, getOutputTypesetDestination, setDestination, setEnabled, setEnabledpublic FileTransformingReport(org.gradle.api.Project pProject,
java.lang.String pName,
java.lang.String pDisplayName,
java.lang.String pXslResource,
groovy.lang.Closure<java.io.File> pInput)
FileTransformingReport.pProject - The project for which the report will be produced.pName - The report's symbolic name.pDisplayName - The report's descriptive name.pInput - A closure specifying the file 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 pDefaultDestination is null.protected java.io.File getInputFile()
public 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