com.vaadin.flow.server.frontend.
Class NodeUpdater
All Implemented Interfaces:
Direct Known Subclasses:
TaskGeneratePackageJson
, TaskUpdateImports
, TaskUpdatePackages
Base abstract class for frontend updaters that needs to be run when in dev-mode or from the flow maven plugin.
For internal use only. May be renamed or removed in a future release.
Since:
2.0
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected static final String
Deprecated.
protected static final String
Deprecated.
protected final FrontendDependenciesScanner
The
FrontendDependencies
object representing the application dependencies.protected Options
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
NodeUpdater
(FrontendDependenciesScanner frontendDependencies, Options options) Constructor.
-
Method Summary
Modifier and TypeMethodDescriptionprotected void
generateVersionsJson
(com.fasterxml.jackson.databind.node.ObjectNode packageJson) Generate versions json file for version locking.
protected File
protected File
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, setGeneratedFileSupport
-
Field Details
-
DEP_NAME_FLOW_DEPS
Deprecated.See Also:
-
DEP_NAME_FLOW_JARS
Deprecated.See Also:
-
frontDeps
The
FrontendDependencies
object representing the application dependencies. -
options
-
-
Constructor Details
-
NodeUpdater
Constructor.
Parameters:
frontendDependencies
- a reusable frontend dependenciesoptions
- the task options
-
-
Method Details
-
getPackageJsonFile
-
getPackageLockFile
-
generateVersionsJson
protected void generateVersionsJson(com.fasterxml.jackson.databind.node.ObjectNode packageJson) throws IOException Generate versions json file for version locking.
Parameters:
packageJson
- the package json contentThrows:
IOException
- when file IO fails
-