applied configuration path patch

git-svn-id: https://svn.berlios.de/svnroot/repos/yacy/trunk@4697 6c8d7289-2bf4-0310-a012-ef5d649a1542
pull/1/head
orbiter 17 years ago
parent 96e39b297a
commit cb93ded5c6

@ -225,13 +225,13 @@ public final class yacy {
f.deleteOnExit(); f.deleteOnExit();
pro = new File(homePath, "libx").exists(); pro = new File(homePath, "libx").exists();
String oldconf = "DATA/SETTINGS/httpProxy.conf"; String oldconf = "DATA/SETTINGS/httpProxy.conf".replace("/", File.separator);
String newconf = "DATA/SETTINGS/yacy.conf"; String newconf = "DATA/SETTINGS/yacy.conf".replace("/", File.separator);
File oldconffile = new File(homePath, oldconf); File oldconffile = new File(homePath, oldconf);
if (oldconffile.exists()) { if (oldconffile.exists()) {
oldconffile.renameTo(new File(homePath, newconf)); oldconffile.renameTo(new File(homePath, newconf));
} }
sb = new plasmaSwitchboard(homePath, "defaults/yacy.init", newconf, pro); sb = new plasmaSwitchboard(homePath, "defaults/yacy.init".replace("/", File.separator), newconf, pro);
sbSync.V(); // signal that the sb reference was set sbSync.V(); // signal that the sb reference was set
// save information about available memory at startup time // save information about available memory at startup time

Loading…
Cancel
Save