revert changes in cdmServiceCacher
authorKatja Luther <k.luther@bgbm.org>
Thu, 4 Apr 2019 07:38:32 +0000 (09:38 +0200)
committerKatja Luther <k.luther@bgbm.org>
Thu, 4 Apr 2019 07:38:32 +0000 (09:38 +0200)
eu.etaxonomy.taxeditor.cdmlib/src/main/java/eu/etaxonomy/cdm/api/cache/CdmServiceCacher.java

index 53e48029275ce53a808bf94095b767d3e9599849..da3e92b27d41afb87b2d8559bea6ef18e150d994 100644 (file)
@@ -60,7 +60,11 @@ public class CdmServiceCacher extends CdmCacher implements ICdmEntitySessionMana
 
         DiskStoreConfiguration diskStoreConfiguration = new DiskStoreConfiguration();
         File ehcacheFolder;
-        ehcacheFolder = ConfigFileUtil.getCdmHomeSubDir("taxeditor-ehcache");
+        try {
+            ehcacheFolder = ConfigFileUtil.getCdmHomeSubDir("taxeditor-ehcache");
+        } catch (Exception e){
+            ehcacheFolder = ConfigFileUtil.getCdmHomeSubDirFallback("taxeditor-ehcache");
+        }
 
         // FIXME use subfolder per taxeditor version to allow running multiple installations in parallel
         // String taxEditorVersion = ..;