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 Summary
Modifier and TypeFieldDescriptionprotected static final String
Deprecated.protected static final String
Deprecated.protected final com.vaadin.flow.server.frontend.scanner.FrontendDependenciesScanner
TheFrontendDependencies
object representing the application dependencies.static final String
Relative paths of generated should be prefixed with this value, so they can be correctly separated from {projectDir}/frontend files.protected Options
-
Constructor Summary
ModifierConstructorDescriptionprotected
NodeUpdater
(com.vaadin.flow.server.frontend.scanner.ClassFinder finder, com.vaadin.flow.server.frontend.scanner.FrontendDependenciesScanner frontendDependencies, Options options) Constructor. -
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
execute
-
Field Details
-
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.- See Also:
-
DEP_NAME_FLOW_JARS
Deprecated.- See Also:
-
frontDeps
protected final com.vaadin.flow.server.frontend.scanner.FrontendDependenciesScanner frontDepsTheFrontendDependencies
object representing the application dependencies. -
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 finderfrontendDependencies
- a reusable frontend dependenciesoptions
- the task options
-
-
Method Details
-
getProjectJsonFile
-
getStudioJsonFile
-
getPackageLockFile
-
getStudioPackageLockFile
-
generateVersionsJson
Generate versions json file for version locking.- Returns:
- generated versions json file path
- Throws:
IOException
- when file IO fails
-