Package com.vaadin.flow.server.frontend
Class TaskRemoveOldFrontendGeneratedFiles
java.lang.Object
com.vaadin.flow.server.frontend.TaskRemoveOldFrontendGeneratedFiles
- All Implemented Interfaces:
FallibleCommand
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.voidAcceptsGeneratedFilesSupportutility 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 interfaceFallibleCommand- Throws:
ExecutionFailedException- if there is an execution error
-
setGeneratedFileSupport
Description copied from interface:FallibleCommandAcceptsGeneratedFilesSupportutility 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 interfaceFallibleCommand- Parameters:
support- the generated file support utility to use.
-