diff --git a/cobigen/cobigen-propertyplugin/pom.xml b/cobigen/cobigen-propertyplugin/pom.xml
index 151aae46ff..ef163c65ac 100644
--- a/cobigen/cobigen-propertyplugin/pom.xml
+++ b/cobigen/cobigen-propertyplugin/pom.xml
@@ -2,7 +2,7 @@
4.0.0
propertyplugin
jar
- 2.1.0
+ 7.0.0
CobiGen - Property File Plug-In
CobiGen - Property File Plug-In
@@ -20,14 +20,14 @@
com.devonfw.cobigen
core-api
- 5.0.0
+ [7.0.0,)
com.devonfw.cobigen
core-test
- 5.0.0
+ [7.0.0,)
test
diff --git a/cobigen/cobigen-propertyplugin/src/main/java/com/devonfw/cobigen/propertyplugin/PropertyMergerPluginActivator.java b/cobigen/cobigen-propertyplugin/src/main/java/com/devonfw/cobigen/propertyplugin/PropertyMergerPluginActivator.java
index bcf557e4c5..7b0640697b 100644
--- a/cobigen/cobigen-propertyplugin/src/main/java/com/devonfw/cobigen/propertyplugin/PropertyMergerPluginActivator.java
+++ b/cobigen/cobigen-propertyplugin/src/main/java/com/devonfw/cobigen/propertyplugin/PropertyMergerPluginActivator.java
@@ -2,6 +2,7 @@
import java.util.List;
+import com.devonfw.cobigen.api.annotation.Activation;
import com.devonfw.cobigen.api.extension.GeneratorPluginActivator;
import com.devonfw.cobigen.api.extension.Merger;
import com.devonfw.cobigen.api.extension.TriggerInterpreter;
@@ -10,13 +11,21 @@
/**
* Plug-in activator to be registered in CobiGen's PluginRegistry
*/
+@Activation(byMergeStrategy = { PropertyMergerPluginActivator.PROPERTYMERGE,
+ PropertyMergerPluginActivator.PROPERTYMERGE_OVERRIDE })
public class PropertyMergerPluginActivator implements GeneratorPluginActivator {
+ /** Property File Merge Strategy (prefer patch) */
+ static final String PROPERTYMERGE_OVERRIDE = "propertymerge_override";
+
+ /** Property File Merge Strategy (prefer base) */
+ static final String PROPERTYMERGE = "propertymerge";
+
@Override
public List bindMerger() {
List merger = Lists.newLinkedList();
- merger.add(new PropertyMerger("propertymerge", false));
- merger.add(new PropertyMerger("propertymerge_override", true));
+ merger.add(new PropertyMerger(PROPERTYMERGE, false));
+ merger.add(new PropertyMerger(PROPERTYMERGE_OVERRIDE, true));
return merger;
}
diff --git a/documentation/master-cobigen.asciidoc b/documentation/master-cobigen.asciidoc
index 1beeb2070f..249c55cfaa 100644
--- a/documentation/master-cobigen.asciidoc
+++ b/documentation/master-cobigen.asciidoc
@@ -21,7 +21,7 @@ DISCLAIMER: All Cobigen plugins are compatible with the latest release of Devonf
* CobiGen - Java Plug-in v7.0.0
* CobiGen - XML Plug-in v7.0.0
* CobiGen - TypeScript Plug-in v7.0.0
-* CobiGen - Property Plug-in v2.1.0
+* CobiGen - Property Plug-in v7.0.0
* CobiGen - Text Merger v2.1.0
* CobiGen - JSON Plug-in v7.0.0
* CobiGen - HTML Plug-in v7.0.0