From 4dd4ea74c1859b53e98751908779da4d74d270f3 Mon Sep 17 00:00:00 2001 From: Fabrice Bellingard Date: Wed, 16 May 2012 17:48:37 +0200 Subject: [PATCH] SONAR-3074 Disable update check for every FB plugin --- .../java/org/sonar/plugins/findbugs/FindbugsExecutor.java | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/plugins/sonar-findbugs-plugin/src/main/java/org/sonar/plugins/findbugs/FindbugsExecutor.java b/plugins/sonar-findbugs-plugin/src/main/java/org/sonar/plugins/findbugs/FindbugsExecutor.java index cf742540336..1f4e9c027ce 100644 --- a/plugins/sonar-findbugs-plugin/src/main/java/org/sonar/plugins/findbugs/FindbugsExecutor.java +++ b/plugins/sonar-findbugs-plugin/src/main/java/org/sonar/plugins/findbugs/FindbugsExecutor.java @@ -80,6 +80,8 @@ public class FindbugsExecutor implements BatchExtension { customPlugins = loadFindbugsPlugins(); + disableUpdateChecksOnEveryPlugin(); + Project project = configuration.getFindbugsProject(); engine.setProject(project); @@ -184,6 +186,12 @@ public class FindbugsExecutor implements BatchExtension { return customPluginList; } + private void disableUpdateChecksOnEveryPlugin() { + for (Plugin plugin : Plugin.getAllPlugins()) { + plugin.setMyGlobalOption("noUpdateChecks", "true"); + } + } + private static void resetCustomPluginList(Collection customPlugins) { if (customPlugins != null) { for (Plugin plugin : customPlugins) { -- 2.39.5