Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
334 views
in Technique[技术] by (71.8m points)

properties - Liferay: How to configure Liferay Portal

How to configure or to override Liferay portal properties with portal.properties?

See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)

Liferay properties is powerful instrument that allows us to configure Portal behaviour without coding of hooks-, ext- and theme-plugin. By new requirement we proof at first for possibility to solve this requirement with change of Liferay configuration. The default properties configuration can be found at Liferay source code: https://github.com/liferay/liferay-portal/blob/master/portal-impl/src/portal.properties or in https://github.com/liferay/liferay-portal/blob/master/portal-impl/src/portal.properties or in liferay-bundlesomcat-7webappsROOTWEB-INFlibportal-impl.jar

To configure or to override configuration properties of Liferay portal we have to create portal-ext.properties at root folder of Liferay (bundled with tomcat).

Liferay
|-data
|-deploy
|-license
|-logs
|-tomcat-7.xxx
|-portal-ext.propeties        <- override portal properties
|-portal-${user}.propeties    <- override user specific properties

Usual we work in team with version control systems like git or svn, and developers have different configuration like database path etc. Liferay allows to configure user specific configuration in e.g. portal-${user}.properties. Therefor put at first to the portal-ext.properties the inclusion of user properties:

include-and-override = ${default.liferay.home}/portal-${user.name}.properties

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...