throws MojoExecutionException
{
DirectoryScanner diffScanner = getDirectoryScanner();
// now scan the same directory again and create a diff
diffScanner.scan();
DirectoryScanResult scanResult = diffScanner.diffIncludedFiles( filesBeforeAction );
File mojoConfigBase = getMojoStatusDirectory();
File mojoConfigFile = new File( mojoConfigBase, CREATED_FILES_LST_FILENAME );
try
{
FileUtils.fileWriteArray( mojoConfigFile, scanResult.getFilesAdded() );
}
catch ( IOException e )
{
throw new MojoExecutionException( "Error while storing the mojo status", e );
}