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 |
staticLibrarySuffix Default 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. |
|
String |
getExecutableName(String executablePath) Given a base string, returns the Unix exe name. |
|
java.util.List<String> |
getExecutableNames(String executablePath) Given a base string, returns the Unix exe name. |
|
String |
getScriptName(String scriptPath) Returns OS-specific decorated script 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, getExecutableName, getExecutableNames, getPath, getPathSeparator, getScriptName, 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 nameGiven a base string, returns the Unix exe name.
executablePath
- A base path nameReturns OS-specific decorated script name.
scriptPath
- Name of scriptReturns 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.
true
Groovy Documentation