... does not work with java 1.4, Boolean.parseBoolean() is @since 1.5
On Aug 6, 2007, at 19:03 , [EMAIL PROTECTED] wrote:
Revision10376AuthorfgiustDate2007-08-06 19:03:15 +0200 (Mon, 06 Aug
2007)Log Messagea useful getBooleanProperty() methodModified Paths
magnolia/trunk/magnolia-core/src/main/java/info/magnolia/cms/core/
SystemProperty.java
Diff
Modified: magnolia/trunk/magnolia-core/src/main/java/info/magnolia/
cms/core/SystemProperty.java (10375 => 10376)--- magnolia/trunk/
magnolia-core/src/main/java/info/magnolia/cms/core/
SystemProperty.java 2007-08-06 16:37:24 UTC (rev 10375) +++
magnolia/trunk/magnolia-core/src/main/java/info/magnolia/cms/core/
SystemProperty.java 2007-08-06 17:03:15 UTC (rev 10376)@@ -39,7
+39,7 @@ public static final String MAGNOLIA_WEBAPP =
"magnolia.webapp"; public static final String
MAGNOLIA_SERVERNAME = "magnolia.servername";- + /** *
If this repository/workspace is empty bootstrap this repository.
This will be the config repository in the most * cases.@@
-50,7 +50,7 @@ * Force bootstrapping of the listed
workspaces */ public static final String BOOTSTRAP_FORCE =
"magnolia.bootstrap.force";- + private static Properties
properties = new Properties(); /**@@ -81,6 +81,15
@@ } /**+ * Returns a boolean property, returning
<code>false</code> if the property is not set. + * @param name
property name + * @return true only if the request property has
a value of <code>true</code> + */ + public static boolean
getBooleanProperty(String name) { + return
Boolean.parseBoolean(getProperty(name)); + } + + /** *
@param name * @param defaultValue */@@ -102,5 +111,5
@@ public static Properties getProperties() { return
SystemProperty.properties; }- + }
----------------------------------------------------------------
for list details see
http://documentation.magnolia.info/docs/en/editor/stayupdated.html
----------------------------------------------------------------