@groovy.transform.CompileStatic class GenericUnix extends OperatingSystem
Generic Unix-like implementation of OperatingSystem.
Also serves as a base class for specific Unix-like implementations.
| Fields inherited from class | Fields |
|---|---|
class OperatingSystem |
OS_ARCH, OS_NAME, OS_VERSION |
| Type | Name and description |
|---|---|
static OperatingSystem |
INSTANCE |
String |
staticLibrarySuffixDefault Unix-like string that is used to suffix to static libraries |
| Constructor and description |
|---|
protected GenericUnix
() |
| Type Params | Return Type | Name and description |
|---|---|---|
|
Arch |
getArch()Architecture underlying the operating system |
|
String |
getArchStr()Implementation-specific free-form architecture string. |
|
java.util.List<String> |
getExecutableNames(String executablePath)Given a base string, returns the Unix exe name. |
|
String |
getSharedLibraryName(String libraryName)Returns OS-specific shared library name |
|
String |
getSharedLibrarySuffix()Return Unix-like string that is used to suffix to shared libraries |
|
String |
getStaticLibraryName(String libraryName)Returns OS-specific static library name |
|
boolean |
isUnix()Confirms that this is a Unix-like operating system. |
| Methods inherited from class | Name |
|---|---|
class OperatingSystem |
current, findAllInPath, findInPath, getArch, getArchStr, getExecutableNames, getPath, getPathSeparator, getSharedLibraryName, getSharedLibrarySuffix, getStaticLibraryName, getStaticLibrarySuffix, isFreeBSD, isLinux, isMacOsX, isNetBSD, isSolaris, isUnix, isWindows, toString |
Default Unix-like string that is used to suffix to static libraries
Architecture underlying the operating system
OperatingSystem.Arch.UNKNOWN is it cannot be identified. In that a
caller might need to use getArchStr() to help with identification.Implementation-specific free-form architecture string.
Effectively reports the same as System.getProperty( "os.arch" )
Given a base string, returns the Unix exe name.
executablePath - A base path nameReturns OS-specific shared library name
libraryName - This can be a base name or a full name.Return Unix-like string that is used to suffix to shared libraries
Returns OS-specific static library name
libraryName - This can be a base name or a full name.Confirms that this is a Unix-like operating system.
trueGroovy Documentation