Uploaded image for project: 'XWiki Platform'
  1. XWiki Platform
  2. XWIKI-11403

Automatically delete unprotected Velocity namespace

    XMLWordPrintable

Details

    • Improvement
    • Resolution: Fixed
    • Major
    • 6.4-milestone-1
    • 6.3-rc-1
    • Velocity
    • None
    • Unit
    • Unknown
    • N/A

    Description

      This means that unless the namespace is "protected" with a call to VelocityEngine#startedUsingMacroNamespace it will be removed at the end of evaluate when all you want is just to execute some isolated velocity code.

      This allows to get rid of a lot of annoying calls to startedUsingMacroNamespace/stoppedUsingMacroNamespace and any code that really require to share macros between several velocity contents is already calling startedUsingMacroNamespace/stoppedUsingMacroNamespace (mostly to make sure they will share the same namespace and that l will be removed at the end).

      Attachments

        Activity

          People

            tmortagne Thomas Mortagne
            tmortagne Thomas Mortagne
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: