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

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

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

doogie-3
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;
             }
         }
     }