Author: ssolsagl
Date: 2007-04-25 16:55:55 +0200 (Wed, 25 Apr 2007)
New Revision: 4881

Modified:
   
trunk/core-api/src/main/java/no/schibstedsok/searchportal/view/velocity/URLVelocityTemplateLoaderDebug.java
Log:
Load dynamic local files. (Can use fileloader instead though)

Modified: 
trunk/core-api/src/main/java/no/schibstedsok/searchportal/view/velocity/URLVelocityTemplateLoaderDebug.java
===================================================================
--- 
trunk/core-api/src/main/java/no/schibstedsok/searchportal/view/velocity/URLVelocityTemplateLoaderDebug.java
 2007-04-25 14:42:28 UTC (rev 4880)
+++ 
trunk/core-api/src/main/java/no/schibstedsok/searchportal/view/velocity/URLVelocityTemplateLoaderDebug.java
 2007-04-25 14:55:55 UTC (rev 4881)
@@ -11,7 +11,7 @@
 
 /**
  * UrlVelocityTemplateLoaderDebug adds border around every
- * velocity template that it loaded. This is a nice way to
+ * velocity template that is loaded. This is a nice way to
  * see wich templates are loaded and where they are loaded.
  * 
  * @author Ola M Sagli <a mailto="[EMAIL PROTECTED]">[EMAIL PROTECTED]</a>
@@ -20,14 +20,13 @@
 public class URLVelocityTemplateLoaderDebug extends URLVelocityTemplateLoader {
        
        private static Logger log = 
Logger.getLogger(URLVelocityTemplateLoaderDebug.class);
-       
        static String HTML_DIV = "<div style=\"margin: 3px; border: 1px solid 
#C0C0C0\">\n";
-       
        static int NOT_MATCH = -1;
        
        private String header(String content) {
                return "<div style=\"background:#DDDDDD; font-size:10px\">" + 
content + "</div>\n";
        }
+
        /**
         * getResourceStream() loads resource from url. Then add frame and 
display velocity filename 
         * before returning the content. 
@@ -39,7 +38,6 @@
                String relUrl = url.replaceAll("http://(.*?)/", "/");           
 
                InputStream stream = null;
-               
                String base = System.getProperty("OVERRIDE_VELOCITY_TEMPLATES");
                
                if(base == null) {

_______________________________________________
Kernel-commits mailing list
[email protected]
http://sesat.no/mailman/listinfo/kernel-commits

Reply via email to