Package com.vaadin.flow.server.frontend
Class TaskCleanFrontendFiles
java.lang.Object
com.vaadin.flow.server.frontend.TaskCleanFrontendFiles
- All Implemented Interfaces:
FallibleCommand
Clean any frontend files generated for creation on a new development or
production bundle.
For a project containing package.json or is using Hilla,
node_modules will be retained.
For internal use only. May be renamed or removed in a future release.
- Since:
- 2.0
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionTaskCleanFrontendFiles(Options options) Scans the jar files given defined byresourcesToScan. -
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.vaadin.flow.server.frontend.FallibleCommand
setGeneratedFileSupport
-
Field Details
-
NODE_MODULES
- See Also:
-
-
Constructor Details
-
TaskCleanFrontendFiles
Scans the jar files given defined byresourcesToScan.- Parameters:
options- options containing file paths and classfinder
-
-
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
-