p.load(in);
String[] plugins
= StringHelper.toArray(p.getProperty("plugins", ""), ";");
for (int i = 0; i < plugins.length; i++) {
PluginInfo info = new PluginInfo(plugins[i], p);
// lafs are currently broken
if (info.getType() == PluginInfo.TYPE_LAF) {
continue;
}
// check requirements
// FIX: this has to be adopted to the release_nr compare mechanism
// String requires = info.getRequires();
// if (requires.length() > 0
// && VersionParser.compare(requires, XNap.VERSION) != 0) {
// logger.warn("plugin requires XNap " + requires);
// }
logger.debug("adding plugin: " + info.getClassName());
pluginInfos.add(info);
if (path != null) {
try {
loadPlugin(path, info);
}
catch (IOException e) {
logger.warn("could not load plugin", e);
}
}
else {
info.setLoaded(true);
}
}
}