Centralized Properties Customization
This feature gives the ability to add, modify, and remove properties in one file. The properties are propagated to the specified property files. The template process, which is part of the initialSetup step, will look at the files etc/cm_properties.ini (this can be created as a Customer Customization), if the file exists the content will be processed for the relevant properties.
Note: Product teams might use this file format: etc/<PROD>_properties.ini (where <PROD> could be one of the list of installed products included in etc/PRODUCT.txt). If it exits it will be processed as well.
cm_properties.ini Instructions
Type of entries that could be included into cm_properties.ini and relevant type of action:
<PROPERTIES_FILE>:<PROPERTY_NAME>=<VALUE>
• Override <PROPERTY_NAME> in <PROPERTIES_FILE> with <VALUE>, if exists.
• Insert <PROPERTY_NAME> in <PROPERTIES_FILE> with <VALUE>, if does not exist.
<PROPERTY_NAME>=<VALUE>
• Override <PROPERTY_NAME> in all property files with <VALUE>, if <PROPERTY_NAME> exists.
<PROPERTIES_FILE>:<PROPERTY_NAME>=[DELETE]
• Remove <PROPERTY_NAME> from <PROPERTIES_FILE>, if exists.
<PROPERTY_NAME>=[DELETE]
• Remove <PROPERTY_NAME> from all property files, if <PROPERTY_NAME> exists.
Property Overriding Example
Template spl.properties.template property:
com.splwg.schema.newValidations.F1=false
cm_properties.ini content:
spl.properties.template:com.splwg.schema.newValidations.F1=true
spl.properties (generated properties file result):
### The following line was overridden because <PROD>_properties.ini file setting: com.splwg.schema.newValidations.F1 = true