Skip to main content

Posts

Showing posts from 2019

Beanshell/Groovy example - Change Local.properties permanently using script

Sometimes we need to change some of values defined for properties key in local.properties/project.properties. There are three ways to do it Update via HAC Update Local.properties Update using beanshell/groovy script If we use the first process, after server re-start, changes will go. So, the value will remain in the system memory till the server got re-started. Here, will give an example how to change local.properties and changes remain even after rebuild. Run the below script in the HAC script tab with "commit" on. import org.apache.commons.configuration.PropertiesConfiguration; import java.io.File; import java.io.IOException; import java.net.URI; import java.net.URISyntaxException; //The new value to be stored in the key/value pair in local.properties. String changedValue = "NEW_VALUE"; //Key name in the local.properties String propertyName = "test.properties.value"; PropertiesConfiguration config = new PropertiesConfiguratio...

SAP Commerce License

There are two types of license for SAP commerce application. Temporary license (valid for 90 days). Permanent license Will discuss how to install both the type of license one by one. Before that, let’s discuss few details about the SAP Commerce License. ·        Unlike other SAP products, SAP commerce license is not used for any specific H/W. So, the field HARDWARE-KEY in the license file is filled with some preset values. ·        Usually customer will choose three letter system ID (SID – SAPSYSTEM) while creating the SAP license. This SID must be configured in the local.properties # System ID license.sap.sapsystem=XYZ If this is omitted, system will think that CPS as the default value. Installing the temporary license ·        Run license.bat from the platform folder license.bat -temp CPS_SQL In the above, license type is temporary (-temp) for the dev environm...