merge 2.0.0 / rename installPending to executePending

This commit is contained in:
Eduard Heimbuch
2019-09-17 10:36:52 +02:00
28 changed files with 1183 additions and 136 deletions

View File

@@ -220,10 +220,10 @@ public class DefaultPluginManager implements PluginManager {
}
@Override
public void installPendingAndRestart() {
public void executePendingAndRestart() {
PluginPermissions.manage().check();
if (!pendingQueue.isEmpty()) {
restart("install pending plugins");
restart("execute pending plugin changes");
}
}

View File

@@ -33,8 +33,8 @@ class PluginCenterLoader {
LOG.info("fetch plugins from {}", url);
PluginCenterDto pluginCenterDto = client.get(url).request().contentFromJson(PluginCenterDto.class);
return mapper.map(pluginCenterDto);
} catch (IOException ex) {
LOG.error("failed to load plugins from plugin center, returning empty list");
} catch (Exception ex) {
LOG.error("failed to load plugins from plugin center, returning empty list", ex);
return Collections.emptySet();
}
}