When Liferay starts it loads few property files from portal-impl.jar. One of them is portal.properties.
To override the properties in this we use portal-ext.properties file in Liferay Home
ILoading jar:file:/C:/liferay-portal-6.2-ee-sp8/tomcat-7.0.42/webapps/ROOT/WEB-IN
F/lib/portal-impl.jar!/system.properties
Loading jar:file:/C:/liferay-portal-6.2-ee-sp8/tomcat-7.0.42/webapps/ROOT/WEB-IN
F/lib/portal-impl.jar!/portal.properties
Loading jar:file:/C:/liferay-portal-6.2-ee-sp8/tomcat-7.0.42/webapps/ROOT/WEB-IN
F/lib/portal-impl.jar!/portal-patched.properties
Loading file:/C:/liferay-portal-6.2-ee-sp8/portal-ext.properties
Loading jar:file:/C:/liferay-portal-6.2-ee-sp8/tomcat-7.0.42/webapps/ROOT/WEB-IN
F/lib/portal-impl.jar!/system.properties
Dec 02, 2014 6:42:58 PM org.apache.catalina.core.ApplicationContext log
The order liferay loads properties is
#
# Specify where to get the overridden properties. Updates should not be made
# on portal.properties or on portal-bundle.properties, but in
# portal-ext.properties.
#
# The default read order is: portal.properties, portal-bundle.properties,
# portal-ext.properties, and then portal-setup-wizard.properties.
#
include-and-override=portal-bundle.properties
include-and-override=${liferay.home}/portal-bundle.properties
include-and-override=portal-patched.properties
include-and-override=${liferay.home}/portal-patched.properties
include-and-override=portal-ext.properties
include-and-override=${liferay.home}/portal-ext.properties
include-and-override=portal-setup-wizard.properties
include-and-override=${liferay.home}/portal-setup-wizard.properties
No comments:
Post a Comment