Groovy Documentation

org.gradle.api.tasks.diagnostics
Class AbstractReportTask

java.lang.Object
  org.gradle.api.internal.AbstractTask
      org.gradle.api.DefaultTask
          org.gradle.api.internal.ConventionTask
              org.gradle.api.tasks.diagnostics.AbstractReportTask

class AbstractReportTask
extends ConventionTask

The base class for all project report tasks.


Constructor Summary
AbstractReportTask(Project project, java.lang.String name)

 
Method Summary
protected void generate(Project project)

File getOutputFile()

Returns the file which the report will be written to.

protected ProjectReportRenderer getRenderer()

void setOutputFile(File outputFile)

Sets the file which the report will be written to.

 
Methods inherited from class ConventionTask
conv, conventionMapping, conventionMapping, conventionProperty, getConventionAwareHelper, getConventionMapping, setConventionAwareHelper, setConventionMapping
 
Methods inherited from class DefaultTask
leftShift, methodMissing, propertyMissing
 
Methods inherited from class AbstractTask
captureStandardOutput, compareTo, defineProperty, deleteAllActions, dependsOn, dependsOnTaskDidWork, disableStandardOutputCapture, doFirst, doLast, equals, execute, getActions, getAdditionalProperties, getAnt, getConvention, getDependsOn, getDescription, getDidWork, getDynamicObjectHelper, getEnabled, getExecuted, getLogger, getName, getPath, getProject, getSkipProperties, getStandardOutputCapture, getTaskDependencies, hasProperty, hashCode, isDidWork, isEnabled, isExecuted, onlyIf, onlyIf, property, setActions, setAdditionalProperties, setDependsOn, setDescription, setDidWork, setEnabled, setExecuted, setName, setProject, setProperty, setSkipProperties, setStandardOutputCapture, toString
 
Methods inherited from class java.lang.Object
hashCode, getClass, equals, toString, wait, wait, wait, notify, notifyAll
 

Constructor Detail

AbstractReportTask

public AbstractReportTask(Project project, java.lang.String name)


 
Method Detail

generate

protected void generate(Project project)


getOutputFile

public File getOutputFile()
Returns the file which the report will be written to. When set to null, the report is written to stdout.
return:
The output file. May be null.


getRenderer

protected ProjectReportRenderer getRenderer()


setOutputFile

public void setOutputFile(File outputFile)
Sets the file which the report will be written to. Set this to null to write the report to stdout.
param:
outputFile The output file. May be null.


 

Groovy Documentation