From 6ea6a3ebdc985caa40b59e6939cbf169812ecf1e Mon Sep 17 00:00:00 2001 From: Jean-Baptiste Lievremont Date: Wed, 4 Mar 2015 09:48:32 +0100 Subject: [PATCH] Document method to avoid nasty side effects on Views --- .../main/java/org/sonar/server/ui/JRubyFacade.java | 11 +++++------ 1 file 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); -- 2.39.5