Properties edit doesn't conserve the existing ones
Now it use the existing file and performs the specified changes.
@@ -1076,15 +1076,6 @@ public class Builder {
}
}
- // 'improve' configuration files.
- if (propertyEdits != null) {
- KarafPropertiesEditor editor = new KarafPropertiesEditor();
- editor.setInputEtc(etcDirectory.toFile())
- .setOutputEtc(etcDirectory.toFile())
- .setEdits(propertyEdits);
- editor.run();
- }
-
if (processor.hasInstructions()) {
Path featuresProcessingXml = etcDirectory.resolve("org.apache.karaf.features.xml");
if (hasOwnInstructions() || overrides.size() > 0) {
@@ -1114,6 +1105,15 @@ public class Builder {
// Installed stage
//
installStage(installedProfile, allBootFeatures, processor);
+
+ // 'improve' configuration files.
+ if (propertyEdits != null) {
+ KarafPropertiesEditor editor = new KarafPropertiesEditor();
+ editor.setInputEtc(etcDirectory.toFile())
+ .setOutputEtc(etcDirectory.toFile())
+ .setEdits(propertyEdits);
+ editor.run();
+ }
}
/**
