incubator-lokahi-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From tob...@apache.org
Subject svn commit: r418352 - /incubator/lokahi/lokahi/trunk/src/java/org/apache/lokahi/core/common/util/PropertiesFile.java
Date Fri, 30 Jun 2006 18:15:08 GMT
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()) {



Mime
View raw message