You are viewing a plain text version of this content. The canonical link for it is here.
Posted to lokahi-commits@incubator.apache.org by to...@apache.org on 2006/06/30 18:15:08 UTC

svn commit: r418352 - /incubator/lokahi/lokahi/trunk/src/java/org/apache/lokahi/core/common/util/PropertiesFile.java

Author: toback
Date: Fri Jun 30 11:15:08 2006
New Revision: 418352

URL: http://svn.apache.org/viewvc?rev=418352&view=rev
Log:
fixed a bug in the boolean get value, was always returning false.

Modified:
    incubator/lokahi/lokahi/trunk/src/java/org/apache/lokahi/core/common/util/PropertiesFile.java

Modified: incubator/lokahi/lokahi/trunk/src/java/org/apache/lokahi/core/common/util/PropertiesFile.java
URL: http://svn.apache.org/viewvc/incubator/lokahi/lokahi/trunk/src/java/org/apache/lokahi/core/common/util/PropertiesFile.java?rev=418352&r1=418351&r2=418352&view=diff
==============================================================================
--- incubator/lokahi/lokahi/trunk/src/java/org/apache/lokahi/core/common/util/PropertiesFile.java (original)
+++ incubator/lokahi/lokahi/trunk/src/java/org/apache/lokahi/core/common/util/PropertiesFile.java Fri Jun 30 11:15:08 2006
@@ -109,11 +109,11 @@
         logger.debug("actionProperties.getProperty(" + System.getProperty("PHYSICAL_LOCATION") + '.' + propertyName + ")=" + actionProperties.getProperty(System.getProperty("PHYSICAL_LOCATION") + '.' + propertyName));
       }
       if (!"".equals(actionProperties.getProperty(propertyName))) {
-        ret = Boolean.getBoolean(actionProperties.getProperty(propertyName));
+        ret = "true".equalsIgnoreCase(actionProperties.getProperty(propertyName));
       }
       if (!"".equals(actionProperties.getProperty(System.getProperty("PHYSICAL_LOCATION") + '.' + propertyName)) && actionProperties.getProperty(System.getProperty("PHYSICAL_LOCATION") + '.' + propertyName) != null)
       {
-        ret = "true".equals(actionProperties.getProperty(System.getProperty("PHYSICAL_LOCATION") + '.' + propertyName));
+        ret = "true".equalsIgnoreCase(actionProperties.getProperty(System.getProperty("PHYSICAL_LOCATION") + '.' + propertyName));
       }
     }
     if (logger.isDebugEnabled()) {