Author: metskem
Date: Sun Aug 29 17:43:39 2010
New Revision: 990607
URL: http://svn.apache.org/viewvc?rev=990607&view=rev
Log:
2010-08-29 Harry Metske <[email protected]>
* 2.8.5-svn-1
* JSPWIKI-669 Support external properties in WikiEngine (idea from John
McKinney)
You can now override individual properties in jspwiki.properties
using standard
Java System properties.
Modified:
incubator/jspwiki/tags/jspwiki_2_8_5/ChangeLog
incubator/jspwiki/tags/jspwiki_2_8_5/etc/jspwiki.properties.tmpl
incubator/jspwiki/tags/jspwiki_2_8_5/src/com/ecyrd/jspwiki/Release.java
incubator/jspwiki/tags/jspwiki_2_8_5/src/com/ecyrd/jspwiki/TextUtil.java
Modified: incubator/jspwiki/tags/jspwiki_2_8_5/ChangeLog
URL:
http://svn.apache.org/viewvc/incubator/jspwiki/tags/jspwiki_2_8_5/ChangeLog?rev=990607&r1=990606&r2=990607&view=diff
==============================================================================
--- incubator/jspwiki/tags/jspwiki_2_8_5/ChangeLog (original)
+++ incubator/jspwiki/tags/jspwiki_2_8_5/ChangeLog Sun Aug 29 17:43:39 2010
@@ -1,3 +1,11 @@
+2010-08-29 Harry Metske <[email protected]>
+
+ * 2.8.5-svn-1
+
+ * JSPWIKI-669 Support external properties in WikiEngine (idea from
John McKinney)
+ You can now override individual properties in jspwiki.properties
using standard
+ Java System properties.
+
2010-05-08 Harry Metske <[email protected]>
* 2.8.4-svn-12
Modified: incubator/jspwiki/tags/jspwiki_2_8_5/etc/jspwiki.properties.tmpl
URL:
http://svn.apache.org/viewvc/incubator/jspwiki/tags/jspwiki_2_8_5/etc/jspwiki.properties.tmpl?rev=990607&r1=990606&r2=990607&view=diff
==============================================================================
--- incubator/jspwiki/tags/jspwiki_2_8_5/etc/jspwiki.properties.tmpl (original)
+++ incubator/jspwiki/tags/jspwiki_2_8_5/etc/jspwiki.properties.tmpl Sun Aug 29
17:43:39 2010
@@ -3,6 +3,10 @@
# This is the JSPWiki configuration file. You'll need to edit this
# a bit. The first few lines are the most important ones.
#
+# If you don't want to edit this file, you can override each individual
+# property by specifying the property name as a standard
+# Java System Property.
+#
# Wherever it is said that an option can be "true" or "false", you can
# also use "yes"/"no", or "on/off". Just for some convenience.
#
Modified:
incubator/jspwiki/tags/jspwiki_2_8_5/src/com/ecyrd/jspwiki/Release.java
URL:
http://svn.apache.org/viewvc/incubator/jspwiki/tags/jspwiki_2_8_5/src/com/ecyrd/jspwiki/Release.java?rev=990607&r1=990606&r2=990607&view=diff
==============================================================================
--- incubator/jspwiki/tags/jspwiki_2_8_5/src/com/ecyrd/jspwiki/Release.java
(original)
+++ incubator/jspwiki/tags/jspwiki_2_8_5/src/com/ecyrd/jspwiki/Release.java Sun
Aug 29 17:43:39 2010
@@ -57,7 +57,7 @@ public final class Release
* <p>
* If the POSTFIX is empty, it is not added to the version string.
*/
- private static final String POSTFIX = "";
+ private static final String POSTFIX = "svn";
/** The JSPWiki major version. */
public static final int VERSION = 2;
@@ -66,7 +66,7 @@ public final class Release
public static final int REVISION = 8;
/** The minor revision. */
- public static final int MINORREVISION = 4;
+ public static final int MINORREVISION = 5;
/** The build number/identifier. This is a String as opposed to an
integer, just
* so that people can add other identifiers to it. The build number is
incremented
@@ -77,7 +77,7 @@ public final class Release
* <p>
* If the build identifier is empty, it is not added.
*/
- public static final String BUILD = "";
+ public static final String BUILD = "1";
/**
* This is the generic version string you should use
Modified:
incubator/jspwiki/tags/jspwiki_2_8_5/src/com/ecyrd/jspwiki/TextUtil.java
URL:
http://svn.apache.org/viewvc/incubator/jspwiki/tags/jspwiki_2_8_5/src/com/ecyrd/jspwiki/TextUtil.java?rev=990607&r1=990606&r2=990607&view=diff
==============================================================================
--- incubator/jspwiki/tags/jspwiki_2_8_5/src/com/ecyrd/jspwiki/TextUtil.java
(original)
+++ incubator/jspwiki/tags/jspwiki_2_8_5/src/com/ecyrd/jspwiki/TextUtil.java
Sun Aug 29 17:43:39 2010
@@ -416,7 +416,7 @@ public final class TextUtil
String key,
int defVal )
{
- String val = props.getProperty( key );
+ String val = System.getProperties().getProperty( key,
props.getProperty( key ) );
return parseIntParameter( val, defVal );
}
@@ -436,13 +436,12 @@ public final class TextUtil
*
* @since 2.0.11
*/
- public static boolean getBooleanProperty( Properties props,
- String key,
- boolean defval )
+ public static boolean getBooleanProperty( Properties props, String key,
boolean defval )
{
- String val = props.getProperty( key );
+ String val = System.getProperties().getProperty( key,
props.getProperty( key ) );
- if( val == null ) return defval;
+ if( val == null )
+ return defval;
return isPositive( val );
}
@@ -462,7 +461,7 @@ public final class TextUtil
String key,
String defval )
{
- String val = props.getProperty( key );
+ String val = System.getProperties().getProperty( key,
props.getProperty( key ) );
if( val == null ) return defval;