com.vaadin.flow.server.frontend.installer.
Class Platform
- java.lang.Object
-
- com.vaadin.flow.server.frontend.installer.Platform
-
public class Platform extends Object
Platform contains information about system architecture and OS.
Derived from eirslett/frontend-maven-plugin
For internal use only. May be renamed or removed in a future release.
Since:
-
-
Field Summary
Fields Modifier and Type Field and Description static String
ALPINE_RELEASE_FILE_PATH
-
Constructor Summary
Constructors 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)
-
Method Summary
All Methods 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.
-
-
-
Field Detail
-
ALPINE_RELEASE_FILE_PATH
public static final String ALPINE_RELEASE_FILE_PATH
See Also:
-
-
Constructor Detail
-
Platform
public Platform(com.vaadin.flow.server.frontend.installer.Platform.OS os, com.vaadin.flow.server.frontend.installer.Platform.Architecture architecture)
Construct a new Platform.
Parameters:
os
- platform OSarchitecture
- platform Architecture
-
-
Method Detail
-
guess
public static Platform guess()
Create a Platform and figure out OS and Architecture.
Returns:
platform instance
-
getArchiveExtension
public String getArchiveExtension()
Get the archive extension used with this platform.
Returns:
archive extension
-
getCodename
public String getCodename()
Get the codename used with this Platform.
Returns:
codename
-
isWindows
public boolean isWindows()
Check if platform is windows.
Returns:
true if windows
-
isMac
public boolean isMac()
Check if platform is mac.
Returns:
true is mac
-
getArchitecture
public com.vaadin.flow.server.frontend.installer.Platform.Architecture getArchitecture()
Get platform architecture.
Returns:
architecture
-
getOs
public com.vaadin.flow.server.frontend.installer.Platform.OS getOs()
Get platform OS.
Returns:
os
-
getNodeClassifier
public String getNodeClassifier(FrontendVersion nodeVersion)
Get the node classifier for current platform.
Parameters:
nodeVersion
- node version to get classifier forReturns:
platform node classifier
-
getNodeDownloadRoot
public String getNodeDownloadRoot()
Gets the platform dependent download root.
Returns:
platform download root
-
-