List of usage examples for org.eclipse.jgit.lib StoredConfig getBoolean
public boolean getBoolean(final String section, final String name, final boolean defaultValue)
From source file:com.gitblit.GitBlit.java
License:Apache License
/** * Returns the gitblit boolean value for the specified key. If key is not * set, returns defaultValue./* w w w. j av a 2 s .co m*/ * * @param config * @param field * @param defaultValue * @return field value or defaultValue */ private boolean getConfig(StoredConfig config, String field, boolean defaultValue) { return config.getBoolean(Constants.CONFIG_GITBLIT, field, defaultValue); }