package org.sonar.batch.scan;
import org.apache.commons.io.FileUtils;
-import org.sonar.batch.analysis.AnalysisProperties;
import org.picocontainer.injectors.ProviderAdapter;
import org.sonar.api.batch.bootstrap.ProjectReactor;
public class MutableProjectReactorProvider extends ProviderAdapter {
private ProjectReactor reactor = null;
- public ProjectReactor provide(ProjectReactorBuilder builder, AnalysisProperties settings) {
+ public ProjectReactor provide(ProjectReactorBuilder builder) {
if (reactor == null) {
reactor = builder.execute();
cleanDirectory(reactor.getRoot().getWorkDir());
import org.mockito.Mock;
import org.mockito.MockitoAnnotations;
import org.sonar.api.batch.bootstrap.ProjectDefinition;
-import org.sonar.api.batch.bootstrap.ProjectReactor;
import org.sonar.batch.analysis.AnalysisProperties;
import org.sonar.batch.analysis.DefaultAnalysisMode;
import org.sonar.batch.repository.DefaultProjectRepositoriesLoader;
@Mock
private ProjectDefinition project;
@Mock
- private ProjectReactor projectReactor;
- @Mock
private ProjectCacheStatus cacheStatus;
@Mock
private DefaultAnalysisMode analysisMode;