diff options
author | Julien HENRY <julien.henry@sonarsource.com> | 2018-11-15 18:52:56 +0100 |
---|---|---|
committer | sonartech <sonartech@sonarsource.com> | 2019-01-16 09:43:01 +0100 |
commit | 6a598e7d7973171e04d78483085ede97a4e21dcb (patch) | |
tree | 00ea7758ca6eff77b7d8611e9aed1deccbc76765 /sonar-scanner-engine/src/main/java/org/sonar/scanner/scan/InputProjectProvider.java | |
parent | 059a10d425fff575cbcd1740023db719310d06e8 (diff) | |
download | sonarqube-6a598e7d7973171e04d78483085ede97a4e21dcb.tar.gz sonarqube-6a598e7d7973171e04d78483085ede97a4e21dcb.zip |
SONAR-11459 Remove ModuleFileSystemInitializer
Diffstat (limited to 'sonar-scanner-engine/src/main/java/org/sonar/scanner/scan/InputProjectProvider.java')
-rw-r--r-- | sonar-scanner-engine/src/main/java/org/sonar/scanner/scan/InputProjectProvider.java | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/sonar-scanner-engine/src/main/java/org/sonar/scanner/scan/InputProjectProvider.java b/sonar-scanner-engine/src/main/java/org/sonar/scanner/scan/InputProjectProvider.java index 4363fb6b19e..ea05d64e4b1 100644 --- a/sonar-scanner-engine/src/main/java/org/sonar/scanner/scan/InputProjectProvider.java +++ b/sonar-scanner-engine/src/main/java/org/sonar/scanner/scan/InputProjectProvider.java @@ -19,13 +19,19 @@ */ package org.sonar.scanner.scan; +import java.util.Locale; import org.picocontainer.injectors.ProviderAdapter; import org.sonar.api.batch.bootstrap.ProjectReactor; +import org.sonar.api.batch.fs.internal.DefaultInputModule; import org.sonar.api.batch.fs.internal.DefaultInputProject; +import org.sonar.api.utils.log.Logger; +import org.sonar.api.utils.log.Loggers; import org.sonar.scanner.scan.filesystem.ScannerComponentIdGenerator; public class InputProjectProvider extends ProviderAdapter { + private static final Logger LOG = Loggers.get(DefaultInputModule.class); + private DefaultInputProject project = null; public DefaultInputProject provide(ProjectBuildersExecutor projectBuildersExecutor, ProjectReactorValidator validator, @@ -37,8 +43,12 @@ public class InputProjectProvider extends ProviderAdapter { // 2 Validate final reactor validator.validate(projectReactor); - // 3 Create modules and the hierarchy + // 3 Create project project = new DefaultInputProject(projectReactor.getRoot(), scannerComponentIdGenerator.getAsInt()); + + LOG.info("Base dir: {}", project.getBaseDir().toAbsolutePath().toString()); + LOG.info("Working dir: {}", project.getWorkDir().toAbsolutePath().toString()); + LOG.debug("Project global encoding: {}, default locale: {}", project.getEncoding().displayName(), Locale.getDefault()); } return project; } |