roller-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Greg Huber (JIRA)" <j...@apache.org>
Subject [jira] Commented: (ROL-1847) Theme reloading for developmet
Date Thu, 10 Dec 2009 14:02:18 GMT

    [ https://issues.apache.org/jira/browse/ROL-1847?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12788722#action_12788722
] 

Greg Huber commented on ROL-1847:
---------------------------------

Also, for completeness,

1. SearchServlet needs to be updated with the reload:

// do we need to force a specific locale for the request?
		 if(searchRequest.getLocale() == null && !website.isShowAllLangs()) {
		 searchRequest.setLocale(website.getLocale());
		 }
// Development only. Reload if theme has been modified
		if (themeReload) {
			try {

				ThemeManager manager = EventsFactory.getEvents()
						.getThemeManager();

				boolean reloaded = manager.reLoadThemeFromDisk(website
						.getEditorTheme());

				if (reloaded) {

					// Reload message bundle
					I18nDevUtils.reloadBundle(website.getLocaleInstance());
					
					// Sync pages also
					WebsitePageCache.getInstance().clear();
					SiteWideCache.getInstance().clear();
					
				}

			} catch (EventsException e) {
				// ignored
			}

		}

2.  To reload the AplicationResources see I18nDevUtils attached.  Works in Tomcat.

> Theme reloading for developmet
> ------------------------------
>
>                 Key: ROL-1847
>                 URL: https://issues.apache.org/jira/browse/ROL-1847
>             Project: Roller
>          Issue Type: Improvement
>          Components: Theme specific
>    Affects Versions: 5.0
>            Reporter: Greg Huber
>            Assignee: Roller Unassigned
>            Priority: Minor
>             Fix For: 5.0
>
>         Attachments: patch_theme_reloading.txt
>
>
> When developing a new velocity theme its a pain restarting the container for changes
to take effect.  This patch will make auto reloading possible.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message