public abstract class AbstractReportTask
extends org.gradle.api.internal.ConventionTask
Task.Namer
TASK_ACTION, TASK_DEPENDS_ON, TASK_DESCRIPTION, TASK_GROUP, TASK_NAME, TASK_OVERWRITE, TASK_TYPE
修飾子 | コンストラクタと説明 |
---|---|
protected |
AbstractReportTask() |
修飾子とタイプ | メソッドと説明 |
---|---|
void |
generate() |
protected abstract void |
generate(Project project) |
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.logging.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
addValidator, compareTo, configure, deleteAllActions, dependsOn, dependsOnTaskDidWork, doFirst, doFirst, doLast, doLast, execute, executeWithoutThrowingTaskFailure, finalizedBy, getActions, getAnt, getAsDynamicObject, getConvention, getDependsOn, getDescription, getDidWork, getEnabled, getExecuter, getExtensions, getFinalizedBy, getGroup, getImpliesSubProjects, getInputs, getLogger, getLogging, getMustRunAfter, getName, getOnlyIf, getOutputs, getPath, getProject, getServices, getShouldRunAfter, getStandardOutputCapture, getState, getTaskActions, getTaskDependencies, getTemporaryDir, getTemporaryDirFactory, getValidators, hasProperty, injectIntoNewInstance, isEnabled, leftShift, mustRunAfter, onlyIf, onlyIf, property, setActions, setDependsOn, setDescription, setDidWork, setEnabled, setExecuter, setFinalizedBy, setGroup, setImpliesSubProjects, setMustRunAfter, setName, setOnlyIf, setOnlyIf, setProject, setProperty, setShouldRunAfter, shouldRunAfter, toString
@Inject protected org.gradle.logging.StyledTextOutputFactory getTextOutputFactory()
public void generate()
protected abstract org.gradle.api.tasks.diagnostics.internal.ReportRenderer getRenderer()
protected abstract void generate(Project project) throws IOException
IOException
@OutputFile @Optional public File getOutputFile()
null
, the report is written to System.out
.
Defaults to null
.public void setOutputFile(File outputFile)
null
to write the report to System.out
.outputFile
- The output file. May be null.public Set<Project> getProjects()