The DeltaGeneration makes it possible to find out and to generate just the elements, which were changed since the last successful generation. How a DeltaGeneration can be configured is explained in the linked blogposting. (It is recommended to read the linked blogposting to understand the current blogposting.)
The information, which files were changed or deleted since the last generation, could be necessary - for example - to inform search engines and to let them update their search indices. Another use case might be to replace the FullGeneration by the DeltaGeneration. In this case the webserver needs the information which files were changed or deleted, because the synchronization of all files (as in the FullGeneration) won't be executed.
The DeltaGeneration offers commands to find out these files. Therefore the schedule-script of the DeltaGeneration has to be extended.
To get a list of all generated files the following command has to be added at the end of the schedule-script after the execution of the generate task:
If the checkbox "Clear generation directory beforehand" inside the dialog of the generation task isn't activated, this command will return all files, which are currently located within the generation folder.
If the list should only contain the files, which has been generated during the DeltaGeneration, the checkbox has to be activated.
With an iteration over this list of generatedFiles the several entries can be separated and for example be printed to the logfile.
generatedFilesList = DeploymentUtil.getGeneratedFiles(context); it = generatedFilesList.iterator();