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

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.

Parameters

classifier - string with OS information.

Return
true it the classifier matches to the current OS.

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

Verifies a list of classifiers with available OS.

Parameters

classifiers - set of classifiers

Return
the return value is true, if the local file system is included in the list of classifiers.