diff options
author | Simon Brandhof <simon.brandhof@gmail.com> | 2012-11-07 00:38:59 +0100 |
---|---|---|
committer | Simon Brandhof <simon.brandhof@gmail.com> | 2012-11-07 00:38:59 +0100 |
commit | 61dcae545b51dba75728c0460d3aab541d0595e9 (patch) | |
tree | dc6b8be8ca3b98618daa24b3a56fe386e8d8db3a /sonar-core/src | |
parent | 07d2a0d30c6f11b42273659378f4ee63fcfc05e5 (diff) | |
download | sonarqube-61dcae545b51dba75728c0460d3aab541d0595e9.tar.gz sonarqube-61dcae545b51dba75728c0460d3aab541d0595e9.zip |
SONAR-3895 define properties to include/exclude plugins of dry runs
Diffstat (limited to 'sonar-core/src')
-rw-r--r-- | sonar-core/src/main/java/org/sonar/core/persistence/DefaultDatabase.java | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sonar-core/src/main/java/org/sonar/core/persistence/DefaultDatabase.java b/sonar-core/src/main/java/org/sonar/core/persistence/DefaultDatabase.java index 5f6c01e4429..0cf49601983 100644 --- a/sonar-core/src/main/java/org/sonar/core/persistence/DefaultDatabase.java +++ b/sonar-core/src/main/java/org/sonar/core/persistence/DefaultDatabase.java @@ -26,6 +26,7 @@ import org.apache.commons.lang.StringUtils; import org.hibernate.cfg.Environment; import org.slf4j.Logger; import org.slf4j.LoggerFactory; +import org.sonar.api.CoreProperties; import org.sonar.api.config.Settings; import org.sonar.api.database.DatabaseProperties; import org.sonar.core.persistence.dialect.Dialect; @@ -101,7 +102,7 @@ public class DefaultDatabase implements Database { if (dialect == null) { throw new IllegalStateException("Can not guess the JDBC dialect. Please check the property sonar.jdbc.url."); } - if (H2.ID.equals(dialect.getId()) && !settings.getBoolean("sonar.dryRun")) { + if (H2.ID.equals(dialect.getId()) && !settings.getBoolean(CoreProperties.DRY_RUN)) { LoggerFactory.getLogger(DefaultDatabase.class).warn("H2 database should be used for evaluation purpose only"); } if (!properties.containsKey("sonar.jdbc.driverClassName")) { |