]> source.dussan.org Git - sonarqube.git/commitdiff
SONAR-4453 Added facade declaration in task container
authorJean-Baptiste Vilain <jean-baptiste.vilain@sonarsource.com>
Thu, 11 Jul 2013 12:49:15 +0000 (14:49 +0200)
committerJean-Baptiste Vilain <jean-baptiste.vilain@sonarsource.com>
Thu, 11 Jul 2013 12:49:15 +0000 (14:49 +0200)
sonar-batch/src/main/java/org/sonar/batch/bootstrap/TaskContainer.java

index 553352c802341d3972f8ec8b8fb6a7e756058c2e..93c396ebb06f9ea974a22e076a3ad599d958cd71 100644 (file)
@@ -30,6 +30,7 @@ import org.sonar.api.utils.SonarException;
 import org.sonar.batch.scan.ScanTask;
 import org.sonar.batch.tasks.ListTask;
 import org.sonar.batch.tasks.Tasks;
+import org.sonar.core.permission.ComponentPermissionFacade;
 import org.sonar.core.resource.DefaultResourcePermissions;
 
 public class TaskContainer extends ComponentContainer {
@@ -47,8 +48,8 @@ public class TaskContainer extends ComponentContainer {
 
   private void installCoreTasks() {
     add(
-        ScanTask.DEFINITION, ScanTask.class,
-        ListTask.DEFINITION, ListTask.class);
+      ScanTask.DEFINITION, ScanTask.class,
+      ListTask.DEFINITION, ListTask.class);
   }
 
   private void installTaskExtensions() {
@@ -61,9 +62,10 @@ public class TaskContainer extends ComponentContainer {
 
   private void installComponentsUsingTaskExtensions() {
     add(
-        ResourceTypes.class,
-        DefaultResourcePermissions.class,
-        Tasks.class);
+      ResourceTypes.class,
+      ComponentPermissionFacade.class,
+      DefaultResourcePermissions.class,
+      Tasks.class);
   }
 
   @Override