Parcourir la source

Log when dry run is enabled

tags/2.9
simonbrandhof il y a 13 ans
Parent
révision
7be54b4df2

+ 5
- 1
sonar-batch/src/main/java/org/sonar/batch/bootstrap/DryRun.java Voir le fichier

@@ -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) {

Chargement…
Annuler
Enregistrer