|
|
|
@ -177,14 +177,17 @@ public class ConfigHeuristics_p {
|
|
|
|
|
|
|
|
|
|
String tmps = e.getValue();
|
|
|
|
|
prop.putHTML("osdcfg_" + c + "_url", tmps);
|
|
|
|
|
tmps = tmps.substring(0,tmps.lastIndexOf("/"));
|
|
|
|
|
final int lastpos = tmps.lastIndexOf("/");
|
|
|
|
|
if (lastpos > 6) { // after http://x or ftp://x
|
|
|
|
|
tmps = tmps.substring(0, lastpos);
|
|
|
|
|
prop.putHTML("osdcfg_" + c + "_urlhostlink", tmps);
|
|
|
|
|
} else prop.putHTML("osdcfg_" + c + "_urlhostlink", "#");
|
|
|
|
|
|
|
|
|
|
c++;
|
|
|
|
|
}
|
|
|
|
|
prop.put("osdcfg", c);
|
|
|
|
|
} catch (final IOException e1) {
|
|
|
|
|
ConcurrentLog.logException(e1);
|
|
|
|
|
ConcurrentLog.warn("OpenSearchConnector", "file not found " + f.getAbsolutePath());
|
|
|
|
|
prop.put("osdcfg", 0);
|
|
|
|
|
}
|
|
|
|
|
prop.putHTML("osderrmsg",osderrmsg);
|
|
|
|
@ -232,7 +235,7 @@ public class ConfigHeuristics_p {
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
} catch (final IOException e) {
|
|
|
|
|
ConcurrentLog.logException(e);
|
|
|
|
|
ConcurrentLog.warn("OpenSearchConnector", "file not found " + f.getAbsolutePath());
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// re-read config (and create/update work table)
|
|
|
|
|