[ 
https://issues.apache.org/jira/browse/VELOCITY-713?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Claude Brisson closed VELOCITY-713.
-----------------------------------
       Resolution: Cannot Reproduce
         Assignee: Claude Brisson
    Fix Version/s: 2.x

Already covered by a testcase.

> FileResourceLoader does not conform to its spec
> -----------------------------------------------
>
>                 Key: VELOCITY-713
>                 URL: https://issues.apache.org/jira/browse/VELOCITY-713
>             Project: Velocity
>          Issue Type: Bug
>          Components: Engine
>    Affects Versions: 1.7
>         Environment: Checked in source code of HEAD
>            Reporter: Dariusz Kordonski
>            Assignee: Claude Brisson
>            Priority: Minor
>             Fix For: 2.x
>
>
> The JavaDoc for 
> org.apache.velocity.runtime.resource.loader.FileResourceLoader says:
> ' A loader for templates stored on the file system.  Treats the template
>  as relative to the configured root path.  If the root path is empty
>  treats the template name as an absolute path.'
> The functionality of trying to resolve name as absolute path in case no root 
> paths are configured is not implemented. Additionally, I suggest implementing 
> new feature - a kind of configuration flag 'useAsAbsolutePath' that would 
> trigger resolving resource name as absolute path, no matter if additional 
> roots for given loader were configured. Sorry for not putting it under 
> separate JIRA issue, it's only my suggestion and it's related to the reported 
> bug.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

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

Reply via email to