From a2eeb6138c4856e981e1a28d7eaf15856629d7cf Mon Sep 17 00:00:00 2001 From: danielr Date: Sun, 7 Sep 2008 13:04:17 +0000 Subject: [PATCH] fix for http://forum.yacy-websuche.de/viewtopic.php?f=6&t=1416 git-svn-id: https://svn.berlios.de/svnroot/repos/yacy/trunk@5120 6c8d7289-2bf4-0310-a012-ef5d649a1542 --- source/de/anomic/server/logging/LogalizerHandler.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/source/de/anomic/server/logging/LogalizerHandler.java b/source/de/anomic/server/logging/LogalizerHandler.java index d9f269fa6..ea54f55dd 100644 --- a/source/de/anomic/server/logging/LogalizerHandler.java +++ b/source/de/anomic/server/logging/LogalizerHandler.java @@ -25,6 +25,7 @@ package de.anomic.server.logging; +import java.io.File; import java.io.IOException; import java.net.URISyntaxException; import java.util.ArrayList; @@ -68,7 +69,7 @@ public class LogalizerHandler extends Handler { System.out.println("Can't find any parsers in "+parserDir.toString()); } for(final String filename: parserDirFiles) { - final Pattern patternGetClassName = Pattern.compile(".*/([^/]+)\\.class"); + final Pattern patternGetClassName = Pattern.compile(".*"+ File.separator +"([^"+ File.separator +"]+)\\.class"); final Matcher matcherClassName = patternGetClassName.matcher(filename); matcherClassName.find(); final String className = matcherClassName.group(1);