org.gradle.api.tasks.diagnostics.internal.text.TextReportBuilder Java Examples
The following examples show how to use
org.gradle.api.tasks.diagnostics.internal.text.TextReportBuilder.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: ComponentRenderer.java From pushfish-android with BSD 2-Clause "Simplified" License | 5 votes |
@Override public void render(ComponentSpec component, TextReportBuilder builder) { builder.subheading(StringUtils.capitalize(component.getDisplayName())); builder.getOutput().println(); builder.collection("Source sets", component.getSource(), sourceSetRenderer, "source sets"); builder.getOutput().println(); builder.collection("Binaries", CollectionUtils.sort(component.getBinaries(), new Comparator<BinarySpec>() { public int compare(BinarySpec binary1, BinarySpec binary2) { return binary1.getName().compareTo(binary2.getName()); } }), renderer, "binaries"); }
Example #2
Source File: SourceSetRenderer.java From pushfish-android with BSD 2-Clause "Simplified" License | 5 votes |
@Override public void render(LanguageSourceSet sourceSet, TextReportBuilder builder) { StyledTextOutput textOutput = builder.getOutput(); textOutput.println(StringUtils.capitalize(sourceSet.getDisplayName())); Set<File> srcDirs = sourceSet.getSource().getSrcDirs(); if (srcDirs.isEmpty()) { textOutput.println(" No source directories"); } else { for (File file : srcDirs) { textOutput.formatln(" %s", fileResolver.resolveAsRelativePath(file)); } } }
Example #3
Source File: ComponentRenderer.java From Pushjet-Android with BSD 2-Clause "Simplified" License | 5 votes |
@Override public void render(ComponentSpec component, TextReportBuilder builder) { builder.subheading(StringUtils.capitalize(component.getDisplayName())); builder.getOutput().println(); builder.collection("Source sets", component.getSource(), sourceSetRenderer, "source sets"); builder.getOutput().println(); builder.collection("Binaries", CollectionUtils.sort(component.getBinaries(), new Comparator<BinarySpec>() { public int compare(BinarySpec binary1, BinarySpec binary2) { return binary1.getName().compareTo(binary2.getName()); } }), renderer, "binaries"); }
Example #4
Source File: SourceSetRenderer.java From Pushjet-Android with BSD 2-Clause "Simplified" License | 5 votes |
@Override public void render(LanguageSourceSet sourceSet, TextReportBuilder builder) { StyledTextOutput textOutput = builder.getOutput(); textOutput.println(StringUtils.capitalize(sourceSet.getDisplayName())); Set<File> srcDirs = sourceSet.getSource().getSrcDirs(); if (srcDirs.isEmpty()) { textOutput.println(" No source directories"); } else { for (File file : srcDirs) { textOutput.formatln(" %s", fileResolver.resolveAsRelativePath(file)); } } }
Example #5
Source File: TextReportRenderer.java From pushfish-android with BSD 2-Clause "Simplified" License | 4 votes |
public TextReportBuilder getBuilder() { return builder; }
Example #6
Source File: TextReportRenderer.java From javaide with GNU General Public License v3.0 | 4 votes |
public TextReportBuilder getBuilder() { return builder; }
Example #7
Source File: TextReportRenderer.java From Pushjet-Android with BSD 2-Clause "Simplified" License | 4 votes |
public TextReportBuilder getBuilder() { return builder; }