java.lang.Object
io.jmix.flowui.devserver.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
    Description
    static final String
     
  • Constructor Summary

    Constructors
    Constructor
    Description
    Platform(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 Summary

    Modifier and Type
    Method
    Description
    io.jmix.flowui.devserver.frontend.installer.Platform.Architecture
    Get 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.OS
    Get platform OS.
    static Platform
    Create a Platform and figure out OS and Architecture.
    boolean
    Check if platform is linux.
    boolean
    Check if platform is mac.
    boolean
    Check if platform is windows.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

  • Constructor Details

    • Platform

      public 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

      public Platform(String nodeDownloadRoot, io.jmix.flowui.devserver.frontend.installer.Platform.OS os, io.jmix.flowui.devserver.frontend.installer.Platform.Architecture architecture, String classifier)
  • Method Details

    • 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 if mac
    • isLinux

      public boolean isLinux()
      Check if platform is linux.
      Returns:
      true if linux
    • getArchitecture

      public io.jmix.flowui.devserver.frontend.installer.Platform.Architecture getArchitecture()
      Get platform architecture.
      Returns:
      architecture
    • getOs

      public io.jmix.flowui.devserver.frontend.installer.Platform.OS getOs()
      Get platform OS.
      Returns:
      os
    • getNodeClassifier

      public String getNodeClassifier(com.vaadin.flow.server.frontend.FrontendVersion nodeVersion)
      Get the node classifier for current platform.
      Parameters:
      nodeVersion - node version to get classifier for
      Returns:
      platform node classifier
    • getNodeDownloadRoot

      public String getNodeDownloadRoot()
      Gets the platform dependent download root.
      Returns:
      platform download root