commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rmannibu...@apache.org
Subject svn commit: r1528316 - /commons/sandbox/monitoring/trunk/reporting/src/main/java/org/apache/commons/monitoring/reporting/web/template/Templates.java
Date Wed, 02 Oct 2013 06:47:08 GMT
Author: rmannibucau
Date: Wed Oct  2 06:47:07 2013
New Revision: 1528316

URL: http://svn.apache.org/r1528316
Log:
allowing to customize gui resources

Modified:
    commons/sandbox/monitoring/trunk/reporting/src/main/java/org/apache/commons/monitoring/reporting/web/template/Templates.java

Modified: commons/sandbox/monitoring/trunk/reporting/src/main/java/org/apache/commons/monitoring/reporting/web/template/Templates.java
URL: http://svn.apache.org/viewvc/commons/sandbox/monitoring/trunk/reporting/src/main/java/org/apache/commons/monitoring/reporting/web/template/Templates.java?rev=1528316&r1=1528315&r2=1528316&view=diff
==============================================================================
--- commons/sandbox/monitoring/trunk/reporting/src/main/java/org/apache/commons/monitoring/reporting/web/template/Templates.java
(original)
+++ commons/sandbox/monitoring/trunk/reporting/src/main/java/org/apache/commons/monitoring/reporting/web/template/Templates.java
Wed Oct  2 06:47:07 2013
@@ -16,6 +16,7 @@
  */
 package org.apache.commons.monitoring.reporting.web.template;
 
+import org.apache.commons.monitoring.configuration.Configuration;
 import org.apache.commons.monitoring.reporting.web.plugin.PluginRepository;
 import org.apache.velocity.Template;
 import org.apache.velocity.VelocityContext;
@@ -41,7 +42,7 @@ public final class Templates {
         velocityConfiguration.setProperty(RuntimeConstants.RUNTIME_REFERENCES_STRICT_ESCAPE,
Boolean.TRUE.toString());
         velocityConfiguration.setProperty(RuntimeConstants.RESOURCE_LOADER, "monitoring");
         velocityConfiguration.setProperty(RuntimeConstants.VM_LIBRARY, "/templates/macro.vm");
-        velocityConfiguration.setProperty("monitoring." + RuntimeConstants.RESOURCE_LOADER
+ ".class", ClasspathResourceLoader.class.getName());
+        velocityConfiguration.setProperty("monitoring." + RuntimeConstants.RESOURCE_LOADER
+ ".class", Configuration.getProperty(Configuration.COMMONS_MONITORING_PREFIX + "reporting.resource-loader",
ClasspathResourceLoader.class.getName()));
         Velocity.init(velocityConfiguration);
 
         if (filterMapping.isEmpty()) {



Mime
View raw message