Properties runnerProps = ProjectReactorBuilder.toProperties(TestUtils.getResource(this.getClass(), projectFolder + "/sonar-project.properties"));
for (final String name : runnerProps.stringPropertyNames()) {
props.put(name, runnerProps.getProperty(name));
}
props.put("sonar.projectBaseDir", TestUtils.getResource(this.getClass(), projectFolder).getAbsolutePath());
TaskProperties taskProps = new TaskProperties(props, null);
ProjectReactor projectReactor = new DeprecatedProjectReactorBuilder(taskProps).execute();
return projectReactor.getRoot();
}