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


##########
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:
   Instead of creating directory we can detect not existing in plexus-compiler 
- what do you think



-- 
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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to