aboutsummaryrefslogtreecommitdiffstats
path: root/it
diff options
context:
space:
mode:
authorJulien HENRY <henryju@yahoo.fr>2016-06-14 13:19:08 +0200
committerJulien HENRY <henryju@yahoo.fr>2016-07-05 14:00:16 +0200
commit0ba54087a18539d0fbe4d8e985e18b01bfe67757 (patch)
treee76db84602f4c1a98748f933062ddefcca6936fe /it
parent1dba982961537fd82e35e016402d962afde7d76b (diff)
downloadsonarqube-0ba54087a18539d0fbe4d8e985e18b01bfe67757.tar.gz
sonarqube-0ba54087a18539d0fbe4d8e985e18b01bfe67757.zip
SONAR-7727 Remove deprecated stuff on ProjectDefinition
Diffstat (limited to 'it')
-rw-r--r--it/it-plugins/project-builder-plugin/src/main/java/CreateSubProjects.java8
1 files changed, 4 insertions, 4 deletions
diff --git a/it/it-plugins/project-builder-plugin/src/main/java/CreateSubProjects.java b/it/it-plugins/project-builder-plugin/src/main/java/CreateSubProjects.java
index b5cec0a10e3..b15196f38fc 100644
--- a/it/it-plugins/project-builder-plugin/src/main/java/CreateSubProjects.java
+++ b/it/it-plugins/project-builder-plugin/src/main/java/CreateSubProjects.java
@@ -1,3 +1,4 @@
+
/*
* SonarQube
* Copyright (C) 2009-2016 SonarSource SA
@@ -17,13 +18,12 @@
* along with this program; if not, write to the Free Software Foundation,
* Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*/
+import java.io.File;
import org.sonar.api.batch.bootstrap.ProjectBuilder;
import org.sonar.api.batch.bootstrap.ProjectDefinition;
import org.sonar.api.batch.bootstrap.ProjectReactor;
import org.sonar.api.config.Settings;
-import java.io.File;
-
/**
* This plugin relates to projects/project-builder sample
*/
@@ -58,7 +58,7 @@ public final class CreateSubProjects extends ProjectBuilder {
subProject.setKey("com.sonarsource.it.projects.batch:project-builder-module-a");
subProject.setVersion(root.getVersion());
subProject.setName("Module A");
- subProject.setSourceDirs("src");
+ subProject.addSources("src");
root.addSubProject(subProject);
return subProject;
}
@@ -70,7 +70,7 @@ public final class CreateSubProjects extends ProjectBuilder {
subProject.setKey("com.sonarsource.it.projects.batch:project-builder-module-b");
subProject.setVersion(root.getVersion());
subProject.setName("Module B");
- subProject.addSourceFiles("src/HelloB.java");
+ subProject.addSources("src/HelloB.java");
root.addSubProject(subProject);
return subProject;
}