use of org.gradle.internal.logging.ConsoleRenderer 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()));
}
use of org.gradle.internal.logging.ConsoleRenderer in project gradle by gradle.
the class ReportGeneratingProfileListener method renderReportUrl.
private void renderReportUrl(File reportFile) {
StyledTextOutput textOutput = textOutputFactory.create(ReportGeneratingProfileListener.class, LogLevel.LIFECYCLE);
textOutput.println();
String reportUrl = new ConsoleRenderer().asClickableFileUrl(reportFile);
textOutput.formatln("See the profiling report at: %s", reportUrl);
}
Aggregations