fixed problem with htcache path

git-svn-id: https://svn.berlios.de/svnroot/repos/yacy/trunk@811 6c8d7289-2bf4-0310-a012-ef5d649a1542
pull/1/head
orbiter 20 years ago
parent 25a59a51ad
commit 9c4306e41e

@ -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;

@ -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 {

Loading…
Cancel
Save