Class NodeUpdater

java.lang.Object
io.jmix.flowui.devserver.frontend.NodeUpdater
All Implemented Interfaces:
com.vaadin.flow.server.frontend.FallibleCommand
Direct Known Subclasses:
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

    • GENERATED_PREFIX

      public static final String GENERATED_PREFIX
      Relative paths of generated should be prefixed with this value, so they can be correctly separated from {projectDir}/frontend files.
      See Also:
    • 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()
    • getPackageLockFile

      protected File getPackageLockFile()
    • getStudioPackageLockFile

      protected File getStudioPackageLockFile()
    • generateVersionsJson

      protected String generateVersionsJson(elemental.json.JsonObject packageJson) throws IOException
      Generate versions json file for version locking.
      Returns:
      generated versions json file path
      Throws:
      IOException - when file IO fails