From 9c4306e41e2d57b41175564881364e9659a3b17c Mon Sep 17 00:00:00 2001 From: orbiter Date: Thu, 29 Sep 2005 00:24:09 +0000 Subject: [PATCH] fixed problem with htcache path git-svn-id: https://svn.berlios.de/svnroot/repos/yacy/trunk@811 6c8d7289-2bf4-0310-a012-ef5d649a1542 --- htroot/CacheAdmin_p.java | 6 ++---- source/de/anomic/plasma/plasmaSwitchboard.java | 3 +-- 2 files changed, 3 insertions(+), 6 deletions(-) diff --git a/htroot/CacheAdmin_p.java b/htroot/CacheAdmin_p.java index 91c87362d..6380b5ee4 100644 --- a/htroot/CacheAdmin_p.java +++ b/htroot/CacheAdmin_p.java @@ -84,11 +84,9 @@ public class CacheAdmin_p { } final String fileString = pathString; - final File cache = new File(switchboard.getConfig("proxyCache", "DATA/HTCACHE")); - File dir; - final File file = new File(cache, pathString); - final URL url = plasmaHTCache.getURL(cache, file); + final File file = new File(switchboard.htCachePath, pathString); + final URL url = plasmaHTCache.getURL(switchboard.htCachePath, file); if (file.isDirectory()) { dir = file; diff --git a/source/de/anomic/plasma/plasmaSwitchboard.java b/source/de/anomic/plasma/plasmaSwitchboard.java index d49f8e395..6e7c53d69 100644 --- a/source/de/anomic/plasma/plasmaSwitchboard.java +++ b/source/de/anomic/plasma/plasmaSwitchboard.java @@ -157,7 +157,7 @@ public final class plasmaSwitchboard extends serverAbstractSwitch implements ser public static plasmaURLPattern urlBlacklist; // storage management - private File cachePath; + public File htCachePath; private File plasmaPath; public File listsPath; public plasmaURLPool urlPool; @@ -299,7 +299,6 @@ public final class plasmaSwitchboard extends serverAbstractSwitch implements ser String cache = getConfig("proxyCache", "DATA/HTCACHE"); cache = cache.replace('\\', '/'); 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 {