summaryrefslogtreecommitdiffstats
path: root/plugins/sonar-dbcleaner-plugin
diff options
context:
space:
mode:
authorSimon Brandhof <simon.brandhof@gmail.com>2011-06-15 10:55:55 +0200
committerSimon Brandhof <simon.brandhof@gmail.com>2011-06-15 10:56:24 +0200
commit1063d63ad0fef20b898376d4465e4c88cc061c1b (patch)
treee02735640b26715c8aae7396e3cf3e0cba3e93e4 /plugins/sonar-dbcleaner-plugin
parenteb3c0dc7dec66ad446e41a8291836af352bbc819 (diff)
downloadsonarqube-1063d63ad0fef20b898376d4465e4c88cc061c1b.tar.gz
sonarqube-1063d63ad0fef20b898376d4465e4c88cc061c1b.zip
SONAR-2505 core components which write to database are disabled on dry runs
Diffstat (limited to 'plugins/sonar-dbcleaner-plugin')
-rw-r--r--plugins/sonar-dbcleaner-plugin/src/main/java/org/sonar/plugins/dbcleaner/runner/PurgeRunner.java2
1 files changed, 2 insertions, 0 deletions
diff --git a/plugins/sonar-dbcleaner-plugin/src/main/java/org/sonar/plugins/dbcleaner/runner/PurgeRunner.java b/plugins/sonar-dbcleaner-plugin/src/main/java/org/sonar/plugins/dbcleaner/runner/PurgeRunner.java
index 3cfb209410d..12542a55a22 100644
--- a/plugins/sonar-dbcleaner-plugin/src/main/java/org/sonar/plugins/dbcleaner/runner/PurgeRunner.java
+++ b/plugins/sonar-dbcleaner-plugin/src/main/java/org/sonar/plugins/dbcleaner/runner/PurgeRunner.java
@@ -27,10 +27,12 @@ import org.sonar.api.database.DatabaseSession;
import org.sonar.api.database.model.Snapshot;
import org.sonar.api.resources.Project;
import org.sonar.api.utils.TimeProfiler;
+import org.sonar.core.NotDryRun;
import org.sonar.plugins.dbcleaner.api.Purge;
import javax.persistence.Query;
+@NotDryRun
public final class PurgeRunner implements PostJob {
private DatabaseSession session;