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

jspwiki.propertyfile cannot be defined as system property (like cascading properties)

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Trivial
    • Resolution: Fixed
    • 2.8.2
    • 2.8.3, 3.0
    • Core & storage
    • None

    Description

      I would like to define where the jspwiki.properties file is located outside of web.xml with system properties, for example in /etc/default/tomcat5.5 as:

      JAVA_OPTS=" -Djspwiki.propertyfile=/opt/jspwiki/jspwiki.properties"

      having this after deploying new jspwiki.war I neither have to recreate jspwiki.properties nor alter default web.xml

      change is in single line:

      — branches/JSPWIKI_2_8_BRANCH/src/com/ecyrd/jspwiki/PropertyReader.java 2009-06-03 10:49:40.000000000 +0200
      +++ JSPWiki-2.8.2/src/com/ecyrd/jspwiki/PropertyReader.java 2009-06-03 10:38:13.000000000 +0200
      @@ -115,7 +115,7 @@
      */
      public static Properties loadWebAppProps( ServletContext context )
      {

      • String propertyFile = context.getInitParameter(PARAM_PROPERTYFILE);
        + String propertyFile = getInitParameter(context, PARAM_PROPERTYFILE);
        InputStream propertyStream = null;

      try

      Attachments

        1. JSPWIKI-568.patch
          0.5 kB
          Piotr Tarnowski

        Activity

          People

            metskem Harry Metske
            piotr_tarnowski Piotr Tarnowski
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: