OS Detector


Лицензия

Лицензия

Группа

Группа

com.harium.util
Идентификатор

Идентификатор

os-detector
Последняя версия

Последняя версия

1.0.0
Дата

Дата

Тип

Тип

jar
Описание

Описание

OS Detector
OS Detector
Ссылка на сайт

Ссылка на сайт

http://github.com/harium/os-detector
Система контроля версий

Система контроля версий

http://github.com/harium/os-detector/tree/master

Скачать os-detector

Как подключить последнюю версию

<!-- https://jarcasting.com/artifacts/com.harium.util/os-detector/ -->
<dependency>
    <groupId>com.harium.util</groupId>
    <artifactId>os-detector</artifactId>
    <version>1.0.0</version>
</dependency>
// https://jarcasting.com/artifacts/com.harium.util/os-detector/
implementation 'com.harium.util:os-detector:1.0.0'
// https://jarcasting.com/artifacts/com.harium.util/os-detector/
implementation ("com.harium.util:os-detector:1.0.0")
'com.harium.util:os-detector:jar:1.0.0'
<dependency org="com.harium.util" name="os-detector" rev="1.0.0">
  <artifact name="os-detector" type="jar" />
</dependency>
@Grapes(
@Grab(group='com.harium.util', module='os-detector', version='1.0.0')
)
libraryDependencies += "com.harium.util" % "os-detector" % "1.0.0"
[com.harium.util/os-detector "1.0.0"]

Зависимости

test (1)

Идентификатор библиотеки Тип Версия
junit : junit jar 4.12

Модули Проекта

Данный проект не имеет модулей.

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
}
com.harium.util

Harium

Версии библиотеки

Версия
1.0.0