Better integration with fileinstall and configs
@@ -115,6 +115,16 @@ public class FeatureConfigInstaller {
cfg = createConfiguration(configAdmin, pid[0], pid[1]);
String key = createConfigurationKey(pid[0], pid[1]);
cfgProps.put(CONFIG_KEY, key);
+ props.put(CONFIG_KEY, key);
+ if (storage != null && configCfgStore) {
+ File cfgFile;
+ if (pid[1] != null) {
+ cfgFile = new File(storage, pid[0] + "-" + pid[1] + ".cfg");
+ } else {
+ cfgFile = new File(storage, pid[0] + ".cfg");
+ }
+ cfgProps.put(FILEINSTALL_FILE_NAME, cfgFile.getAbsoluteFile().toURI().toString());
+ }
cfg.update(cfgProps);
try {
updateStorage(pid[0], pid[1], props, false);
