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
[Java] Class AbstractReportTask

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

    public abstract class AbstractReportTask
    extends ConventionTask

The base class for all project report tasks.

Constructor Summary
`protected AbstractReportTask()`

Method Summary
`void` | `generate()`
`protected void` | `generate(Project project)`
`java.io.File` | `getOutputFile()` Returns the file which the report will be written to.
`java.util.Set` | `getProjects()`
`protected ProjectReportRenderer` | `getRenderer()`
`void` | `setOutputFile(java.io.File outputFile)` Sets the file which the report will be written to.
`void` | `setProjects(java.util.Set projects)`

Constructor Detail

### AbstractReportTask

    protected AbstractReportTask()

Method Detail

### generate

    @TaskAction
    public void generate()

### generate

    protected void generate(Project project)

### getOutputFile

    @OutputFile
    @Optional
    public java.io.File getOutputFile()

  Returns the file which the report will be written to. When set to null, the report is written to stdout.
  Returns:
    The output file. May be null.

### getProjects

    public java.util.Set getProjects()

### getRenderer

    protected ProjectReportRenderer getRenderer()

### setOutputFile

    public void setOutputFile(java.io.File outputFile)

  Sets the file which the report will be written to. Set this to null to write the report to stdout.
  Parameters:
    `outputFile` - The output file. May be null.

### setProjects

    public void setProjects(java.util.Set projects)

Groovy Documentation