Class TaskWriteGeneratedFilesList

java.lang.Object
com.vaadin.flow.server.frontend.TaskWriteGeneratedFilesList
All Implemented Interfaces:
FallibleCommand

public class TaskWriteGeneratedFilesList extends Object implements FallibleCommand
Writes a manifest listing the frontend files generated by Flow under the frontend generated folder during the current run.

This task must run after all file-generating tasks so that the manifest reflects the complete set of generated files. It is only scheduled for runs that actually perform a full frontend generation (development hot deploy, bundle build or production build), so a standalone prepare-frontend run never overwrites a manifest produced by a previous generating run.

The manifest is read by TaskRemoveOldFrontendGeneratedFiles so that a later cleanup, running in a context that did not regenerate the dev-server only files (such as FrontendUtils.INDEX_TSX or FrontendUtils.VITE_DEVMODE_TS), does not delete them as if they were stale.

For internal use only. May be renamed or removed in a future release.

See Also: