diff options
author | simonbrandhof <simon.brandhof@gmail.com> | 2011-06-26 08:42:39 +0200 |
---|---|---|
committer | simonbrandhof <simon.brandhof@gmail.com> | 2011-06-26 08:42:39 +0200 |
commit | 7be54b4df2a55f180620775659bcd888f5249183 (patch) | |
tree | 2d1850cc03bb3f0ee09e3721cdab35e3e6ce0e3f | |
parent | f2cd26c707512543537abbbdd9bd3da30e6289a9 (diff) | |
download | sonarqube-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.java | 6 |
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) { |