Comparable<Task>
, org.gradle.api.internal.DynamicObjectAware
, org.gradle.api.internal.IConventionAware
, org.gradle.api.internal.TaskInternal
, ExtensionAware
, Task
, org.gradle.util.Configurable<Task>
ProjectBasedReportTask
, TaskReportTask
@Incubating public abstract class ConventionReportTask extends org.gradle.api.internal.ConventionTask
Task.Namer
TASK_ACTION, TASK_CONSTRUCTOR_ARGS, TASK_DEPENDS_ON, TASK_DESCRIPTION, TASK_GROUP, TASK_NAME, TASK_OVERWRITE, TASK_TYPE
Modifier | Constructor | Description |
---|---|---|
protected |
ConventionReportTask() |
Modifier and Type | Method | Description |
---|---|---|
protected org.gradle.initialization.BuildClientMetaData |
getClientMetaData() |
|
File |
getOutputFile() |
Returns the file which the report will be written to.
|
Set<Project> |
getProjects() |
Returns the set of project to generate this report for.
|
protected abstract org.gradle.api.tasks.diagnostics.internal.ReportRenderer |
getRenderer() |
|
protected org.gradle.internal.logging.text.StyledTextOutputFactory |
getTextOutputFactory() |
|
void |
setOutputFile(File outputFile) |
Sets the file which the report will be written to.
|
void |
setProjects(Set<Project> projects) |
Specifies the set of projects to generate this report for.
|
conventionMapping, conventionMapping, getConventionMapping
compareTo, configure, dependsOn, doFirst, doFirst, doFirst, doLast, doLast, doLast, finalizedBy, getActions, getAnt, getDependsOn, getDescription, getDestroyables, getDidWork, getEnabled, getExtensions, getFinalizedBy, getGroup, getInputs, getLocalState, getLogger, getLogging, getMustRunAfter, getName, getOutputs, getPath, getProject, getShouldRunAfter, getState, getTaskDependencies, getTemporaryDir, getTimeout, hasProperty, mustRunAfter, onlyIf, onlyIf, property, setActions, setDependsOn, setDescription, setDidWork, setEnabled, setFinalizedBy, setGroup, setMustRunAfter, setOnlyIf, setOnlyIf, setProperty, setShouldRunAfter, shouldRunAfter, usesService
appendParallelSafeAction, getAsDynamicObject, getConvention, getIdentityPath, getImpliesSubProjects, getOnlyIf, getRequiredServices, getServices, getSharedResources, getStandardOutputCapture, getTaskActions, getTaskIdentity, getTemporaryDirFactory, hasTaskActions, injectIntoNewInstance, isEnabled, isHasCustomActions, prependParallelSafeAction, setImpliesSubProjects, setLoggerMessageRewriter
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getConvention
@Internal protected abstract org.gradle.api.tasks.diagnostics.internal.ReportRenderer getRenderer()
@Nullable @Optional @OutputFile public File getOutputFile()
null
, the report is written to System.out
.
Defaults to null
.public void setOutputFile(@Nullable File outputFile)
null
to write the report to System.out
.outputFile
- The output file. May be null.@Internal public Set<Project> getProjects()
public void setProjects(Set<Project> projects)
projects
- The set of projects. Must not be null.@Inject protected org.gradle.initialization.BuildClientMetaData getClientMetaData()
@Inject protected org.gradle.internal.logging.text.StyledTextOutputFactory getTextOutputFactory()