Archive for August 2010
In Part I I explained how to:
- Speed up Firefox by creating a different profile for Firebug and ‘vacuum’ the
browser’s internal databases
- Update to the latest ‘safe’ pi revision
- Clean up your Mercurial workspace
You also know how to configure the Autologon authentication manager that allows you login the application with the same user/password skipping the login page.
Today we’ll focus in speeding up the compilation process using just some configuration properties that will result in skipping some tasks that are not required in the day-to-day development process.
Note: I assume that you are working with Eclipse IDE, you have successfully build the application and also you have experience how to compile the application. If you don’t know how to do that, please read the how to setup your development environment in the wiki.
The Openbravo.properties file is use to configure the application, e.g. database connection details, date format, etc. But also have properties for the build process and tweaking them allows you skip some tasks when compiling.
You can read more about the Openbravo.properties in the wiki page.
Note: Remember to always read documents in the ERP/2.50 namespace, since all other documents may have been deprecated or are no longer maintained.
.js files everything is compressed without line breaks or spaces. The quick fix to skip this process is set to no the minimizeJSandCSS property.
# use js/css minimization (in local-context and war-file) minimizeJSandCSS=no
The deploy.mode defines where the build process needs to copy files and if it needs to generate a .war file. The default deploy.mode is class, so in every compilation call the files are sync’ed with the $CATALINA_BASE/webapps/context folder.
Since you are working with Eclipse the tomcat server you’re using is the one inside Eclipse, the $CATALIBA_BASE/webapps/context is not used at all, instead, the files are read from the WebContent and build folders.
Setting to none the deploy.mode will skip the sync of the files, and also will not generate a .war file.
#Deploy mode: valid values [class, war, none] deploy.mode=none
Setting minimizeJSandCSS=no and deploy.mode=none will speed up the day-to-day compilation process.
Remember that this changes recommended just for development environments not for production ones.