aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/sonar-findbugs-plugin/src
diff options
context:
space:
mode:
authorFabrice Bellingard <bellingard@gmail.com>2012-05-16 17:48:37 +0200
committerFabrice Bellingard <bellingard@gmail.com>2012-05-16 17:49:15 +0200
commit4dd4ea74c1859b53e98751908779da4d74d270f3 (patch)
tree08e4da28901e66c638b1198a3416966ca5c89fac /plugins/sonar-findbugs-plugin/src
parented577004fe47daa335abcdd2287231400fb0dcb4 (diff)
downloadsonarqube-4dd4ea74c1859b53e98751908779da4d74d270f3.tar.gz
sonarqube-4dd4ea74c1859b53e98751908779da4d74d270f3.zip
SONAR-3074 Disable update check for every FB plugin
Diffstat (limited to 'plugins/sonar-findbugs-plugin/src')
-rw-r--r--plugins/sonar-findbugs-plugin/src/main/java/org/sonar/plugins/findbugs/FindbugsExecutor.java8
1 files changed, 8 insertions, 0 deletions
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<Plugin> customPlugins) {
if (customPlugins != null) {
for (Plugin plugin : customPlugins) {