Customizing Centralized Properties
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 file etc/cm_properties.ini (this can be created as a Customer Customization). If the file exists the content is processed for the relevant properties.
Note: Use the file format: etc/<PROD>_properties.ini (where <PROD> is the product included in etc/PRODUCT.txt).
cm_properties.ini examples
The type of entries 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> it doesn't exists.
<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.
Template example: hibernate.service.properties.template
hibernate.user = @DBUSER@
hibernate.pass = @DBPASS@
hibernate.ucp.validate_connection = true
 
ENVIRON.INI example:
DBUSER=cisadm
cm_properties.ini example:
hibernate.service.properties.template:hibernate.user=clouduser
hibernate.password=cloudpwd
hibernate.iws.properties.template:hibernate.user=clouduser
hibernate.service.properties.template:hibernate.ucp.validate_connection=[DELETE]
hibernate.service.properties.template:new.property=test
 
hibernate.service.properties generated properties file result:
### The following line was overridden because <PROD>_properties.ini file setting:
hibernate.user=clouduser
### The following line was overridden because <PROD>_properties.ini file setting:
hibernate.password=cloudpwd
### The following line was deleted because <PROD>_properties.ini file setting:
# hibernate.ucp.validate_connection = true
### The following line was appended because <PROD>_properties.ini file setting:
new.property = test
 
hibernate.iws.properties generated properties file result:
### The following line was overridden because <PROD>_properties.ini file setting:
hibernate.user=clouduser
### The following line was overridden because <PROD>_properties.ini file setting:
hibernate.password=cloudpwd