Velocity
  1. Velocity
  2. VELOCITY-154

[PATCH] Relative resource loading for #include and #parse

    Details

    • Type: Improvement Improvement
    • Status: Closed
    • Priority: Minor Minor
    • Resolution: Fixed
    • Affects Version/s: 1.4
    • Fix Version/s: 1.5
    • Component/s: Engine
    • Labels:
      None
    • Environment:
      Operating System: All
      Platform: All

      Description

      This little patch allows one to do

      #parse("foo.vm")

      where foo.vm is located in the same directory as the template containing the
      #parse directive.

      It is independant from the resource loader (and shouldn't impact loaders that
      don't use path) : the only modified files are Parse.java and Include.java.

      CloD

        Activity

        Claude Brisson created issue -
        Hide
        Claude Brisson added a comment -

        Created an attachment (id=5381)
        patch file to Parse.java and Include.java

        Show
        Claude Brisson added a comment - Created an attachment (id=5381) patch file to Parse.java and Include.java
        Hide
        Will Glass-Husain added a comment -

        Proposed event handler for #input and #parse would be another route to this
        functionality. Suggest that patch be uploaded instead.

        http://nagoya.apache.org/bugzilla/show_bug.cgi?id=20342

        Show
        Will Glass-Husain added a comment - Proposed event handler for #input and #parse would be another route to this functionality. Suggest that patch be uploaded instead. http://nagoya.apache.org/bugzilla/show_bug.cgi?id=20342
        Hide
        Charles Morehead added a comment -

        I'd like to see support for relative includes, as well.

        Show
        Charles Morehead added a comment - I'd like to see support for relative includes, as well.
        Jeff Turner made changes -
        Field Original Value New Value
        issue.field.bugzillaimportkey 18072 12315024
        Hide
        Will Glass-Husain added a comment -

        This is now in the (unreleased) v1.5 (IncludeRelativePath)

        Show
        Will Glass-Husain added a comment - This is now in the (unreleased) v1.5 (IncludeRelativePath)
        Will Glass-Husain made changes -
        Assignee Velocity-Dev List [ velocity-dev@jakarta.apache.org ]
        Status Open [ 1 ] Resolved [ 5 ]
        Fix Version/s 1.5 [ 12310253 ]
        Resolution Fixed [ 1 ]
        Hide
        Henning Schmiedehausen added a comment -

        Close all resolved issues for Engine 1.5 release.

        Show
        Henning Schmiedehausen added a comment - Close all resolved issues for Engine 1.5 release.
        Henning Schmiedehausen made changes -
        Status Resolved [ 5 ] Closed [ 6 ]
        Mark Thomas made changes -
        Workflow jira [ 12325029 ] Default workflow, editable Closed status [ 12551895 ]
        Mark Thomas made changes -
        Workflow Default workflow, editable Closed status [ 12551895 ] jira [ 12552680 ]

          People

          • Assignee:
            Unassigned
            Reporter:
            Claude Brisson
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development