tempProps.load(in);
System.out.println("Loaded " + tempProps.keySet() + " from " + propPath);
CollectionUtils.mergePropertiesIntoMap(tempProps, misoProps);
}
catch (IOException e) {
throw new InvalidPropertyException(MisoPropertyExporter.class, "All", "Cannot load " + baseStoragePath+propPath + " properties. Cannot read file!");
}
}
catch (FileNotFoundException e) {
throw new InvalidPropertyException(MisoPropertyExporter.class, "All", "Cannot load " + baseStoragePath+propPath + " properties. File does not exist!");
}
}
super.processProperties(beanFactoryToProcess, misoProps);
resolvedProperties = new HashMap<String, String>();
for (Object key : misoProps.keySet()) {
String keyStr = key.toString();
//doesn't seem to resolve properties properly - just end up null
//resolvedProperties.put(keyStr, resolvePlaceholder(props.getProperty(keyStr), props, SYSTEM_PROPERTIES_MODE_OVERRIDE));
resolvedProperties.put(keyStr, misoProps.getProperty(keyStr));
}
}
else {
throw new InvalidPropertyException(MisoPropertyExporter.class,
"miso.baseDirectory",
"Cannot resolve miso.baseDirectory. This should be specified in the " +
"miso.properties file which should be made available on the classpath.");
}
}