You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ofbiz.apache.org by do...@apache.org on 2010/04/01 06:45:30 UTC

svn commit: r929836 - /ofbiz/trunk/framework/base/src/org/ofbiz/base/util/cache/UtilCache.java

Author: doogie
Date: Thu Apr  1 04:45:29 2010
New Revision: 929836

URL: http://svn.apache.org/viewvc?rev=929836&view=rev
Log:
Fetching of cache.file.store now also uses getPropertyParam.

Modified:
    ofbiz/trunk/framework/base/src/org/ofbiz/base/util/cache/UtilCache.java

Modified: ofbiz/trunk/framework/base/src/org/ofbiz/base/util/cache/UtilCache.java
URL: http://svn.apache.org/viewvc/ofbiz/trunk/framework/base/src/org/ofbiz/base/util/cache/UtilCache.java?rev=929836&r1=929835&r2=929836&view=diff
==============================================================================
--- ofbiz/trunk/framework/base/src/org/ofbiz/base/util/cache/UtilCache.java (original)
+++ ofbiz/trunk/framework/base/src/org/ofbiz/base/util/cache/UtilCache.java Thu Apr  1 04:45:29 2010
@@ -179,14 +179,9 @@ public class UtilCache<K, V> implements 
             if (value != null) {
                 useFileSystemStore = "true".equals(value);
             }
-            try {
-                value = res.getString("cache.file.store");
-                if (value != null) {
-                    fileStore = value;
-                }
-            } catch (MissingResourceException e) {
-            } catch (Exception e) {
-                Debug.logWarning(e, "Error getting cache.file.store value from cache.properties file for propNames: " + propNames, module);
+            value = getPropertyParam(res, new String[0], "cache.file.store");
+            if (value != null) {
+                fileStore = value;
             }
         }
     }