From 902a0cd77a8401963e5f5a4840efcd3cf10c827c Mon Sep 17 00:00:00 2001 From: Julien HENRY Date: Mon, 28 Sep 2015 10:31:56 +0200 Subject: [PATCH] SONARUNNER-99 Remove references to sonar.libraries and sonar.binaries --- .../sonar/runner/api/RunnerProperties.java | 6 +++-- .../org/sonar/runner/api/ScanProperties.java | 24 ++++--------------- 2 files changed, 8 insertions(+), 22 deletions(-) diff --git a/sonar-runner-api/src/main/java/org/sonar/runner/api/RunnerProperties.java b/sonar-runner-api/src/main/java/org/sonar/runner/api/RunnerProperties.java index 0a855b7..73bb921 100644 --- a/sonar-runner-api/src/main/java/org/sonar/runner/api/RunnerProperties.java +++ b/sonar-runner-api/src/main/java/org/sonar/runner/api/RunnerProperties.java @@ -20,8 +20,8 @@ package org.sonar.runner.api; /** - * Mostly used properties that can be injected in {@link Runner#setProperty(String, String)}. - * See documentation for more properties. + * Mostly used properties that can be passed to {@link EmbeddedRunner#addGlobalProperties(java.util.Properties)}. + * See documentation for more properties. * * @since 2.2 */ @@ -33,7 +33,9 @@ public interface RunnerProperties { /** * Task to execute, "scan" by default + * @deprecated since 2.5 No more task starting from SQ 5.2 */ + @Deprecated String TASK = "sonar.task"; /** diff --git a/sonar-runner-api/src/main/java/org/sonar/runner/api/ScanProperties.java b/sonar-runner-api/src/main/java/org/sonar/runner/api/ScanProperties.java index 8d8154b..75d24c8 100644 --- a/sonar-runner-api/src/main/java/org/sonar/runner/api/ScanProperties.java +++ b/sonar-runner-api/src/main/java/org/sonar/runner/api/ScanProperties.java @@ -20,8 +20,8 @@ package org.sonar.runner.api; /** - * Most commonly used properties of the task "scan". These properties are injected in {@link Runner#setProperty(String, String)}. - * See documentation for more properties. + * Most commonly used properties for a SonarQube analysis. These properties are passed to {@link EmbeddedRunner#runAnalysis(java.util.Properties)}. + * See documentation for more properties. * * @since 2.2 */ @@ -31,7 +31,9 @@ public interface ScanProperties { * Default task * * @see RunnerProperties#TASK + * @deprecated since 2.5 No more task since SQ 5.2 */ + @Deprecated String SCAN_TASK = "scan"; /** @@ -64,24 +66,6 @@ public interface ScanProperties { */ String PROJECT_TEST_DIRS = "sonar.tests"; - /** - * Optional paths to binaries, for example to declare the directory of Java bytecode. Example : "binDir" - */ - String PROJECT_BINARY_DIRS = "sonar.binaries"; - - /** - * Optional comma-separated list of paths to libraries. Example : path/to/library/*.jar,path/to/specific/library/myLibrary.jar,parent/*.jar - */ - String PROJECT_LIBRARIES = "sonar.libraries"; - - String PROJECT_LANGUAGE = "sonar.language"; - - /** - * It becomes quickly necessary to input historical data and to highlight some events. It is possible by going for example in a subversion tag - * and use this property. Format is yyyy-MM-dd, for example 2010-12-25. - */ - String PROJECT_DATE = "sonar.projectDate"; - /** * Property used to specify the base directory of the project to analyse. Default is ".". */ -- 2.39.5