Example usage for org.eclipse.jgit.lib Constants OS_USER_NAME_KEY

List of usage examples for org.eclipse.jgit.lib Constants OS_USER_NAME_KEY

Introduction

In this page you can find the example usage for org.eclipse.jgit.lib Constants OS_USER_NAME_KEY.

Prototype

String OS_USER_NAME_KEY

To view the source code for org.eclipse.jgit.lib Constants OS_USER_NAME_KEY.

Click Source Link

Document

The system property that contains the system user name

Usage

From source file:org.eclipse.emf.compare.diagram.papyrus.tests.egit.fixture.MockSystemReader.java

License:Eclipse Distribution License

public MockSystemReader() {
    init(Constants.OS_USER_NAME_KEY);
    init(Constants.GIT_AUTHOR_NAME_KEY);
    init(Constants.GIT_AUTHOR_EMAIL_KEY);
    init(Constants.GIT_COMMITTER_NAME_KEY);
    init(Constants.GIT_COMMITTER_EMAIL_KEY);
    userGitConfig = new MockConfig(null, null);
    systemGitConfig = new MockConfig(null, null);
    setCurrentPlatform();//from w ww. ja v a2s  .c  o m
}

From source file:org.jboss.tools.openshift.egit.internal.test.util.MockSystemReader.java

License:Eclipse Distribution License

public MockSystemReader() {
    init(Constants.OS_USER_NAME_KEY);
    init(Constants.GIT_AUTHOR_NAME_KEY);
    init(Constants.GIT_AUTHOR_EMAIL_KEY);
    init(Constants.GIT_COMMITTER_NAME_KEY);
    init(Constants.GIT_COMMITTER_EMAIL_KEY);
    userGitConfig = new MockConfig(null, null);
    systemGitConfig = new MockConfig(null, null);
}