Interface OperatingSystem
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.gradle.api.Named
Named.Namer
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.lang.StringgetDisplayName()Returns a human-consumable display name for this operating system.java.lang.StringgetName()The object's name.booleanisCurrent()Is this the current OS?booleanisFreeBSD()Is it FreeBSD?booleanisLinux()Is it Linux?booleanisMacOsX()Is it macOS?booleanisSolaris()Is it Solaris?booleanisWindows()Is it Windows?
-
-
-
Method Detail
-
getName
@Input java.lang.String getName()
Description copied from interface:NamedThe object's name.Must be constant for the life of the object.
-
getDisplayName
@Internal java.lang.String getDisplayName()
Returns a human-consumable display name for this operating system.
-
isCurrent
@Internal boolean isCurrent()
Is this the current OS?
-
isWindows
@Internal boolean isWindows()
Is it Windows?
-
isMacOsX
@Internal boolean isMacOsX()
Is it macOS?
-
isLinux
@Internal boolean isLinux()
Is it Linux?
-
isSolaris
@Internal boolean isSolaris()
Is it Solaris?
-
isFreeBSD
@Internal boolean isFreeBSD()
Is it FreeBSD?
-
-