Class Platform
java.lang.Object
io.jmix.flowui.devserver.frontend.installer.Platform
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 SummaryFields
- 
Constructor SummaryConstructorsConstructorDescriptionPlatform(io.jmix.flowui.devserver.frontend.installer.Platform.OS os, io.jmix.flowui.devserver.frontend.installer.Platform.Architecture architecture) Construct a new Platform.Platform(String nodeDownloadRoot, io.jmix.flowui.devserver.frontend.installer.Platform.OS os, io.jmix.flowui.devserver.frontend.installer.Platform.Architecture architecture, String classifier) 
- 
Method SummaryModifier and TypeMethodDescriptionio.jmix.flowui.devserver.frontend.installer.Platform.ArchitectureGet platform architecture.Get the archive extension used with this platform.Get the codename used with this Platform.getNodeClassifier(com.vaadin.flow.server.frontend.FrontendVersion nodeVersion) Get the node classifier for current platform.Gets the platform dependent download root.io.jmix.flowui.devserver.frontend.installer.Platform.OSgetOs()Get platform OS.static Platformguess()Create a Platform and figure out OS and Architecture.booleanisLinux()Check if platform is linux.booleanisMac()Check if platform is mac.booleanCheck if platform is windows.
- 
Field Details- 
ALPINE_RELEASE_FILE_PATH- See Also:
 
 
- 
- 
Constructor Details- 
Platformpublic Platform(io.jmix.flowui.devserver.frontend.installer.Platform.OS os, io.jmix.flowui.devserver.frontend.installer.Platform.Architecture architecture) Construct a new Platform.- Parameters:
- os- platform OS
- architecture- platform Architecture
 
- 
Platform
 
- 
- 
Method Details- 
guessCreate a Platform and figure out OS and Architecture.- Returns:
- platform instance
 
- 
getArchiveExtensionGet the archive extension used with this platform.- Returns:
- archive extension
 
- 
getCodenameGet the codename used with this Platform.- Returns:
- codename
 
- 
isWindowspublic boolean isWindows()Check if platform is windows.- Returns:
- true if windows
 
- 
isMacpublic boolean isMac()Check if platform is mac.- Returns:
- true if mac
 
- 
isLinuxpublic boolean isLinux()Check if platform is linux.- Returns:
- true if linux
 
- 
getArchitecturepublic io.jmix.flowui.devserver.frontend.installer.Platform.Architecture getArchitecture()Get platform architecture.- Returns:
- architecture
 
- 
getOspublic io.jmix.flowui.devserver.frontend.installer.Platform.OS getOs()Get platform OS.- Returns:
- os
 
- 
getNodeClassifierGet the node classifier for current platform.- Parameters:
- nodeVersion- node version to get classifier for
- Returns:
- platform node classifier
 
- 
getNodeDownloadRootGets the platform dependent download root.- Returns:
- platform download root
 
 
-