Bugfix: Wrong Path of DATA/LOCALE Dir

git-svn-id: https://svn.berlios.de/svnroot/repos/yacy/trunk@182 6c8d7289-2bf4-0310-a012-ef5d649a1542
pull/1/head
allo 20 years ago
parent 9c224ffe99
commit 3b03d99797

@ -261,7 +261,7 @@ public final class yacy {
} }
//Copy the shipped locales into DATA //Copy the shipped locales into DATA
File localesPath = new File(sb.getRootPath(), sb.getConfig("localesPath", "DATA/LOCALES")); File localesPath = new File(sb.getRootPath(), sb.getConfig("localesPath", "DATA/LOCALE"));
File defaultLocalesPath = new File(sb.getRootPath(), "locales"); File defaultLocalesPath = new File(sb.getRootPath(), "locales");
try{ try{
@ -271,6 +271,7 @@ public final class yacy {
if(defaultLocales[i].getName().endsWith(".lng")) if(defaultLocales[i].getName().endsWith(".lng"))
serverFileUtils.copy(defaultLocales[i], new File(localesPath, defaultLocales[i].getName())); serverFileUtils.copy(defaultLocales[i], new File(localesPath, defaultLocales[i].getName()));
} }
serverLog.logInfo("STARTUP", "Copied the default lokales to DATA/LOCALE");
}catch(NullPointerException e){ }catch(NullPointerException e){
serverLog.logError("STARTUP", "Nullpointer Exception while copying the default Locales"); serverLog.logError("STARTUP", "Nullpointer Exception while copying the default Locales");
} }

Loading…
Cancel
Save