aboutsummaryrefslogtreecommitdiffstats
path: root/sonar-plugin-api
diff options
context:
space:
mode:
authorJulien HENRY <julien.henry@sonarsource.com>2017-08-07 18:11:58 +0200
committerJulien HENRY <julien.henry@sonarsource.com>2017-08-08 10:51:13 +0200
commit45cbb08cf2cfcdbe6f755e875cf54ce1ce04c196 (patch)
tree7e3f8ec2fdcc083324d28fd10ab1f3268e12d286 /sonar-plugin-api
parenta0f2105b46566f5bea0da5915e923fc20fd31eda (diff)
downloadsonarqube-45cbb08cf2cfcdbe6f755e875cf54ce1ce04c196.tar.gz
sonarqube-45cbb08cf2cfcdbe6f755e875cf54ce1ce04c196.zip
Fix regression introduced during previous scanner hardening
Module workDir is deleted when cleaning root module work dir when they are nested.
Diffstat (limited to 'sonar-plugin-api')
-rw-r--r--sonar-plugin-api/src/main/java/org/sonar/api/batch/fs/internal/DefaultInputModule.java6
1 files changed, 0 insertions, 6 deletions
diff --git a/sonar-plugin-api/src/main/java/org/sonar/api/batch/fs/internal/DefaultInputModule.java b/sonar-plugin-api/src/main/java/org/sonar/api/batch/fs/internal/DefaultInputModule.java
index e5d8a5c060b..d499e8e0adf 100644
--- a/sonar-plugin-api/src/main/java/org/sonar/api/batch/fs/internal/DefaultInputModule.java
+++ b/sonar-plugin-api/src/main/java/org/sonar/api/batch/fs/internal/DefaultInputModule.java
@@ -30,7 +30,6 @@ import java.util.List;
import java.util.Map;
import javax.annotation.CheckForNull;
import javax.annotation.concurrent.Immutable;
-import org.apache.commons.io.FileUtils;
import org.sonar.api.batch.bootstrap.ProjectDefinition;
import org.sonar.api.batch.fs.InputModule;
@@ -93,11 +92,6 @@ public class DefaultInputModule extends DefaultInputComponent implements InputMo
private static Path initWorkingDir(ProjectDefinition module) {
File workingDirAsFile = module.getWorkDir();
- try {
- FileUtils.forceMkdir(workingDirAsFile);
- } catch (Exception e) {
- throw new IllegalStateException("Fail to create working dir: " + workingDirAsFile.getAbsolutePath(), e);
- }
return workingDirAsFile.getAbsoluteFile().toPath().normalize();
}