return getManifestValue("build-date", "PENDING");\r
}\r
\r
+ public static String getASCIIArt() {\r
+ StringBuilder sb = new StringBuilder();\r
+ sb.append(" _____ _ _ _ _ _ _").append('\n');\r
+ sb.append(" | __ \\(_)| | | | | |(_)| |").append('\n');\r
+ sb.append(" | | \\/ _ | |_ | |__ | | _ | |_").append('\n');\r
+ sb.append(" | | __ | || __|| '_ \\ | || || __|").append(" ").append("http://gitblit.com").append('\n');\r
+ sb.append(" | |_\\ \\| || |_ | |_) || || || |_").append(" ").append("@gitblit").append('\n');\r
+ sb.append(" \\____/|_| \\__||_.__/ |_||_| \\__|").append(" ").append(Constants.getVersion()).append('\n');\r
+ return sb.toString();\r
+ }\r
+\r
private static String getManifestValue(String attrib, String defaultValue) {\r
Class<?> clazz = Constants.class;\r
String className = clazz.getSimpleName() + ".class";\r
}
logger = LoggerFactory.getLogger(GitBlitServer.class);
- logger.info(Constants.BORDER);
- logger.info(" _____ _ _ _ _ _ _");
- logger.info(" | __ \\(_)| | | | | |(_)| |");
- logger.info(" | | \\/ _ | |_ | |__ | | _ | |_");
- logger.info(" | | __ | || __|| '_ \\ | || || __|");
- logger.info(" | |_\\ \\| || |_ | |_) || || || |_");
- logger.info(" \\____/|_| \\__||_.__/ |_||_| \\__|");
- int spacing = (Constants.BORDER.length() - Constants.getGitBlitVersion().length()) / 2;
- StringBuilder sb = new StringBuilder();
- while (spacing > 0) {
- spacing--;
- sb.append(' ');
- }
- logger.info(sb.toString() + Constants.getGitBlitVersion());
- logger.info("");
- logger.info(Constants.BORDER);
+ logger.info("\n" + Constants.getASCIIArt());
System.setProperty("java.awt.headless", "true");