marquiswang commented on code in PR #23: URL: https://github.com/apache/maven-shared-incremental/pull/23#discussion_r1173883936
########## src/main/java/org/apache/maven/shared/incremental/IncrementalBuildHelper.java: ########## @@ -358,6 +395,73 @@ public void afterRebuildExecution( IncrementalBuildHelperRequest incrementalBuil } + private void writeChangedFiles( + DirectoryScanner directoryScanner, + String[] filesBeforeAction, + File mojoConfigBase, + String createdFilesLstFilename ) throws MojoExecutionException + { + if ( directoryScanner.getBasedir() == null ) + { + return; + } + + DirectoryScanResult outputDirectoryScanResult = scanDirectoryDiff( + directoryScanner, filesBeforeAction ); + + try + { + writeChangedFiles( outputDirectoryScanResult, mojoConfigBase, createdFilesLstFilename ); + } + catch ( IOException e ) + { + throw new MojoExecutionException( "Error while storing the mojo status", e ); + } + } + + private static void writeChangedFiles( + DirectoryScanResult outputDirectoryScanResult, + File mojoConfigBase, + String createdFilesLstFilename ) Review Comment: done -- 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: dev-unsubscr...@maven.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@maven.apache.org For additional commands, e-mail: dev-h...@maven.apache.org