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 |
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 executable 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 |
|
String |
getStaticLibrarySuffix() Default Unix-like string that is used to suffix to static libraries |
|
boolean |
isUnix() Confirms that this is a Unix-like operating system. |
Methods inherited from class | Name |
---|---|
class OperatingSystem |
current, findAllInPath, findInPath, getArch, getArchStr, getExecutableName, getName, getPath, getPathSeparator, getPathVar, getScriptName, getSharedLibraryName, getSharedLibrarySuffix, getStaticLibraryName, getStaticLibrarySuffix, getVersion, isFreeBSD, isLinux, isMacOsX, isNetBSD, isSolaris, isUnix, isWindows, toString |
class Object |
wait, wait, wait, equals, toString, hashCode, getClass, notify, notifyAll |
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.
System.getProperty("os.arch")
Given a base string, returns the Unix executable 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
.so
Returns OS-specific static library name
libraryName
- This can be a base name or a full name.Default Unix-like string that is used to suffix to static libraries
.a
Confirms that this is a Unix-like operating system.
true
Groovy Documentation