The DataSourceResourceLoader was not compiling (due to changes 
on Configuration class?).

As I already confessed, I feel a bit lost with these Unix tools 
(although I am impressed with them).

After fighting a bit with diff I got this patch. Beaware that
text newline sequences might be wrong for Linux (I'm not sure).

Here goes the Patch. I am sure it will need some editing to 
work. Can some one fix it and apply it?


Thanks and have fun,
Paulo Gaspar
jakarta-velocity/src/java/org/apache/velocity/runtime/resource/loader/DataSourceResourceLoader.java

--- DataSourceResourceLoader.java
+++ DataSourceResourceLoader.java
@@ -108,11 +108,11 @@
 
      public void init(Configuration configuration)
      {
-         dataSourceName  = configuration.get("resource.datasource");
-         tableName       = configuration.get("resource.table");
-         keyColumn       = configuration.get("resource.keycolumn");
-         templateColumn  = configuration.get("resource.templatecolumn");
-         timestampColumn = configuration.get("resource.timestampcolumn");
+         dataSourceName  = configuration.getString("resource.datasource");
+         tableName       = configuration.getString("resource.table");
+         keyColumn       = configuration.getString("resource.keycolumn");
+         templateColumn  = configuration.getString("resource.templatecolumn");
+         timestampColumn = configuration.getString("resource.timestampcolumn");
          
          Runtime.info("Resources Loaded From: " + dataSourceName + "/" + tableName);
          Runtime.info( "Resource Loader using columns: " + keyColumn + ", "

Reply via email to