aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/sonar-xoo-plugin/src
diff options
context:
space:
mode:
authorJulien HENRY <julien.henry@sonarsource.com>2014-09-25 16:23:37 +0200
committerJulien HENRY <julien.henry@sonarsource.com>2014-10-02 17:52:23 +0200
commitfdf66ba2f4ff25083bac5fd81e2e2a3b542fd2f4 (patch)
treef7a266e22585c42e08580c6a7a9c600c7755c82d /plugins/sonar-xoo-plugin/src
parentcb639f864815f8dfd7dbbd0f21fd4ad08b7db8cc (diff)
downloadsonarqube-fdf66ba2f4ff25083bac5fd81e2e2a3b542fd2f4.tar.gz
sonarqube-fdf66ba2f4ff25083bac5fd81e2e2a3b542fd2f4.zip
SONAR-5473 Fix fetching of remote SCM data
Diffstat (limited to 'plugins/sonar-xoo-plugin/src')
-rw-r--r--plugins/sonar-xoo-plugin/src/main/java/org/sonar/xoo/scm/XooBlameCommand.java5
1 files changed, 4 insertions, 1 deletions
diff --git a/plugins/sonar-xoo-plugin/src/main/java/org/sonar/xoo/scm/XooBlameCommand.java b/plugins/sonar-xoo-plugin/src/main/java/org/sonar/xoo/scm/XooBlameCommand.java
index 7d492cc315b..4e743613788 100644
--- a/plugins/sonar-xoo-plugin/src/main/java/org/sonar/xoo/scm/XooBlameCommand.java
+++ b/plugins/sonar-xoo-plugin/src/main/java/org/sonar/xoo/scm/XooBlameCommand.java
@@ -23,6 +23,8 @@ import com.google.common.annotations.VisibleForTesting;
import com.google.common.base.Charsets;
import org.apache.commons.io.FileUtils;
import org.apache.commons.lang.StringUtils;
+import org.sonar.api.BatchComponent;
+import org.sonar.api.batch.InstantiationStrategy;
import org.sonar.api.batch.fs.FileSystem;
import org.sonar.api.batch.fs.InputFile;
import org.sonar.api.batch.scm.BlameCommand;
@@ -35,7 +37,8 @@ import java.util.ArrayList;
import java.util.Date;
import java.util.List;
-public class XooBlameCommand implements BlameCommand {
+@InstantiationStrategy(InstantiationStrategy.PER_BATCH)
+public class XooBlameCommand implements BlameCommand, BatchComponent {
private static final String SCM_EXTENSION = ".scm";