]> source.dussan.org Git - sonarqube.git/commitdiff
Log when dry run is enabled
authorsimonbrandhof <simon.brandhof@gmail.com>
Sun, 26 Jun 2011 06:42:39 +0000 (08:42 +0200)
committersimonbrandhof <simon.brandhof@gmail.com>
Sun, 26 Jun 2011 06:42:39 +0000 (08:42 +0200)
sonar-batch/src/main/java/org/sonar/batch/bootstrap/DryRun.java

index 01376022d908246001656f2205f76641298a4202..c269fc6b126e3a7652451e77d6b5dae04b3ea113 100644 (file)
 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) {