use of org.gradle.api.tasks.diagnostics.internal.ReportGenerator in project gradle by gradle.
the class BuildEnvironmentReportTask method generate.
@TaskAction
public void generate() {
ProjectReportGenerator projectReportGenerator = new ProjectReportGenerator() {
@Override
public void generateReport(Project project) throws IOException {
Configuration configuration = getProject().getBuildscript().getConfigurations().getByName(ScriptHandler.CLASSPATH_CONFIGURATION);
renderer.startConfiguration(configuration);
renderer.render(configuration);
renderer.completeConfiguration(configuration);
}
};
ReportGenerator reportGenerator = new ReportGenerator(renderer, getClientMetaData(), null, getTextOutputFactory(), projectReportGenerator);
reportGenerator.generateReport(Collections.singleton(getProject()));
}
use of org.gradle.api.tasks.diagnostics.internal.ReportGenerator in project gradle by gradle.
the class AbstractReportTask method generate.
@TaskAction
public void generate() {
ProjectReportGenerator projectReportGenerator = new ProjectReportGenerator() {
@Override
public void generateReport(Project project) throws IOException {
generate(project);
if (shouldCreateReportFile()) {
project.getLogger().lifecycle("See the report at: {}", new ConsoleRenderer().asClickableFileUrl(getOutputFile()));
}
}
};
ReportGenerator reportGenerator = new ReportGenerator(getRenderer(), getClientMetaData(), getOutputFile(), getTextOutputFactory(), projectReportGenerator);
reportGenerator.generateReport(new TreeSet<Project>(getProjects()));
}
Aggregations