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(File projectRoot) Scans the jar files given defined byresourcesToScan. -
Method Summary
-
Field Details
-
NODE_MODULES
- See Also:
-
-
Constructor Details
-
TaskCleanFrontendFiles
Scans the jar files given defined byresourcesToScan.- Parameters:
projectRoot- project root folder
-
-
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
-