Lesen in 2 Minuten
All Liferay IDE users that also use Eclipse Indigo SR2 (3.7.2) are encouraged to apply the latest update to Liferay IDE.
Steps for existing Liferay IDE users..
- Open Eclipse
- Make sure that the Liferay IDE updatesite is enabled: http://releases.liferay.com/tools/ide/eclipse/indigo/stable/
- Help > Check for Updates...
- Apply the update for the new 1.5.3 release
For new Liferay IDE installations...
- Download an Eclipse pre-bundled with Liferay IDE 1.5.3
- Install new from updatesite: http://releases.liferay.com/tools/ide/eclipse/indigo/stable/
This release fixes a regression in the New Liferay Project wizard for Eclipse 3.7.2 users where the default output folder for the java web project would cause the classes to not be deployed to Liferay Tomat server when deployed through Add/Remove Modules... wizard.
Here is the full list of fixes for the 1.5.3 release:
Another important update in this release is an improvement to the Theme project development workflow. Here is how Theme project development worked previously(<= 1.5.2):
- Create a new theme project
- Deploy to Liferay Tomcat Server through Add/Remove Modules dialog...
- Make a change in the _diffs folder under docroot/
- Liferay IDE detected this change and would invoke a "ant compile" in the background for the theme
This would copy hundreds of files into the root of the docroot folder (to full compile the theme from the declared parent) - Liferay IDE would publish the delta changes to the docroot of the project out into the webapps/ folder in Tomcat
- Tomcat would detect these changes and redeploy if it saw changes to descriptor files (web.xml)
- View the theme in the Portal
- Make another change to any _diffs resource
- "ant compile" is re-invoked and all of the changed files are deployed to tomcat webapps/ folder once again.
- Tomcat may redeploy and restart the context
- Refresh the browser to see the change to the theme.
This recompiling and redeploying would happen automatically for every change in the _diffs folder no matter how small. The reason for this is that Liferay does not read the css files from the _diffs folder. It reads it from the compiled files in the root webapp (docroot). So to see the changes made in _diff you had to make sure the theme was re-compiled to copy the changes from _diffs out to the parent docroot. This caused lots of problems for tomcat as it had to constantly redeploying and restart the theme context if it saw changes to that many files, which led to instability in the development process.
Now lets look at what happens with Theme projects in latest version of Liferay IDE (1.5.3).
- Create a new theme project
- During the creation of the project the theme is pre-compiled so it doesn't wait on the auto-compile to happen from first change to _diffs
- Deploy to Liferay Tomcat Server through Add/Remove Modules dialog...
- View the theme in the Portal
- Now when changes are made to _diffs/**/* resource, Liferay IDE detects this change and just copies the single small delta change into the docroot parent.
- Auto-publish event is triggered for the Liferay Tomcat server and this same small delta update is made to the theme published in the webapps/ folder in tomcat. Tomcat does not redeploy or restart the context single only a small change (single css or tempalte file) was modified.
- Refresh the page in the browser to see the update in the portal
This should be a much improved development experience for Theme developers with Liferay IDE (or Developer Studio). We have more improvements for Theme developers planned for the upcoming 1.6/2.0 release, so now is a good time to head over to the Liferay IDE forums to make a feature enhancement suggestion or report issues found with the latest 1.5.3 release.
Thanks everyone.
Related Assets...
Keine Ergebnisse gefunden
More Blog Entries...
Community
Company
Feedback
