Usage

Boolean checks
OS.windows
OS.macOsX
OS.linux
OS.freeBSD
OS.netBSD
OS.solaris
Operating system properties
OS.name (1)
OS.version (2)
OS.pathVar (3)
OS.pathSeparator (4)
OS.arch (5)
OS.archStr (6)
OS.sharedLibrarySuffix (7)
OS.staticLibrarySuffix (8)
1 Short operating system name
2 Descriptive version of operating system
3 The name of the environmental variable that holds the search path
4 The character that separates items in a search path
5 The architecture as an enumeration.
6 The architecture as an string.
7 The extension for shared libraries.
8 The extension for static libraries.
Methods
OS.path (1)
OS.findInPath('mycmd') (2)
OS.findAllInPath('mycmd') (3)
OS.getExecutableNames('mycmd') (4)
OS.getSharedLibraryName('mylib') (5)
OS.getStaticLibraryName('mylib') (6)
1 List of system path entries a File instances.
2 Searches the system path for the first occurence of the specified file. Command will be decorated based on OS. For the above example, on Windows, mycmd.exe, mycmd.bat etc. will also be searched for.
3 Like the previous, but returns all occurrences.
4 Returns all the possible execution names for a target.
5 The full file name of a shared library.
6 The full file name of a static library.