bugfix for property table loader (did not exclude comment lines)

git-svn-id: https://svn.berlios.de/svnroot/repos/yacy/trunk@4000 6c8d7289-2bf4-0310-a012-ef5d649a1542
This commit is contained in:
orbiter 2007-07-23 13:38:17 +00:00
parent 6758beae9c
commit c48c9735cb

View File

@ -79,6 +79,7 @@ public class nxTools {
HashMap props = new HashMap(list.size());
while (i.hasNext()) {
line = ((String) i.next()).trim();
if (line.startsWith("#")) continue; // exclude comments
//System.out.println("NXTOOLS_PROPS - LINE:" + line);
pos = line.indexOf("=");
if (pos > 0) props.put(line.substring(0, pos).trim(), line.substring(pos + 1).trim());