in src/main/java/com/googlesource/gerrit/plugins/gitblit/app/GitBlitSettings.java [93:107]
private InputStream openPropertiesFile() {
InputStream gitblitPropertiesIn;
gitblitPropertiesFile = new File(etcDir, GITBLIT_GERRIT_PROPERTIES);
if (gitblitPropertiesFile.exists()) {
try {
gitblitPropertiesIn = new FileInputStream(gitblitPropertiesFile);
} catch (FileNotFoundException e) {
// this would never happen as we checked for file existence before
throw new IllegalStateException(e);
}
} else {
gitblitPropertiesIn = getClass().getResourceAsStream(GITBLIT_GERRIT_PROPERTIES);
}
return gitblitPropertiesIn;
}