Class TaskRemoveOldFrontendGeneratedFiles

java.lang.Object
io.jmix.flowui.devserver.frontend.TaskRemoveOldFrontendGeneratedFiles
All Implemented Interfaces:
com.vaadin.flow.server.frontend.FallibleCommand

public class TaskRemoveOldFrontendGeneratedFiles extends Object implements com.vaadin.flow.server.frontend.FallibleCommand
Deletes old files from frontend generated folder.

This task must be performed last, because it will delete all files in frontend generated folder that have not been tracked by the GeneratedFilesSupport instance provided by the current NodeTasks execution.

For internal use only. May be renamed or removed in a future release.
See Also:
  • Constructor Details

    • TaskRemoveOldFrontendGeneratedFiles

      public TaskRemoveOldFrontendGeneratedFiles(Options options)
  • Method Details

    • execute

      public void execute() throws com.vaadin.flow.server.ExecutionFailedException
      Specified by:
      execute in interface com.vaadin.flow.server.frontend.FallibleCommand
      Throws:
      com.vaadin.flow.server.ExecutionFailedException
    • setGeneratedFileSupport

      public void setGeneratedFileSupport(com.vaadin.flow.server.frontend.GeneratedFilesSupport support)
      Specified by:
      setGeneratedFileSupport in interface com.vaadin.flow.server.frontend.FallibleCommand