aboutsummaryrefslogtreecommitdiffstats
path: root/sonar-scanner-engine
diff options
context:
space:
mode:
authorJulien HENRY <julien.henry@sonarsource.com>2017-09-07 17:39:33 +0200
committerJulien HENRY <julien.henry@sonarsource.com>2017-09-15 08:51:08 +0200
commit4e6f8d137897291902b5ce61d51b3cbe0af56742 (patch)
tree02b060273ce809a5f50c6fc90fc2728a8d2b874d /sonar-scanner-engine
parentd7f6b43479809e01af8d0ebeda96cc0ed2520d31 (diff)
downloadsonarqube-4e6f8d137897291902b5ce61d51b3cbe0af56742.tar.gz
sonarqube-4e6f8d137897291902b5ce61d51b3cbe0af56742.zip
SONAR-9770 Deprecate 'preview'/'issues' analysis mode
Diffstat (limited to 'sonar-scanner-engine')
-rw-r--r--sonar-scanner-engine/src/main/java/org/sonar/scanner/bootstrap/GlobalAnalysisMode.java4
1 files changed, 3 insertions, 1 deletions
diff --git a/sonar-scanner-engine/src/main/java/org/sonar/scanner/bootstrap/GlobalAnalysisMode.java b/sonar-scanner-engine/src/main/java/org/sonar/scanner/bootstrap/GlobalAnalysisMode.java
index 8bc053566e5..3da37eedc63 100644
--- a/sonar-scanner-engine/src/main/java/org/sonar/scanner/bootstrap/GlobalAnalysisMode.java
+++ b/sonar-scanner-engine/src/main/java/org/sonar/scanner/bootstrap/GlobalAnalysisMode.java
@@ -43,8 +43,10 @@ public class GlobalAnalysisMode {
mediumTestMode = "true".equals(props.property(MEDIUM_TEST_ENABLED));
if (preview) {
LOG.info("Preview mode");
+ LOG.warn("The use of the preview mode (sonar.analysis.mode=preview) is deprecated. This mode will be dropped in the future.");
} else if (issues) {
LOG.info("Issues mode");
+ LOG.warn("The use of the issues mode (sonar.analysis.mode=issues) is deprecated. This mode will be dropped in the future.");
} else {
LOG.info("Publish mode");
}
@@ -52,7 +54,7 @@ public class GlobalAnalysisMode {
LOG.info("Medium test mode");
}
}
-
+
public boolean isPreview() {
return preview;
}