Skip to content

Distributed Peer-to-Peer Web Search Engine and Intranet Search Appliance

fixed svn 805

orbiter1669eaaa1aa5
diff --git a/source/de/anomic/plasma/plasmaSwitchboard.java b/source/de/anomic/plasma/plasmaSwitchboard.java
index 17871c96b..d49f8e395 100644
--- a/source/de/anomic/plasma/plasmaSwitchboard.java
+++ b/source/de/anomic/plasma/plasmaSwitchboard.java
@@ -298,8 +298,14 @@ public final class plasmaSwitchboard extends serverAbstractSwitch implements ser
// create the cache directory
String cache = getConfig("proxyCache", "DATA/HTCACHE");
cache = cache.replace('\\', '/');
- if (cache.endsWith("/")) { cache = cache.substring(0, cache.length() - 1); }
- File htCachePath = new File(cache); // don't use rootPath
+ if (cache.endsWith("/")) { cache = cache.substring(0, cache.length() - 1); }
+ File htCachePath;
+ if (new File(cache).isAbsolute()) {
+ htCachePath = new File(cache); // don't use rootPath
+ } else {
+ htCachePath = new File(rootPath, cache);
+ }
+ this.log.logInfo("HTCACHE Path = " + htCachePath.getAbsolutePath());
long maxCacheSize = 1024 * 1024 * Long.parseLong(getConfig("proxyCacheSize", "2")); // this is megabyte
this.cacheManager = new plasmaHTCache(htCachePath, maxCacheSize, ramHTTP);