static Config loadConfig()

in src/main/java/com/ericsson/gerrit/plugins/gcconductor/executor/GcExecutor.java [135:150]


  static Config loadConfig() {
    String configPath = System.getProperty(CONFIG_FILE_PROPERTY);
    if (configPath != null) {
      FileBasedConfig config = new FileBasedConfig(new File(configPath), FS.DETECTED);
      try {
        config.load();
        return config;
      } catch (IOException | ConfigInvalidException e) {
        log.error(
            "Unable to load configuration from file {}. Default values will be used.",
            configPath,
            e);
      }
    }
    return new Config();
  }