Skip to content

Commit

Permalink
homePath instead if RootPath
Browse files Browse the repository at this point in the history
git-svn-id: https://svn.berlios.de/svnroot/repos/yacy/trunk@775 6c8d7289-2bf4-0310-a012-ef5d649a1542
  • Loading branch information
allo committed Sep 22, 2005
1 parent 495bc8b commit 7991c05
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions source/yacy.java
Expand Up @@ -253,10 +253,9 @@ private static void startup(String homePath, long startupMemFree, long startupMe
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 {
Expand Down Expand Up @@ -377,8 +376,8 @@ private static void startup(String homePath, long startupMemFree, long startupMe
}

//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();
Expand Down

0 comments on commit 7991c05

Please sign in to comment.