From a8fa9990aa06974f8012078fed381caa07a691db Mon Sep 17 00:00:00 2001 From: allo Date: Sun, 5 Mar 2006 10:07:52 +0000 Subject: [PATCH] default skins support git-svn-id: https://svn.berlios.de/svnroot/repos/yacy/trunk@1825 6c8d7289-2bf4-0310-a012-ef5d649a1542 --- source/yacy.java | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/source/yacy.java b/source/yacy.java index 75d0445ec..0ae456a55 100644 --- a/source/yacy.java +++ b/source/yacy.java @@ -94,6 +94,7 @@ import de.anomic.tools.enumerateFiles; import de.anomic.yacy.yacyClient; import de.anomic.yacy.yacyCore; import de.anomic.yacy.yacySeedDB; +import de.anomic.data.listManager; /** * This is the main class of YaCy. Several threads are started from here: @@ -106,7 +107,7 @@ import de.anomic.yacy.yacySeedDB; * loaded. *
  • one serverCore - thread is started, which implements a multi-threaded * server. The process may start itself many more processes that handle -* connections. +* connections.lo *
  • finally, all idle-dependent processes are written in a queue in * plasmaSwitchboard which are worked off inside an idle-sensitive loop of the * main process. (here) @@ -388,7 +389,9 @@ public final class yacy { //Copy the shipped locales into DATA final File localesPath = new File(homePath, sb.getConfig("localesPath", "DATA/LOCALE")); + final File skinsPath = new File(homePath, sb.getConfig("skinsPath", "DATA/SKINS")); final File defaultLocalesPath = new File(homePath, "locales"); + final File defaultSkinsPath = new File(homePath, "skins"); try{ final File[] defaultLocales = defaultLocalesPath.listFiles(); @@ -401,6 +404,13 @@ public final class yacy { }catch(NullPointerException e){ serverLog.logSevere("STARTUP", "Nullpointer Exception while copying the default Locales"); } + final String[] skinFiles = listManager.getDirListing(defaultSkinsPath.getAbsolutePath()); + skinsPath.mkdirs(); + for(int i=0;i