Skip to content

Lightweight fork of SystemUtils.java from Apache Commons Lang

Notifications You must be signed in to change notification settings

Harium/os-detector

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

os-detector

Lightweight fork of SystemUtils.java from Apache Commons Lang

Maven

<dependency>
    <groupId>com.harium.util</groupId>
    <artifactId>os-detector</artifactId>
    <version>1.0.0</version>
</dependency>

Usage

Use it as Apache Commons Lang:

if (SystemUtils.IS_OS_WINDOWS) {
    // do something
} else {
    // do something
}

Or with OSDetector:

if (OS.Linux == OSDetector.getOS()) {
    // do something
} else {
    // do something
}

About

Lightweight fork of SystemUtils.java from Apache Commons Lang

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages