aboutsummaryrefslogtreecommitdiffstats
path: root/sonar-plugin-api
diff options
context:
space:
mode:
authorDuarte Meneses <duarte.meneses@sonarsource.com>2019-03-15 10:53:39 -0500
committerSonarTech <sonartech@sonarsource.com>2019-03-15 20:20:55 +0100
commit1f600ed00be3f7c8dec2095ee89753d72ce5dc16 (patch)
tree8c9ef49229e4b5612de4d8284b39d6881a4858fe /sonar-plugin-api
parent4329c670ce326d14442ac98c88da30a698c7f29d (diff)
downloadsonarqube-1f600ed00be3f7c8dec2095ee89753d72ce5dc16.tar.gz
sonarqube-1f600ed00be3f7c8dec2095ee89753d72ce5dc16.zip
SONAR-11829 Failed to set working directory hidden on Windows
Diffstat (limited to 'sonar-plugin-api')
-rw-r--r--sonar-plugin-api/src/main/java/org/sonar/api/batch/fs/internal/AbstractProjectOrModule.java1
1 files changed, 1 insertions, 0 deletions
diff --git a/sonar-plugin-api/src/main/java/org/sonar/api/batch/fs/internal/AbstractProjectOrModule.java b/sonar-plugin-api/src/main/java/org/sonar/api/batch/fs/internal/AbstractProjectOrModule.java
index caae97c3494..2f45fb0f488 100644
--- a/sonar-plugin-api/src/main/java/org/sonar/api/batch/fs/internal/AbstractProjectOrModule.java
+++ b/sonar-plugin-api/src/main/java/org/sonar/api/batch/fs/internal/AbstractProjectOrModule.java
@@ -95,6 +95,7 @@ public abstract class AbstractProjectOrModule extends DefaultInputComponent {
Path workingDir = workingDirAsFile.getAbsoluteFile().toPath().normalize();
if (SystemUtils.IS_OS_WINDOWS) {
try {
+ Files.createDirectories(workingDir);
Files.setAttribute(workingDir, "dos:hidden", true, LinkOption.NOFOLLOW_LINKS);
} catch (IOException e) {
LOGGER.warn("Failed to set working directory hidden: {}", e.getMessage());