java.lang.Object
org.standardout.gradle.plugin.platform.internal.osdetect.SwtPlatform

public class SwtPlatform extends Object
Models the platforms that SWT binaries are built for, useful for build tools that interact with SWT jars.
  • Method Details

    • getWs

      public String getWs()
      Returns the windowing system.
    • getOs

      public String getOs()
      Returns the operating system.
    • getArch

      public String getArch()
      Returns the CPU architecture.
    • equals

      public boolean equals(Object otherRaw)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Returns "ws.os.arch", which is how SWT bundles are named.
      Overrides:
      toString in class Object
    • platformFilter

      public String platformFilter()
      Returns a string appropriate as an Eclipse-PlatformFilter in a MANIFEST.MF
    • platformProperties

      public Map<String,String> platformProperties()
      Returns a map containing the platform properties.
    • getWuffString

      public String getWuffString()
      Returns the folder name that wuff uses for this SwtPlatform.
    • parseWsOsArch

      public static SwtPlatform parseWsOsArch(String unparsed)
      Parses ws.os.arch strings (which is how SWT bundles are specified).
    • getNative

      public static SwtPlatform getNative()
      Returns the SwtPlatform for the native platform: 32-bit JVM on 64-bit Windows returns x86_64.
    • getRunning

      public static SwtPlatform getRunning()
      Returns the SwtPlatform for the running platform: 32-bit JVM on 64-bit Windows returns x86.
    • fromOS

      public static SwtPlatform fromOS(OS raw)
      Converts an OS to an SwtPlatform.
    • getAll

      public static List<SwtPlatform> getAll()
      Returns all of the platforms.