All Downloads are FREE. Search and download functionalities are using the official Maven repository.

net.aequologica.neo.shakuntala.Constants Maven / Gradle / Ivy

There is a newer version: 0.6.7
Show newest version
package net.aequologica.neo.shakuntala;

import java.io.IOException;

import net.aequologica.neo.geppaequo.git.GitRepositoryState;

public class Constants {

    public static final String GUID ="BA6BEA17-0E5B-4928-820C-EC45DFFB4E7F";
    public static final GitRepositoryState GIT_REPOSITORY_STATE;

    private static final String toString;

    static {
        StringBuilder b = new StringBuilder();
        b.append("[shakuntala] is '");
        b.append(GUID);
        b.append("'");

        GitRepositoryState tmp = null;
        try {
            tmp = new GitRepositoryState("shakuntala-core");
            b.append("\n[shakuntala] | ");
            b.append(tmp. getRemoteOrigin());
            b.append("\n[shakuntala] | commit ");
            b.append(tmp. getCommitId());
            /* b.append("\n[shakuntala] | Author: ");
            b.append(tmp.getCommitUserName());
            b.append("\n[shakuntala] | Date: ");
            b.append(tmp.getCommitTime()); */
            b.append("\n[shakuntala] | ");
            b.append("\n[shakuntala] | ");
            b.append(tmp.getCommitMessageShort());
            b.append("\n[shakuntala] +----------------------------------------------------------------------");
        } catch (Exception e) {
            tmp = null;
        } finally {
            GIT_REPOSITORY_STATE = tmp;
        }

        toString = b.toString();
    }

    public static String staticToString() {
        return toString;
    }

    public static void main(String[] args) throws IOException {
        System.out.println(Constants.staticToString());
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy