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

StringResourceLoader JavaDoc bug

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 1.7
    • 1.7
    • Documentation
    • None
    • Windows XP, Eclipse 3.3, Java 5

    Description

      see Velocity JavaDoc:
      http://velocity.apache.org/engine/devel/apidocs/org/apache/velocity/runtime/resource/loader/StringResourceLoader.html

      The line
      string.resource.loader.repository.class = org.apache.velocity.runtime.resource.loader.StringResourceRepositoryImpl
      is in my opinion wrong.
      It must be something like this:
      p.setProperty("string." + Velocity.RESOURCE_LOADER + ".repository.class", "org.apache.velocity.runtime.resource.util.StringResourceRepositoryImpl");

      util instead of loader !!

      My problem is that I want to use Velocity with two files in a JAR and one file that can be anywhere in the file system. The latter is really hard to solve. So I read the file and use the StringResourceLoader.

      Attachments

        Activity

          People

            Unassigned Unassigned
            simplevelocity Marcus Warm
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: