]> source.dussan.org Git - sonarqube.git/commitdiff
SONAR-11829 Failed to set working directory hidden on Windows
authorDuarte Meneses <duarte.meneses@sonarsource.com>
Fri, 15 Mar 2019 15:53:39 +0000 (10:53 -0500)
committerSonarTech <sonartech@sonarsource.com>
Fri, 15 Mar 2019 19:20:55 +0000 (20:20 +0100)
sonar-plugin-api/src/main/java/org/sonar/api/batch/fs/internal/AbstractProjectOrModule.java

index caae97c349486baccc59258d4b5d5a98f9db90e2..2f45fb0f488a20ed2d3699d91b9219ad2f110bc4 100644 (file)
@@ -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());