in taverna-configuration-impl/src/main/java/org/apache/taverna/configuration/impl/ConfigurationManagerImpl.java [61:77]
public void store(Configurable configurable) throws Exception {
try {
Map<String, String> propertyMap = configurable.getInternalPropertyMap();
Properties props = new Properties();
for (String key : propertyMap.keySet()) {
if (!propertyMap.get(key).equals(configurable.getDefaultProperty(key))) {
props.put(key, propertyMap.get(key));
}
}
File configFile = new File(baseConfigLocation,generateFilename(configurable));
logger.info("Storing configuration for "+configurable.getFilePrefix()+" to "+configFile.getAbsolutePath());
props.store(new FileOutputStream(configFile), "");
} catch (Exception e) {
throw new Exception("Configuration storage failed: " + e);
}
}