Project

General

Profile

Revision bdc08221

IDbdc0822189c5482072210b2985ac7b7b34c71d5d
Parent 61dee665
Child ee512dbf

Added by Andreas Kohlbecker 9 months ago

ref #8189 using getCdmHomeDirFallback() when the appcontext is not yet available

View differences:

eu.etaxonomy.taxeditor.cdmlib/src/main/java/eu/etaxonomy/cdm/api/cache/CdmServiceCacher.java
59 59
        EhCacheConfiguration cacheConfig = new EhCacheConfiguration();
60 60

  
61 61
        DiskStoreConfiguration diskStoreConfiguration = new DiskStoreConfiguration();
62
        File ehcacheFolder = ConfigFileUtil.getCdmHomeSubDir("taxeditor-ehcache");
62
        File ehcacheFolder;
63
        try {
64
            ehcacheFolder = ConfigFileUtil.getCdmHomeSubDir("taxeditor-ehcache");
65
        } catch (Exception e){
66
            ehcacheFolder = ConfigFileUtil.getCdmHomeDirFallback("taxeditor-ehcache");
67
        }
63 68
        // FIXME use subfolder per taxeditor version to allow running multiple installations in parallel
64 69
        // String taxEditorVersion = ..;
65 70
        // File ehcacheFolder = new File(ehcacheFolder, taxEditorVersion);

Also available in: Unified diff

Add picture from clipboard (Maximum size: 40 MB)