Package com.vaadin.flow.server.frontend
Class TaskUpdateImports
java.lang.Object
com.vaadin.flow.server.frontend.NodeUpdater
com.vaadin.flow.server.frontend.TaskUpdateImports
- All Implemented Interfaces:
FallibleCommand
An updater that it's run when the servlet context is initialised in dev-mode
or when flow-maven-plugin goals are run in order to update Flow imports file
and "jar-resources" contents by visiting all
classes with
JsModule
and Theme
annotations.
For internal use only. May be renamed or removed in a future release.
- Since:
- 2.0
-
Field Summary
Fields inherited from class com.vaadin.flow.server.frontend.NodeUpdater
DEP_NAME_FLOW_DEPS, DEP_NAME_FLOW_JARS, frontDeps, options
-
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.Methods inherited from class com.vaadin.flow.server.frontend.NodeUpdater
generateVersionsJson, getPackageJsonFile, getPackageLockFile
-
Method Details
-
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.- Parameters:
support
- the generated file support utility to use.
-
execute
public void 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.
-