Class TaskWriteGeneratedFilesList
- All Implemented Interfaces:
FallibleCommand
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:
-
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.
-
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.
-