| | |
| | |
|
| | | public static final String RAW_PATH = "/raw/";
|
| | |
|
| | | public static final String PT_PATH = "/pt";
|
| | |
|
| | | public static final String BRANCH_GRAPH_PATH = "/graph/";
|
| | |
|
| | | public static final String BORDER = "*****************************************************************";
|
| | |
| | |
|
| | | public static final String R_TICKETS_PATCHSETS = "refs/tickets/";
|
| | |
|
| | | public static final String R_MASTER = "refs/heads/master";
|
| | |
|
| | | public static final String MASTER = "master";
|
| | |
|
| | | public static final String R_DEVELOP = "refs/heads/develop";
|
| | |
|
| | | public static final String DEVELOP = "develop";
|
| | |
|
| | | public static String getVersion() {
|
| | | String v = Constants.class.getPackage().getImplementationVersion();
|
| | | if (v == null) {
|
| | |
| | |
|
| | | public static String getBuildDate() {
|
| | | return getManifestValue("build-date", "PENDING");
|
| | | }
|
| | |
|
| | | public static String getASCIIArt() {
|
| | | StringBuilder sb = new StringBuilder();
|
| | | sb.append(" _____ _ _ _ _ _ _").append('\n');
|
| | | sb.append(" | __ \\(_)| | | | | |(_)| |").append('\n');
|
| | | sb.append(" | | \\/ _ | |_ | |__ | | _ | |_").append('\n');
|
| | | sb.append(" | | __ | || __|| '_ \\ | || || __|").append(" ").append("http://gitblit.com").append('\n');
|
| | | sb.append(" | |_\\ \\| || |_ | |_) || || || |_").append(" ").append("@gitblit").append('\n');
|
| | | sb.append(" \\____/|_| \\__||_.__/ |_||_| \\__|").append(" ").append(Constants.getVersion()).append('\n');
|
| | | return sb.toString();
|
| | | }
|
| | |
|
| | | private static String getManifestValue(String attrib, String defaultValue) {
|
| | |
| | | /**
|
| | | * Enumeration of the feed content object types.
|
| | | */
|
| | | public static enum FeedContentObjectType {
|
| | | public static enum FeedObjectType {
|
| | | COMMIT, TAG;
|
| | |
|
| | | public static FeedContentObjectType forName(String name) {
|
| | | for (FeedContentObjectType type : values()) {
|
| | | public static FeedObjectType forName(String name) {
|
| | | for (FeedObjectType type : values()) {
|
| | | if (type.name().equalsIgnoreCase(name)) {
|
| | | return type;
|
| | | }
|