geronimo-scm mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jdil...@apache.org
Subject svn commit: r504817 - in /geronimo/sandbox/build-support/libraries/system/1/groovy/gbuild/system/template/velocity: TemplateEngine.groovy TemplateImpl.groovy
Date Thu, 08 Feb 2007 07:55:51 GMT
Author: jdillon
Date: Wed Feb  7 23:55:51 2007
New Revision: 504817

URL: http://svn.apache.org/viewvc?view=rev&rev=504817
Log:
Fixed up velocity template bits

Modified:
    geronimo/sandbox/build-support/libraries/system/1/groovy/gbuild/system/template/velocity/TemplateEngine.groovy
    geronimo/sandbox/build-support/libraries/system/1/groovy/gbuild/system/template/velocity/TemplateImpl.groovy

Modified: geronimo/sandbox/build-support/libraries/system/1/groovy/gbuild/system/template/velocity/TemplateEngine.groovy
URL: http://svn.apache.org/viewvc/geronimo/sandbox/build-support/libraries/system/1/groovy/gbuild/system/template/velocity/TemplateEngine.groovy?view=diff&rev=504817&r1=504816&r2=504817
==============================================================================
--- geronimo/sandbox/build-support/libraries/system/1/groovy/gbuild/system/template/velocity/TemplateEngine.groovy
(original)
+++ geronimo/sandbox/build-support/libraries/system/1/groovy/gbuild/system/template/velocity/TemplateEngine.groovy
Wed Feb  7 23:55:51 2007
@@ -21,7 +21,7 @@
 // $Id$
 //
 
-package gbuild.system.util
+package gbuild.system.template.velocity
 
 import gbuild.system.LogSupport
 
@@ -40,6 +40,12 @@
     private boolean initialized = false
     
     def TemplateEngine(basepath) {
+        assert basepath
+        
+        if (!basepath.endsWith('/')) {
+            basepath += '/'
+        }
+        
         //
         // NOTE: Velocity 1.4 does not support URL loading of resources, so they have to
be
         //       'file' URLs to work

Modified: geronimo/sandbox/build-support/libraries/system/1/groovy/gbuild/system/template/velocity/TemplateImpl.groovy
URL: http://svn.apache.org/viewvc/geronimo/sandbox/build-support/libraries/system/1/groovy/gbuild/system/template/velocity/TemplateImpl.groovy?view=diff&rev=504817&r1=504816&r2=504817
==============================================================================
--- geronimo/sandbox/build-support/libraries/system/1/groovy/gbuild/system/template/velocity/TemplateImpl.groovy
(original)
+++ geronimo/sandbox/build-support/libraries/system/1/groovy/gbuild/system/template/velocity/TemplateImpl.groovy
Wed Feb  7 23:55:51 2007
@@ -41,7 +41,7 @@
         this.template = template
     }
     
-    protected void doRender(Writer writer) 
+    protected void doRender(Writer writer) {
         assert writer
         
         def context = new VelocityContext()



Mime
View raw message