Uploaded image for project: 'JSPWiki'
  1. JSPWiki
  2. JSPWIKI-660

Support external properties in WikiEngine

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.8.5, 2.9
    • Component/s: Core & storage
    • Labels:
      None

      Description

      It would be nice if we could override the properties currently specified in jspwiki.properties from System.properties. This would allow the ability to have templates, skins and some configuration external to core jspwiki making upgrading a much easier proposition.

      I'd suggest something simple such as replacing:

      m_templateDir = TextUtil.getStringProperty( props, PROP_TEMPLATEDIR, "default" );

      in WikiEngine with something like:

      m_templateDir = TextUtil.getStringProperty( System.getProperties(), PROP_TEMPLATEDIR, TextUtil.getStringProperty( props, PROP_TEMPLATEDIR, "default" ));

      For all properties defined in jspwiki.properties

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              jmckinney63 John McKinney
            • Votes:
              1 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: