com.vaadin.flow.server.frontend.
Class TaskCleanFrontendFiles
All Implemented Interfaces:
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, File frontendDirectory, ClassFinder classFinder) Scans the jar files given defined by
resourcesToScan
. -
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods 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 by
resourcesToScan
.Parameters:
projectRoot
- project root folderfrontendDirectory
- frontend directory
-
-
Method Details
-
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.
Specified by:
execute
in interfaceFallibleCommand
Throws:
ExecutionFailedException
- if there is an execution error
-