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.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
ConstructorsModifierConstructorDescriptionprotected
NodeUpdater
(ClassFinder finder, FrontendDependenciesScanner frontendDependencies, Options options) Constructor.
-
Method Summary
Modifier and TypeMethodDescriptionprotected String
generateVersionsJson
(elemental.json.JsonObject 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
-
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
The
FrontendDependencies
object representing the application dependencies. -
options
-
-
Constructor Details
-
NodeUpdater
protected NodeUpdater(ClassFinder finder, FrontendDependenciesScanner frontendDependencies, Options options) Constructor.
Parameters:
finder
- a reusable class finderfrontendDependencies
- a reusable frontend dependenciesoptions
- the task options
-
-
Method Details
-
getPackageJsonFile
-
getPackageLockFile
-
generateVersionsJson
Generate versions json file for version locking.
Returns:
generated versions json file path
Throws:
IOException
- when file IO fails
-