留言板

Bug or feature?

Alberto Eles Fernandez,修改在12 年前。

Bug or feature?

New Member 帖子: 9 加入日期: 12-1-18 最近的帖子
When I add a hook into "deploy" folder, if the hook already exist in "webapps" folder, it adds its content to the "ROOT" folder. Thats intentional or a bug?
thumbnail
Pankaj Kathiriya,修改在12 年前。

RE: Bug or feature?

Liferay Master 帖子: 722 加入日期: 10-8-5 最近的帖子
Hi Alberto Eles Fernandez,

When you deploy hook whichever jsps it contains are copied to ROOT/html/.... and thus you can customize Liferay's Out of Box features.

This is not bug.


Thanks,
Pankaj
thumbnail
David H Nebinger,修改在12 年前。

RE: Bug or feature?

Liferay Legend 帖子: 14919 加入日期: 06-9-2 最近的帖子
Alberto Eles Fernandez:
When I add a hook into "deploy" folder, if the hook already exist in "webapps" folder, it adds its content to the "ROOT" folder. Thats intentional or a bug?


Well, if you only see that on secondary deploy of the hook, it would be a bug. Should happen for all hook deployments...

JSP hooks are deployed by a) making a backup of the JSP file being replaced by the hook and b) copy the hooked JSP into the ROOT war. This allows the hook to be undeployed and restores the original JSP.

So upon first deployment you should see this activity. If you're not seeing it until the second deployment, then it may be a bug.
Alberto Eles Fernandez,修改在12 年前。

RE: Bug or feature?

New Member 帖子: 9 加入日期: 12-1-18 最近的帖子
Yhea as I said, it only applies it when it already exist in the webapps folder.