Groovy Documentation

org.gradle.nativebinaries.platform
[Java] Interface OperatingSystem

org.gradle.nativebinaries.platform.OperatingSystem
  org.gradle.api.Named
All Superinterfaces:
Named

@Incubating
public interface OperatingSystem
extends Named

A machine operating system.


Method Summary
String getDisplayName()

Returns a human-consumable display name for this operating system.

boolean isCurrent()

Is this the current OS?

boolean isFreeBSD()

Is it FreeBSD?

boolean isLinux()

Is it Linux?

boolean isMacOsX()

Is it Mac OS X?

boolean isSolaris()

Is it Solaris?

boolean isWindows()

Is it Windows?

 
Methods inherited from interface Named
getName
 

Method Detail

getDisplayName

public String getDisplayName()
Returns a human-consumable display name for this operating system.


isCurrent

public boolean isCurrent()
Is this the current OS?


isFreeBSD

public boolean isFreeBSD()
Is it FreeBSD?


isLinux

public boolean isLinux()
Is it Linux?


isMacOsX

public boolean isMacOsX()
Is it Mac OS X?


isSolaris

public boolean isSolaris()
Is it Solaris?


isWindows

public boolean isWindows()
Is it Windows?


 

Gradle API 1.12