aboutsummaryrefslogtreecommitdiffstats
path: root/sonar-plugin-api
diff options
context:
space:
mode:
authorJulien HENRY <julien.henry@sonarsource.com>2014-10-09 17:10:01 +0200
committerJulien HENRY <julien.henry@sonarsource.com>2014-10-14 11:59:06 +0200
commit4e3edd5a810a59bf307e548ecbc14fd7de7eb690 (patch)
treee4383bd5a482c76a81b7fd65d0148022df9fecea /sonar-plugin-api
parent19f80967d511bfff7399290ccbb6c98304e6e2b2 (diff)
downloadsonarqube-4e3edd5a810a59bf307e548ecbc14fd7de7eb690.tar.gz
sonarqube-4e3edd5a810a59bf307e548ecbc14fd7de7eb690.zip
SONAR-5068 Deprecate binaries and libraries related methods
Diffstat (limited to 'sonar-plugin-api')
-rw-r--r--sonar-plugin-api/src/main/java/org/sonar/api/batch/bootstrap/ProjectDefinition.java25
1 files changed, 24 insertions, 1 deletions
diff --git a/sonar-plugin-api/src/main/java/org/sonar/api/batch/bootstrap/ProjectDefinition.java b/sonar-plugin-api/src/main/java/org/sonar/api/batch/bootstrap/ProjectDefinition.java
index a5fa7ab0d93..ec3bb5efa07 100644
--- a/sonar-plugin-api/src/main/java/org/sonar/api/batch/bootstrap/ProjectDefinition.java
+++ b/sonar-plugin-api/src/main/java/org/sonar/api/batch/bootstrap/ProjectDefinition.java
@@ -62,7 +62,15 @@ public class ProjectDefinition {
*/
@Deprecated
public static final String TEST_FILES_PROPERTY = "sonar.testFiles";
+ /**
+ * @deprecated since 4.5.1 use SonarQube Java specific API
+ */
+ @Deprecated
public static final String BINARIES_PROPERTY = "sonar.binaries";
+ /**
+ * @deprecated since 4.5.1 use SonarQube Java specific API
+ */
+ @Deprecated
public static final String LIBRARIES_PROPERTY = "sonar.libraries";
public static final String BUILD_DIR_PROPERTY = "sonar.buildDir";
@@ -450,6 +458,10 @@ public class ProjectDefinition {
return tests();
}
+ /**
+ * @deprecated since 4.5.1 use SonarQube Java specific API
+ */
+ @Deprecated
public List<String> getBinaries() {
String sources = properties.getProperty(BINARIES_PROPERTY, "");
return trim(StringUtils.split(sources, SEPARATOR));
@@ -458,17 +470,26 @@ public class ProjectDefinition {
/**
* @param path path to directory with compiled source. In case of Java this is directory with class files.
* It can be absolute or relative to project directory.
- * TODO currently Sonar supports only one such directory due to dependency on MavenProject
+ * @deprecated since 4.5.1 use SonarQube Java specific API
*/
+ @Deprecated
public ProjectDefinition addBinaryDir(String path) {
appendProperty(BINARIES_PROPERTY, path);
return this;
}
+ /**
+ * @deprecated since 4.5.1 use SonarQube Java specific API
+ */
+ @Deprecated
public ProjectDefinition addBinaryDir(File f) {
return addBinaryDir(f.getAbsolutePath());
}
+ /**
+ * @deprecated since 4.5.1 use SonarQube Java specific API
+ */
+ @Deprecated
public List<String> getLibraries() {
String sources = properties.getProperty(LIBRARIES_PROPERTY, "");
return trim(StringUtils.split(sources, SEPARATOR));
@@ -477,7 +498,9 @@ public class ProjectDefinition {
/**
* @param path path to file with third-party library. In case of Java this is path to jar file.
* It can be absolute or relative to project directory.
+ * @deprecated since 4.5.1 use SonarQube Java specific API
*/
+ @Deprecated
public void addLibrary(String path) {
appendProperty(LIBRARIES_PROPERTY, path);
}