From 4e6f8d137897291902b5ce61d51b3cbe0af56742 Mon Sep 17 00:00:00 2001 From: Julien HENRY Date: Thu, 7 Sep 2017 17:39:33 +0200 Subject: [PATCH] SONAR-9770 Deprecate 'preview'/'issues' analysis mode --- .../java/org/sonar/scanner/bootstrap/GlobalAnalysisMode.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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; } -- 2.39.5