public boolean load()

in src/main/java/com/googlesource/gerrit/plugins/rabbitmq/config/PluginProperties.java [77:104]


  public boolean load(Properties baseProperties) {
    initialize();
    logger.atInfo().log("Loading %s", propertiesFile);
    if (!Files.exists(propertiesFile)) {
      logger.atWarning().log("No %s", propertiesFile);
      return false;
    }

    FileBasedConfig cfg = new FileBasedConfig(propertiesFile.toFile(), FS.DETECTED);
    try {
      cfg.load();
    } catch (ConfigInvalidException e) {
      logger.atInfo().log("%s has invalid format: %s", propertiesFile, e.getMessage());
      return false;
    } catch (IOException e) {
      logger.atInfo().log("Cannot read %s: %s", propertiesFile, e.getMessage());
      return false;
    }
    for (Section section : getSections()) {
      if (baseProperties != null) {
        Sections.fromConfig(section, baseProperties.toConfig(), cfg);
      } else {
        Sections.fromConfig(section, cfg);
      }
      Sections.normalize(section);
    }
    return true;
  }