public class Platform extends Object
Derived from eirslett/frontend-maven-plugin
For internal use only. May be renamed or removed in a future release.
Modifier and Type | Field and Description |
---|---|
static String |
ALPINE_RELEASE_FILE_PATH |
Constructor and Description |
---|
Platform(com.vaadin.flow.server.frontend.installer.Platform.OS os,
com.vaadin.flow.server.frontend.installer.Platform.Architecture architecture)
Construct a new Platform.
|
Platform(String nodeDownloadRoot,
com.vaadin.flow.server.frontend.installer.Platform.OS os,
com.vaadin.flow.server.frontend.installer.Platform.Architecture architecture,
String classifier) |
Modifier and Type | Method and Description |
---|---|
com.vaadin.flow.server.frontend.installer.Platform.Architecture |
getArchitecture()
Get platform architecture.
|
String |
getArchiveExtension()
Get the archive extension used with this platform.
|
String |
getCodename()
Get the codename used with this Platform.
|
String |
getNodeClassifier(FrontendVersion nodeVersion)
Get the node classifier for current platform.
|
String |
getNodeDownloadRoot()
Gets the platform dependent download root.
|
com.vaadin.flow.server.frontend.installer.Platform.OS |
getOs()
Get platform OS.
|
static Platform |
guess()
Create a Platform and figure out OS and Architecture.
|
boolean |
isMac()
Check if platform is mac.
|
boolean |
isWindows()
Check if platform is windows.
|
public static final String ALPINE_RELEASE_FILE_PATH
public Platform(com.vaadin.flow.server.frontend.installer.Platform.OS os, com.vaadin.flow.server.frontend.installer.Platform.Architecture architecture)
os
- platform OSarchitecture
- platform Architecturepublic static Platform guess()
public String getArchiveExtension()
public String getCodename()
public boolean isWindows()
public boolean isMac()
public com.vaadin.flow.server.frontend.installer.Platform.Architecture getArchitecture()
public com.vaadin.flow.server.frontend.installer.Platform.OS getOs()
public String getNodeClassifier(FrontendVersion nodeVersion)
nodeVersion
- node version to get classifier forpublic String getNodeDownloadRoot()
Copyright © 2023. All rights reserved.