public VSONotificatorConfig()

in server/src/jetbrains/buildServer/vsoRooms/notificator/VSONotificatorConfig.java [40:55]


  public VSONotificatorConfig(@NotNull ServerPaths serverPaths) throws IOException {
    final File configDir = new File(serverPaths.getConfigDir(), FreeMarkerHelper.TEMPLATES_ROOT + "/" + Constants.NOTIFICATOR_TYPE);
    configDir.mkdirs();
    myConfigFile = new File(configDir, CONFIG_FILENAME);
    FileUtil.copyResourceIfNotExists(getClass(), "/message_templates/" + CONFIG_FILENAME, myConfigFile);
    reloadConfiguration();

    copyMessageTemplates(configDir);

    myChangeObserver = new FileWatcher(myConfigFile);
    myChangeObserver.setSleepingPeriod(10000);
    myChangeObserver.registerListener(this);
    myChangeObserver.start();

    myConfiguration = FreeMarkerHelper.getConfiguration(serverPaths);
  }