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

Optionally add context to itself

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 2.0
    • None
    • None

    Description

      For debugging scripts, it would sometimes be useful to have access to the context within a VM script.
      For example, one could then print out all the variables that are defined in the context.

      The suggestion is to enable this via a properties file or a system property.

      If the property is defined, its value would be used as the name of the variable holding the context.

      e.g. -Dvelocity.context.variable=ctx

      Obviously feel free to choose a better property name.

      Attachments

        Activity

          People

            cbrisson Claude Brisson
            sebb Sebb
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: