Plugins: Blacklist i2pbote and BwSchedule

Translate exceptions thrown from PluginStarter
This commit is contained in:
zzz
2017-03-23 14:55:56 +00:00
parent 47277063e4
commit 1ab67de677
2 changed files with 48 additions and 2 deletions

View File

@ -457,6 +457,13 @@ class PluginUpdateRunner extends UpdateRunner {
statusDone("<b>" + _t("Plugin requires Jetty version {0} or higher", minVersion) + "</b>");
return;
}
String blacklistVersion = PluginStarter.jetty9Blacklist.get(appName);
if (blacklistVersion != null &&
VersionComparator.comp(version, blacklistVersion) <= 0) {
to.delete();
statusDone("<b>" + _t("Plugin requires Jetty version {0} or lower", "8.9999") + "</b>");
return;
}
maxVersion = ConfigClientsHelper.stripHTML(props, "max-jetty-version");
if (maxVersion != null &&
VersionComparator.comp(maxVersion, oldVersion) < 0) {