org.springframework.boot.ansi.AnsiStyle Java Examples
The following examples show how to use
org.springframework.boot.ansi.AnsiStyle.
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: Banner.java From tomato with Apache License 2.0 | 6 votes |
private static void printVersion() { System.out.println(); PrintStream printStream = System.out; String version = Banner.getVersion(); version = version != null ? " (v" + version + ")" : ""; StringBuilder padding = new StringBuilder(); while(padding.length() < 42 - (version.length() + name.length())) { padding.append(" "); } printStream.println(AnsiOutput.toString(new Object[]{AnsiColor.BRIGHT_RED, defaultBanner, AnsiColor.DEFAULT, padding.toString(), AnsiStyle.FAINT})); printStream.println(); printStream.println(AnsiOutput.toString(new Object[]{AnsiColor.GREEN, " :: Tomato :: ", AnsiColor.DEFAULT, padding.toString(), AnsiStyle.FAINT, version})); printStream.println(); }
Example #2
Source File: SpringBootBanner.java From oneplatform with Apache License 2.0 | 6 votes |
@Override public void printBanner(Environment environment, Class<?> sourceClass, PrintStream printStream) { for (String line : BANNER) { printStream.println(line); } String version = SpringBootVersion.getVersion(); version = (version == null ? "" : " (v" + version + ")"); String padding = ""; while (padding.length() < STRAP_LINE_SIZE - (version.length() + SPRING_BOOT.length())) { padding += " "; } printStream.println(AnsiOutput.toString(AnsiColor.GREEN, SPRING_BOOT, AnsiColor.DEFAULT, padding, AnsiStyle.FAINT, version)); printStream.println(); }
Example #3
Source File: InceptionBanner.java From inception with Apache License 2.0 | 5 votes |
@Override public void printBanner(Environment environment, Class<?> sourceClass, PrintStream printStream) { for (String line : BANNER) { printStream.println(line); } String version = SettingsUtil.getVersionString(); printStream.println(AnsiOutput.toString(AnsiColor.GREEN, AnsiStyle.FAINT, version)); printStream.println(); }
Example #4
Source File: WebAnnoBanner.java From webanno with Apache License 2.0 | 5 votes |
@Override public void printBanner(Environment environment, Class<?> sourceClass, PrintStream printStream) { for (String line : BANNER) { printStream.println(line); } String version = SettingsUtil.getVersionString(); printStream.println(AnsiOutput.toString(AnsiColor.GREEN, AnsiStyle.FAINT, version)); printStream.println(); }