]> source.dussan.org Git - sonarqube.git/commitdiff
SONAR-5109 Deprecate properties sonar.skippedModules and sonar.includedModules
authorJulien Lancelot <julien.lancelot@sonarsource.com>
Wed, 9 Apr 2014 12:33:57 +0000 (14:33 +0200)
committerJulien Lancelot <julien.lancelot@sonarsource.com>
Wed, 9 Apr 2014 12:34:05 +0000 (14:34 +0200)
sonar-batch/src/main/java/org/sonar/batch/scan/ProjectExclusions.java
sonar-plugin-api/src/main/java/org/sonar/api/CoreProperties.java

index 9f29fe2cafd740ef44e73f0dd63e442b190f6513..9ae79832e12689d168a46611a70554b1e074c7f3 100644 (file)
@@ -60,6 +60,14 @@ public class ProjectExclusions implements TaskComponent {
   public void apply() {
     if (!reactor.getProjects().isEmpty() && StringUtils.isNotBlank(reactor.getProjects().get(0).getKey())) {
       LOG.info("Apply project exclusions");
+
+      if (settings.hasKey(CoreProperties.CORE_INCLUDED_MODULES_PROPERTY)) {
+        LOG.warn("'sonar.includedModules' property is deprecated since version 4.3 and should not be used anymore.");
+      }
+      if (settings.hasKey(CoreProperties.CORE_SKIPPED_MODULES_PROPERTY)) {
+        LOG.warn("'sonar.skippedModules' property is deprecated since version 4.3 and should not be used anymore.");
+      }
+
       for (ProjectDefinition project : reactor.getProjects()) {
         if (isExcluded(key(project), project == reactor.getRoot())) {
           exclude(project);
index ef9b5f6eb518b1abf81e85eb8341714815170100..7c1ed5e91f12b0ea6f5da1201ffac3b55a5eea08 100644 (file)
@@ -199,13 +199,21 @@ public interface CoreProperties {
   String CORE_VIOLATION_LOCALE_DEFAULT_VALUE = "en";
   String CORE_IMPORT_SOURCES_PROPERTY = "sonar.importSources";
   boolean CORE_IMPORT_SOURCES_DEFAULT_VALUE = true;
+
+  /**
+   * @deprecated since 4.3. See http://jira.codehaus.org/browse/SONAR-5109
+   */
+  @Deprecated
   String CORE_SKIPPED_MODULES_PROPERTY = "sonar.skippedModules";
+
   String CORE_RULE_WEIGHTS_PROPERTY = "sonar.core.rule.weight";
   String CORE_RULE_WEIGHTS_DEFAULT_VALUE = "INFO=0;MINOR=1;MAJOR=3;CRITICAL=5;BLOCKER=10";
 
   /**
    * @since 4.0
+   * @deprecated since 4.3. See http://jira.codehaus.org/browse/SONAR-5109
    */
+  @Deprecated
   String CORE_INCLUDED_MODULES_PROPERTY = "sonar.includedModules";
 
   /**