Class TaskCopyFrontendFiles

java.lang.Object
com.vaadin.flow.server.frontend.AbstractFileGeneratorFallibleCommand
com.vaadin.flow.server.frontend.TaskCopyFrontendFiles
All Implemented Interfaces:
FallibleCommand

public class TaskCopyFrontendFiles extends AbstractFileGeneratorFallibleCommand
Copies all frontend resources from JAR files into a given folder.

"Frontend resources" are bundle sources for @JsModule / @CssImport annotations. The recommended location for them in addon JARs is META-INF/frontend. The legacy location META-INF/resources/frontend is still scanned for backwards compatibility but is deprecated; a per-jar warning is emitted when it is used. Theme files under META-INF/resources/[**]/themes are also copied.

Public runtime resources for @StyleSheet / @JavaScript should be placed under META-INF/resources/ and are served directly by the servlet container ? they are not handled by this task.

For internal use only. May be renamed or removed in a future release.

Since:
2.0
  • Method Details

    • 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.