homePath instead if RootPath

git-svn-id: https://svn.berlios.de/svnroot/repos/yacy/trunk@775 6c8d7289-2bf4-0310-a012-ef5d649a1542
pull/1/head
allo 20 years ago
parent 495bc8bec6
commit 7991c05b49

@ -253,10 +253,9 @@ public final class yacy {
if (timeout < 60000) timeout = 60000;
// create some directories
final File RootPath = new File(sb.getRootPath());
final File htRootPath = new File(RootPath, sb.getConfig("htRootPath", "htroot"));
final File htDocsPath = new File(RootPath, sb.getConfig("htDocsPath", "DATA/HTDOCS"));
File htTemplatePath = new File(RootPath, sb.getConfig("htTemplatePath","htdocs"));
final File htRootPath = new File(homePath, sb.getConfig("htRootPath", "htroot"));
final File htDocsPath = new File(homePath, sb.getConfig("htDocsPath", "DATA/HTDOCS"));
File htTemplatePath = new File(homePath, sb.getConfig("htTemplatePath","htdocs"));
// create default notifier picture
if (!((new File(htRootPath, "env/grafics/notifier.gif")).exists())) try {
@ -377,8 +376,8 @@ public final class yacy {
}
//Copy the shipped locales into DATA
final File localesPath = new File(RootPath, sb.getConfig("localesPath", "DATA/LOCALE"));
final File defaultLocalesPath = new File(RootPath, "locales");
final File localesPath = new File(homePath, sb.getConfig("localesPath", "DATA/LOCALE"));
final File defaultLocalesPath = new File(homePath, "locales");
try{
final File[] defaultLocales = defaultLocalesPath.listFiles();

Loading…
Cancel
Save