FileResourceLoader does not conform to its spec
-----------------------------------------------
Key: VELOCITY-713
URL: https://issues.apache.org/jira/browse/VELOCITY-713
Project: Velocity
Issue Type: Bug
Affects Versions: 1.7
Environment: Checked in source code of HEAD
Reporter: Dariusz Kordonski
Priority: Minor
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 is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]