コード例 #1
0
 public CruiseConfig loadForEdit() {
   try {
     goConfigDao.forceReload();
     return new Cloner().deepClone(goConfigDao.loadForEditing());
   } catch (Exception e) {
     throw new RuntimeException(e);
   }
 }
コード例 #2
0
 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());
 }
コード例 #3
0
 public void writeXmlToConfigFile(String xml) {
   try {
     FileUtils.writeStringToFile(configFile, xml);
     goConfigDao.forceReload();
   } catch (Exception e) {
     throw bomb("Error writing config file: " + configFile.getAbsolutePath(), e);
   }
 }