Combination View Flat View Tree View
Threads [ Previous | Next ]
Jan Gregor
Reloading of portal-ext.properties
March 6, 2012 8:00 AM
Answer

Jan Gregor

Rank: Regular Member

Posts: 224

Join Date: October 20, 2010

Recent Posts

It will be interesting, if jrebel can also reloads all properties configurable in portal-ext.properties. Some of them are also modifable via hook and these are supported also by jrebel, when they are inside a hook. But there is a plenty of properties not supported by a hook sitting insde the portal, which will be nice to have supported by JRebel.

Regards,
Jan.
Andres Luuk
RE: Reloading of portal-ext.properties
March 19, 2012 5:29 AM
Answer

Andres Luuk

Rank: New Member

Posts: 11

Join Date: December 18, 2011

Recent Posts

I added the reloading of portal*.properties from Liferay core/ext environment.
I didn't change the loading of portal-ext.properties in hooks because we don't want JRebel + Liferay to work differently then normal Liferay alone would.

About the addition:
When, for example, the monitored portal-ext.properties file in Liferay ext is changed then JRebel now loads the new data to PropsUtil and resets the fields of PropsValues to have the new values.
Now when we have a place that re-asks the parameters from thous classes, they will get the new value.
I did not go deeper with the integration because after the Props* classes every parameeter is treated very differently.

The new addition is in the JRebel nightly build: http://zeroturnaround.com/jrebel/early-access/