quarta-feira, 14 de janeiro de 2015

Liferay - Portal Developer Properties

While developing applications in Liferay, be it a Hook, a Theme or a Portlet, you can activate the portal developer mode to ease your task.

If you're using Tomcat you should edit the setenv file (setenv.sh in Linux or setenv.bat in Window).

Look for the CATALINA_OPTS line and add this option to JVM:

-Dexternal-properties=portal-developer.properties


Then you should edit the portal-developer.properties

(located at Tomcat/webapps/ROOT/WEB-INF/classes) 

In this file you have a lot of properties that you change but i use it mainly for this three:

theme.css.fast.load
theme.images.fast.load
javascript.fast.load

You can set cache off for css,images and javascript by simply set this properties to false. This is great if your testing updates in JSP, CSS or Javascript and want to see the changes right away.

Restart your application server.


Sem comentários:

Enviar um comentário