I have created many hooks for Liferay with Eclipse Java EE IDE for Web Developers. The problem is that when I create a hook is deployed inside the webapps folder.
My webapps folder tree:
There are many hooks. How can how can I move them into a new folder inside webapps? in order to have something like this:
- webapps
- calendar-portlet
- hooks
- blogs-hook
- breadcrumb-hook
- dockbar-hook
- login-hook
- blogs-hook
- sitepages-hook
- truefalsetocheckbox-hook
- userinfo-hook
- wiki-hook
- marketplace-portlet
- my-theme
- resources-importer-web
- ROOT
Any help is greatly appreciated! Thank you so much!
I suppose you're speaking about Tomcat's (or whatever appserver you're using) webapp folder. You cannot merge different apps into one folder: it has to keep the structure on deploy.
So what you can do is to aggregate those hooks on source level (i.e., create only one hook project in Eclipse with the Liferay IDE so you can put everything there). So you could put them into the same plugin.
Btw I would discourage using several hooks, because they might occasionally overwrite each other's behaviour. Imagine you have some sort of property defined in
a-hook
andb-hook
in a properties file. You cannot tell which one will be used after the deployment.