留言板
Override hook properties by server properties.
Franz Hildt,修改在7 年前。
Override hook properties by server properties.
New Member 帖子: 11 加入日期: 15-2-19 最近的帖子
Hello @all,
i have an override hook with a properties file.
My goal is to override these properties by the properties of the tomcat/conf/portal-server.properties file.
I tried add include-and-override=${liferay.home}/conf/portal-server.properties to the properties of the hook but it seems not to work.
Has somebody an idea?
i have an override hook with a properties file.
My goal is to override these properties by the properties of the tomcat/conf/portal-server.properties file.
I tried add include-and-override=${liferay.home}/conf/portal-server.properties to the properties of the hook but it seems not to work.
Has somebody an idea?
David H Nebinger,修改在7 年前。
RE: Override hook properties by server properties.
Liferay Legend 帖子: 14916 加入日期: 06-9-2 最近的帖子
${liferay.home} != tomcat.
Include and override uses the classpath to find files, hence using portal-ext.properties (without a path) finds it in ${liferay.home} or ROOT/WEB-INF/classes or anywhere else that is part of the class path.
Include and override uses the classpath to find files, hence using portal-ext.properties (without a path) finds it in ${liferay.home} or ROOT/WEB-INF/classes or anywhere else that is part of the class path.
Dr. Who,修改在7 年前。
RE: Override hook properties by server properties.
New Member 帖子: 11 加入日期: 15-2-19 最近的帖子
Thank you .
Alle the files inside conf/*.properties are merged and stored as ${liferay.home} /portal-ext.properties.
include-and-override=${liferay.home} /portal-ext.properties done the job.
Alle the files inside conf/*.properties are merged and stored as ${liferay.home} /portal-ext.properties.
include-and-override=${liferay.home} /portal-ext.properties done the job.