Uploaded image for project: 'Velocity'
  1. Velocity
  2. VELOCITY-713

FileResourceLoader does not conform to its spec

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Cannot Reproduce
    • 1.7
    • None
    • Engine
    • 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.

      Attachments

        Activity

          People

            cbrisson Claude Brisson
            kordzik Dariusz Kordonski
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: