You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@velocity.apache.org by Claude Brisson <cl...@renegat.net> on 2009/02/12 14:20:14 UTC

Re: svn commit: r743617 - in /velocity/engine/branches/1.6.x/src: changes/changes.xml java/org/apache/velocity/runtime/resource/loader/FileResourceLoader.java

Test build upgraded.


 Claude

On jeu, 2009-02-12 at 04:42 +0000, nbubna@apache.org wrote:
> Author: nbubna
> Date: Thu Feb 12 04:42:48 2009
> New Revision: 743617
> 
> URL: http://svn.apache.org/viewvc?rev=743617&view=rev
> Log:
> VELOCITY-693 merge fix from trunk, add to change log
> 
> Modified:
>     velocity/engine/branches/1.6.x/src/changes/changes.xml
>     velocity/engine/branches/1.6.x/src/java/org/apache/velocity/runtime/resource/loader/FileResourceLoader.java
> 
> Modified: velocity/engine/branches/1.6.x/src/changes/changes.xml
> URL: http://svn.apache.org/viewvc/velocity/engine/branches/1.6.x/src/changes/changes.xml?rev=743617&r1=743616&r2=743617&view=diff
> ==============================================================================
> --- velocity/engine/branches/1.6.x/src/changes/changes.xml (original)
> +++ velocity/engine/branches/1.6.x/src/changes/changes.xml Thu Feb 12 04:42:48 2009
> @@ -28,6 +28,11 @@
>  
>      <release version="1.6.2" date="2009-02-21">
>  
> +      <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-681">
>  	Fix regression in proxying of macro args
>        </action>
> 
> Modified: velocity/engine/branches/1.6.x/src/java/org/apache/velocity/runtime/resource/loader/FileResourceLoader.java
> URL: http://svn.apache.org/viewvc/velocity/engine/branches/1.6.x/src/java/org/apache/velocity/runtime/resource/loader/FileResourceLoader.java?rev=743617&r1=743616&r2=743617&view=diff
> ==============================================================================
> --- velocity/engine/branches/1.6.x/src/java/org/apache/velocity/runtime/resource/loader/FileResourceLoader.java (original)
> +++ velocity/engine/branches/1.6.x/src/java/org/apache/velocity/runtime/resource/loader/FileResourceLoader.java Thu Feb 12 04:42:48 2009
> @@ -201,7 +201,10 @@
>              try
>              {
>                  File file = getFile(path, name);
> -                return file.canRead();
> +                if (file.canRead())
> +                {
> +                    return true;
> +                }
>              }
>              catch (Exception ioe)
>              {
> 
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@velocity.apache.org
For additional commands, e-mail: dev-help@velocity.apache.org