public CruiseConfig loadForEdit() { try { goConfigDao.forceReload(); return new Cloner().deepClone(goConfigDao.loadForEditing()); } catch (Exception e) { throw new RuntimeException(e); } }
public void onSetUp() throws IOException { initializeConfigFile(); goConfigDao.forceReload(); writeConfigFile(load()); originalConfigDir = sysEnv.getConfigDir(); File configDir = configFile.getParentFile(); sysEnv.setProperty(SystemEnvironment.CONFIG_DIR_PROPERTY, configDir.getAbsolutePath()); }
public void writeXmlToConfigFile(String xml) { try { FileUtils.writeStringToFile(configFile, xml); goConfigDao.forceReload(); } catch (Exception e) { throw bomb("Error writing config file: " + configFile.getAbsolutePath(), e); } }