Class PlatformInfo


  • public class PlatformInfo
    extends java.lang.Object
    Configuration object providing build platform related informations.

    build.gradle:

     test {
      enabled = javatools.platform.swtToolkit.equals("cocoa-macosx-x86_64")
       ...
     }
     
    • Constructor Summary

      Constructors 
      Constructor Description
      PlatformInfo()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String getSwtToolkit()
      Gets the SWT toolkit suitable for the currently executing build platform.
      boolean isIsLinux()
      Checks whether the currently executing build platform is of type Linux.
      boolean isIsMacos()
      Checks whether the currently executing build platform is of type macOS.
      boolean isIsWindows()
      Checks whether the currently executing build platform is of type Windows.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • PlatformInfo

        public PlatformInfo()
    • Method Detail

      • isIsLinux

        public boolean isIsLinux()
        Checks whether the currently executing build platform is of type Linux.
        Returns:
        true if the currently executing build platform is of type Linux.
      • isIsMacos

        public boolean isIsMacos()
        Checks whether the currently executing build platform is of type macOS.
        Returns:
        true if the currently executing build platform is of type macOS.
      • isIsWindows

        public boolean isIsWindows()
        Checks whether the currently executing build platform is of type Windows.
        Returns:
        true if the currently executing build platform is of type Windows.
      • getSwtToolkit

        public java.lang.String getSwtToolkit()
        Gets the SWT toolkit suitable for the currently executing build platform.
        Returns:
        the SWT toolkit suitable for the currently executing build platform.