aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorsimonbrandhof <simon.brandhof@gmail.com>2011-06-26 08:42:39 +0200
committersimonbrandhof <simon.brandhof@gmail.com>2011-06-26 08:42:39 +0200
commit7be54b4df2a55f180620775659bcd888f5249183 (patch)
tree2d1850cc03bb3f0ee09e3721cdab35e3e6ce0e3f
parentf2cd26c707512543537abbbdd9bd3da30e6289a9 (diff)
downloadsonarqube-7be54b4df2a55f180620775659bcd888f5249183.tar.gz
sonarqube-7be54b4df2a55f180620775659bcd888f5249183.zip
Log when dry run is enabled
-rw-r--r--sonar-batch/src/main/java/org/sonar/batch/bootstrap/DryRun.java6
1 files changed, 5 insertions, 1 deletions
diff --git a/sonar-batch/src/main/java/org/sonar/batch/bootstrap/DryRun.java b/sonar-batch/src/main/java/org/sonar/batch/bootstrap/DryRun.java
index 01376022d90..c269fc6b126 100644
--- a/sonar-batch/src/main/java/org/sonar/batch/bootstrap/DryRun.java
+++ b/sonar-batch/src/main/java/org/sonar/batch/bootstrap/DryRun.java
@@ -20,12 +20,16 @@
package org.sonar.batch.bootstrap;
import org.apache.commons.configuration.Configuration;
+import org.sonar.api.utils.Logs;
public class DryRun {
private boolean enabled;
public DryRun(Configuration conf) {
- enabled=conf.getBoolean("sonar.dryRun", Boolean.FALSE);
+ enabled = conf.getBoolean("sonar.dryRun", Boolean.FALSE);
+ if (enabled) {
+ Logs.INFO.info("Dry run");
+ }
}
DryRun(boolean enabled) {