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 TypeMethodDescriptionvoid
execute()
Runs the given command.void
AcceptsGeneratedFilesSupport
utility 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:FallibleCommand
Runs 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:
execute
in interfaceFallibleCommand
- Throws:
ExecutionFailedException
- if there is an execution error
-
setGeneratedFileSupport
Description copied from interface:FallibleCommand
AcceptsGeneratedFilesSupport
utility 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:
setGeneratedFileSupport
in interfaceFallibleCommand
- Parameters:
support
- the generated file support utility to use.
-