Package com.vaadin.flow.server.frontend
Interface FallibleCommand
- All Known Subinterfaces:
TaskGenerateEndpoint
,TaskGenerateOpenAPI
- All Known Implementing Classes:
AbstractFileGeneratorFallibleCommand
,AbstractTaskClientGenerator
,NodeTasks
,NodeUpdater
,TaskCleanFrontendFiles
,TaskCopyFrontendFiles
,TaskCopyLocalFrontendFiles
,TaskCopyTemplateFiles
,TaskGenerateBootstrap
,TaskGenerateFeatureFlags
,TaskGenerateIndexHtml
,TaskGenerateIndexTs
,TaskGeneratePackageJson
,TaskGeneratePWAIcons
,TaskGenerateReactFiles
,TaskGenerateServiceWorker
,TaskGenerateTsConfig
,TaskGenerateTsDefinitions
,TaskGenerateViteDevMode
,TaskGenerateWebComponentBootstrap
,TaskGenerateWebComponentHtml
,TaskInstallFrontendBuildPlugins
,TaskPrepareProdBundle
,TaskRemoveOldFrontendGeneratedFiles
,TaskRunDevBundleBuild
,TaskRunNpmInstall
,TaskUpdateImports
,TaskUpdateOldIndexTs
,TaskUpdatePackages
,TaskUpdateSettingsFile
,TaskUpdateThemeImport
,TaskUpdateVite
public interface FallibleCommand
A generic command which may fail.
Note that this interface is not serializable and should not be used in a web application.
For internal use only. May be renamed or removed in a future release.
- Since:
- Author:
- Vaadin Ltd
-
Method Summary
Modifier and TypeMethodDescriptionvoid
execute()
Runs the given command.default 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.
-
Method Details
-
execute
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.
- Throws:
ExecutionFailedException
- if there is an execution error
-
setGeneratedFileSupport
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.
-