NetBeans 6.5 now supports deploy on save feature. It works as follows
- Incase any change in JSP, just refresh your browser to get the updated jsp.
- Incase any change in web.xml/classfile, the application gets deployed automatically.
To achieve this, netbeans uses glassfish's exploded directory deployment feature where it deploys the build directory of a web application. So any changes in build directory is picked up automatically.(Ofcourse changes in class file/web.xml is resolved through automatic redeployment.)
So to achieve the same behavior for portlet application in Portal Pack, we need to expose some api in liferay which will do the following tasks
- Given a war file, it should return a massaged war which is ready for deployment on appserver.
- Given a directory (with war structure), it should be able to massage it . And that directory can be deployed to glassfish appserver using exploded directory deployment feature.
It will be very useful for the developers as they don't need to deploy their application again and again while changing any jsps during java portlets and scripting file (ruby/groovy/php) during non java portlets.