Details
-
Bug
-
Status: Closed
-
Minor
-
Resolution: Cannot Reproduce
-
1.7
-
None
-
None
-
Checked in source code of HEAD
Description
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.