summaryrefslogtreecommitdiffstats
path: root/server/sonar-server
diff options
context:
space:
mode:
authorJean-Baptiste Lievremont <jean-baptiste.lievremont@sonarsource.com>2015-03-04 09:48:32 +0100
committerJean-Baptiste Lievremont <jean-baptiste.lievremont@sonarsource.com>2015-03-04 11:12:17 +0100
commit6ea6a3ebdc985caa40b59e6939cbf169812ecf1e (patch)
tree0641544ea7ae1ff3fb5cc37c8299ee0e5453f758 /server/sonar-server
parente476a2121c5d0eea56bcd514672ff873ebaafbb5 (diff)
downloadsonarqube-6ea6a3ebdc985caa40b59e6939cbf169812ecf1e.tar.gz
sonarqube-6ea6a3ebdc985caa40b59e6939cbf169812ecf1e.zip
Document method to avoid nasty side effects on Views
Diffstat (limited to 'server/sonar-server')
-rw-r--r--server/sonar-server/src/main/java/org/sonar/server/ui/JRubyFacade.java11
1 files changed, 5 insertions, 6 deletions
diff --git a/server/sonar-server/src/main/java/org/sonar/server/ui/JRubyFacade.java b/server/sonar-server/src/main/java/org/sonar/server/ui/JRubyFacade.java
index f7a3a25875f..0101265cad3 100644
--- a/server/sonar-server/src/main/java/org/sonar/server/ui/JRubyFacade.java
+++ b/server/sonar-server/src/main/java/org/sonar/server/ui/JRubyFacade.java
@@ -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);