Abstract base class for enhancers of code quality tasks.
T - The type of task this enhancer operates on.| Type | Name and description |
|---|---|
static java.lang.String |
TRANSFORMING_REPORT_NAME |
| Constructor and description |
|---|
protected AbstractCheckTaskEnhancer
(T pTask)Create a new AbstractTaskEnhancer. |
| Type Params | Return Type | Name and description |
|---|---|---|
|
protected void |
addTransformingReport(org.gradle.api.reporting.Report pInputReport, java.lang.String pXslResource)Create a TransformingReport and add it to the task being enhanced.
|
|
void |
enhance()Configure the task's extension with sensible defaults. |
|
protected void |
extractResourceToFile(java.lang.String pResource, java.io.File pFile)Extract a classpath resource to a file. |
|
T |
getTask()Get the task being enhanced by this enhancer. |
| 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() |
Create a new AbstractTaskEnhancer.
pTask - The task to enhance. Create a TransformingReport and add it to the task being enhanced.
checkUpToDate() method will be added to the task's outputs
up-to-date checktransform() method will be appended to the task's
actionspInputReport - The report that will be transformed by the new transforming report.pXslResource - The resource containing the default style sheet to apply if no XSL file
is specified for the new transforming report.Configure the task's extension with sensible defaults.
Extract a classpath resource to a file. If the file already exists it will be left unmodified.
pResource - The name of the resource.pFile - The file to extract to.Get the task being enhanced by this enhancer.
Groovy Documentation