Package de.carne.gradle.plugin.java.ext
Class PlatformInfo
- java.lang.Object
-
- de.carne.gradle.plugin.java.ext.PlatformInfo
-
public class PlatformInfo extends java.lang.ObjectConfiguration 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.StringgetSwtToolkit()Gets the SWT toolkit suitable for the currently executing build platform.booleanisIsLinux()Checks whether the currently executing build platform is of type Linux.booleanisIsMacos()Checks whether the currently executing build platform is of type macOS.booleanisIsWindows()Checks whether the currently executing build platform is of type Windows.
-
-
-
Method Detail
-
isIsLinux
public boolean isIsLinux()
Checks whether the currently executing build platform is of type Linux.- Returns:
trueif 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:
trueif 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:
trueif 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.
-
-