api / org.gradle.api.tasks.diagnostics / ProjectReportTask

ProjectReportTask

open class ProjectReportTask : AbstractReportTask

Displays a list of projects in the build. An instance of this type is used when you execute the projects task from the command-line.

Constructors

<init>

ProjectReportTask()

Displays a list of projects in the build. An instance of this type is used when you execute the projects task from the command-line.

Inherited Functions

generate

open fun generate(): Unit

getOutputFile

open fun getOutputFile(): File

Returns the file which the report will be written to. When set to null, the report is written to System.out. Defaults to null.

getProjects

open fun getProjects(): MutableSet<Project>

Returns the set of project to generate this report for. By default, the report is generated for the task's containing project.

setOutputFile

open fun setOutputFile(outputFile: File): Unit

Sets the file which the report will be written to. Set this to null to write the report to System.out.

setProjects

open fun setProjects(projects: MutableSet<Project>): Unit

Specifies the set of projects to generate this report for.