Class NodeUpdater

java.lang.Object
io.jmix.flowui.devserver.frontend.NodeUpdater
All Implemented Interfaces:
com.vaadin.flow.server.frontend.FallibleCommand
Direct Known Subclasses:
TaskCopyRequiredFiles, TaskGeneratePackageJson, TaskUpdateImports, TaskUpdatePackages

public abstract class NodeUpdater extends Object implements com.vaadin.flow.server.frontend.FallibleCommand
Base abstract class for frontend updaters that needs to be run when in dev-mode or from the flow maven plugin.
  • Field Details

    • DEP_NAME_FLOW_DEPS

      @Deprecated protected static final String DEP_NAME_FLOW_DEPS
      Deprecated.
      See Also:
    • DEP_NAME_FLOW_JARS

      @Deprecated protected static final String DEP_NAME_FLOW_JARS
      Deprecated.
      See Also:
    • frontDeps

      protected final com.vaadin.flow.server.frontend.scanner.FrontendDependenciesScanner frontDeps
      The FrontendDependencies object representing the application dependencies.
    • options

      protected Options options
  • Constructor Details

    • NodeUpdater

      protected NodeUpdater(com.vaadin.flow.server.frontend.scanner.ClassFinder finder, com.vaadin.flow.server.frontend.scanner.FrontendDependenciesScanner frontendDependencies, Options options)
      Constructor.
      Parameters:
      finder - a reusable class finder
      frontendDependencies - a reusable frontend dependencies
      options - the task options
  • Method Details

    • getProjectJsonFile

      protected File getProjectJsonFile()
    • getStudioJsonFile

      protected File getStudioJsonFile()
    • getProjectPackageLockFile

      protected File getProjectPackageLockFile()
    • getStudioPackageLockFile

      protected File getStudioPackageLockFile()
    • generateVersionsJson

      protected void generateVersionsJson(elemental.json.JsonObject packageJson) throws IOException
      Generate versions json file for version locking.
      Parameters:
      packageJson - the package json content
      Throws:
      IOException - when file IO fails