我想覆盖我的以下属性portal-ext.properties
:
sites.email.membership.reply.subject=com/liferay/portlet/sites/dependencies/email_membership_reply_subject.tmpl
sites.email.membership.reply.body=com/liferay/portlet/sites/dependencies/email_membership_reply_body.tmpl
sites.email.membership.request.subject=com/liferay/portlet/sites/dependencies/email_membership_request_subject.tmpl
sites.email.membership.request.body=com/liferay/portlet/sites/dependencies/email_membership_request_body.tmpl
像这样:
sites.email.membership.reply.subject=com/krishna/email_membership_reply_subject.tmpl
sites.email.membership.reply.body=com/krishna/email_membership_reply_body.tmpl
sites.email.membership.request.subject=com/krishna/email_membership_request_subject.tmpl
sites.email.membership.request.body=com/krishna/email_membership_request_body.tmpl
我已经在 in 中完成了此操作EXT
,即我已经创建了 package: ext-impl/src/com/krishna/
inEXT-plugin
并且它工作正常,但我无法在hook
or中执行此操作portlet
。为什么?因为它给了我例外:
java.io.IOException: Unable to open resource in class loader com/krishna/email_membership_request_subject.tmpl
所以,我的问题是:有没有办法在 hook 或 portlet 中做到这一点,或者只能使用 EXT?
谢谢