incubator-jspwiki-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jürgen Weber (JIRA) <j...@apache.org>
Subject [jira] Commented: (JSPWIKI-660) Support external properties in WikiEngine
Date Mon, 16 Aug 2010 09:36:15 GMT

    [ https://issues.apache.org/jira/browse/JSPWIKI-660?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12898837#action_12898837
] 

Jürgen Weber commented on JSPWIKI-660:
--------------------------------------

Another option is to just take jspwiki.properties out of the .war into a config folder, e.g.
tomcat/conf/apps/jspwiki/jspwiki.properties
So they are easily changeable.
To change properties, you leave the default properties unchanged and put your overriding properties
at the end of jspwiki.properties
See
http://www.mail-archive.com/users@tomcat.apache.org/msg77339.html



> Support external properties in WikiEngine
> -----------------------------------------
>
>                 Key: JSPWIKI-660
>                 URL: https://issues.apache.org/jira/browse/JSPWIKI-660
>             Project: JSPWiki
>          Issue Type: Improvement
>          Components: Core & storage
>            Reporter: John McKinney
>            Priority: Minor
>
> 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

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message