jorsol commented on code in PR #218:
URL: 
https://github.com/apache/maven-compiler-plugin/pull/218#discussion_r1431961614


##########
src/main/java/org/apache/maven/plugin/compiler/AbstractCompilerMojo.java:
##########
@@ -1172,6 +1172,8 @@ public void execute() throws MojoExecutionException, 
CompilationFailureException
                 try (Stream<Path> walk =
                         Files.walk(getGeneratedSourcesDirectory().toPath())) {
                     
walk.sorted(Comparator.reverseOrder()).map(Path::toFile).forEach(File::delete);
+                    // MCOMPILER-567: recreate directory
+                    
Files.createDirectories(getGeneratedSourcesDirectory().toPath());

Review Comment:
   We might need to create the directory too... reading the javac documentation 
for Java 8, it seems that the directory must exists as it not created.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscr...@maven.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to