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

Add support for property values in configuration files

    XMLWordPrintable

Details

    • Improvement
    • Resolution: Fixed
    • Major
    • 1.9 M2
    • 1.9 M1, 1.8.3
    • {Unused} Core
    • None
    • Unit
    • Unknown

    Description

      Add support for the following type of configuration properties:

      velocity.tools = listtool = org.apache.velocity.tools.generic.ListTool
      velocity.tools = numbertool = org.apache.velocity.tools.generic.NumberTool
      velocity.tools = datetool = org.apache.velocity.tools.generic.DateTool
      velocity.tools = mathtool = org.apache.velocity.tools.generic.MathTool
      velocity.tools = sorttool = org.apache.velocity.tools.generic.SortTool     
      velocity.tools = escapetool = org.apache.velocity.tools.generic.EscapeTool
      

      The following will also work:

      velocity.tools = listtool = org.apache.velocity.tools.generic.ListTool, numbertool = org.apache.velocity.tools.generic.NumberTool, ...
      

      The Configuration component will just need to have a setTools(Properties properties) method.

      Attachments

        Activity

          People

            vmassol Vincent Massol
            vmassol Vincent Massol
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: