component-installation-plugin / com.intershop.gradle.component.installation.utils / OSType

OSType

enum class OSType

Enumeration for the OS type of an # installation process.

Enum Values

WINDOWS

OS type is windows.

LINUX

OS type is a linux.

MACOS

OS type is MacOS.

OTHER

OS type is unknown.

Companion Object Functions

checkClassifierForOS

fun checkClassifierForOS(classifier: String): Boolean

Verify the parameter for the OS information. It will return true, if the string is not empty and matches with the current OS.

fun checkClassifierForOS(classifiers: Set<String>): Boolean

Verifies a list of classifiers with available OS.

detectedOS

fun detectedOS(): OSType

Get the OSType enumeration object of the current OS.

from

fun from(osKey: String): OSType

Get the OSType enumeration object from a string.