问题描述
在部署liferay war文件之前,portal-ext.properties文件在哪里?
Where does the portal-ext.properties file go before the liferay war file is deployed?
推荐答案
通常是您的应用服务器所在的文件夹.如果我没记错的话,glassfish通常有两个嵌套的"glassfish"文件夹-在第一个文件夹中.
It's typically the folder where your appserver resides. if I remember correctly, glassfish typically has two nested "glassfish" folder - there it'd be within the first.
探索自己(并确保自己)的最佳方法是将portal-ext.properties放在您可能会想到的每个位置,然后启动服务器并检查日志.其中提到正在读取哪个文件.
The best way to explore that yourself (and to be sure) is to put your portal-ext.properties in every location you guess it might be, then startup the server and examine the log. There it mentions which file is being read.
此外,如果在用户的主目录中找到AFAIK portal-ext.properties,也会从用户的主目录中读取它-小心,当您运行诸如glassfish之类的服务器时,该用户帐户可能与您的用户帐户不同.
Also, AFAIK portal-ext.properties will also be read from the user's home directory if found there - careful, when you run a server like glassfish, that might be a different user account than your own.
这篇关于Liferay + Glassfish 3.1.1 portal-ext.properties文件的位置?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!