]> source.dussan.org Git - sonarqube.git/commitdiff
Document method to avoid nasty side effects on Views
authorJean-Baptiste Lievremont <jean-baptiste.lievremont@sonarsource.com>
Wed, 4 Mar 2015 08:48:32 +0000 (09:48 +0100)
committerJean-Baptiste Lievremont <jean-baptiste.lievremont@sonarsource.com>
Wed, 4 Mar 2015 10:12:17 +0000 (11:12 +0100)
server/sonar-server/src/main/java/org/sonar/server/ui/JRubyFacade.java

index f7a3a25875fdea5138db7531f42cb6281634a2cb..0101265cad34f81d7f72132a14c2e33b75270322 100644 (file)
@@ -19,7 +19,6 @@
  */
 package org.sonar.server.ui;
 
-import org.sonar.api.utils.log.Loggers;
 import org.sonar.api.config.License;
 import org.sonar.api.config.PropertyDefinitions;
 import org.sonar.api.config.Settings;
@@ -30,6 +29,7 @@ import org.sonar.api.platform.PluginRepository;
 import org.sonar.api.resources.Language;
 import org.sonar.api.resources.ResourceType;
 import org.sonar.api.resources.ResourceTypes;
+import org.sonar.api.utils.log.Loggers;
 import org.sonar.api.web.Footer;
 import org.sonar.api.web.Page;
 import org.sonar.api.web.RubyRailsWebservice;
@@ -46,11 +46,7 @@ import org.sonar.server.platform.Platform;
 import org.sonar.server.platform.ServerIdGenerator;
 import org.sonar.server.platform.ServerSettings;
 import org.sonar.server.platform.SettingsChangeNotifier;
-import org.sonar.server.plugins.InstalledPluginReferentialFactory;
-import org.sonar.server.plugins.PluginDownloader;
-import org.sonar.server.plugins.ServerPluginJarsInstaller;
-import org.sonar.server.plugins.ServerPluginRepository;
-import org.sonar.server.plugins.UpdateCenterMatrixFactory;
+import org.sonar.server.plugins.*;
 import org.sonar.server.rule.RuleRepositories;
 import org.sonar.server.user.NewUserNotifier;
 import org.sonar.updatecenter.common.PluginReferential;
@@ -309,6 +305,9 @@ public final class JRubyFacade {
     get(ResourceIndexerDao.class).indexResource(resourceId);
   }
 
+  /*
+   * /!\ Used by Views
+   */
   public void deleteResourceTree(String projectKey) {
     try {
       get(ComponentCleanerService.class).delete(projectKey);