Class Platforms


public class Platforms extends Object
Encapsulates platform-dependent methods for handling native components of plugins.
  • Field Details


      public static final String PLATFORM_NAME
  • Method Details

    • nativeControllerPath

      public static Path nativeControllerPath(Path plugin)
      The path to the native controller for a plugin with native components.
    • platformName

      public static String platformName(String osName, String osArch)
      Return the platform name based on the OS name and architecture, for example: - darwin-x86_64 - linux-x86-64 - windows-x86_64 For *nix platforms this is more-or-less `uname -s`-`uname -m` converted to lower case. However, for consistency between different operating systems on the same architecture "amd64" is replaced with "x86_64" and "i386" with "x86". For Windows it's "windows-" followed by either "x86" or "x86_64".