Overview | Package | Class | Deprecated | Index | Help
| Groovy Documentation
| FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## org.gradle.api.tasks.diagnostics
Class AbstractReportTask

    java.lang.Object
      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()`

Method Summary
`void` | `generate()`
`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.

Constructor Detail

### AbstractReportTask

    AbstractReportTask()

Method Detail

### generate

    @TaskAction
    public void generate()

### generate

    protected void generate(Project project)

### getOutputFile

    @OutputFile
    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