Author: nbubna
Date: Thu Feb 12 04:45:01 2009
New Revision: 743619
URL: http://svn.apache.org/viewvc?rev=743619&view=rev
Log:
merge VELOCITY-693 fix from trunk
Modified:
velocity/engine/branches/2.0_Exp/src/changes/changes.xml
velocity/engine/branches/2.0_Exp/src/java/org/apache/velocity/runtime/resource/loader/FileResourceLoader.java
Modified: velocity/engine/branches/2.0_Exp/src/changes/changes.xml
URL:
http://svn.apache.org/viewvc/velocity/engine/branches/2.0_Exp/src/changes/changes.xml?rev=743619&r1=743618&r2=743619&view=diff
==============================================================================
--- velocity/engine/branches/2.0_Exp/src/changes/changes.xml (original)
+++ velocity/engine/branches/2.0_Exp/src/changes/changes.xml Thu Feb 12
04:45:01 2009
@@ -136,6 +136,11 @@
<release version="1.6.2" date="In Subversion">
+ <action type="fix" dev="nbubna" issue="VELOCITY-693">
+ Fix problem with FileResourceLoader's resourceExists() when
+ configured w/multiple paths.
+ </action>
+
<action type="fix" dev="nbubna" issue="VELOCITY-689">
Fix ClassMap introspection bug introduced in 1.5,
where public super-interface methods implemented in
Modified:
velocity/engine/branches/2.0_Exp/src/java/org/apache/velocity/runtime/resource/loader/FileResourceLoader.java
URL:
http://svn.apache.org/viewvc/velocity/engine/branches/2.0_Exp/src/java/org/apache/velocity/runtime/resource/loader/FileResourceLoader.java?rev=743619&r1=743618&r2=743619&view=diff
==============================================================================
---
velocity/engine/branches/2.0_Exp/src/java/org/apache/velocity/runtime/resource/loader/FileResourceLoader.java
(original)
+++
velocity/engine/branches/2.0_Exp/src/java/org/apache/velocity/runtime/resource/loader/FileResourceLoader.java
Thu Feb 12 04:45:01 2009
@@ -201,7 +201,10 @@
try
{
File file = getFile(path, name);
- return file.canRead();
+ if (file.canRead())
+ {
+ return true;
+ }
}
catch (Exception ioe)
{