com.vaadin.flow.server.frontend.
Class TaskRemoveOldFrontendGeneratedFiles
All Implemented Interfaces:
Deletes old files from frontend generated folder.
This task must be performed last, because it will delete all files in frontend generated folder that have not been tracked by the
GeneratedFilesSupport instance provided by the current
NodeTasks execution.
For internal use only. May be renamed or removed in a future release.
See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidexecute()Runs the given command.
voidAccepts
GeneratedFilesSupportutility allows to track generated files but write them only when the content is changed, preventing filesystem watchers to be triggered when not required.
-
Constructor Details
-
TaskRemoveOldFrontendGeneratedFiles
-
-
Method Details
-
execute
Description copied from interface:
FallibleCommandRuns the given command.
If execution fails then the command may throw an exception which may give a message and a cause of the failure.
Specified by:
executein interfaceFallibleCommandThrows:
ExecutionFailedException- if there is an execution error -
setGeneratedFileSupport
Description copied from interface:
FallibleCommandAccepts
GeneratedFilesSupportutility allows to track generated files but write them only when the content is changed, preventing filesystem watchers to be triggered when not required.Specified by:
setGeneratedFileSupportin interfaceFallibleCommandParameters:
support- the generated file support utility to use.
-