GithubHelp home page GithubHelp logo

bernermic / de.flapdoodle.os Goto Github PK

View Code? Open in Web Editor NEW

This project forked from flapdoodle-oss/de.flapdoodle.os

0.0 0.0 0.0 262 KB

os detection library

License: Apache License 2.0

Shell 0.16% Java 99.84%

de.flapdoodle.os's Introduction

Organisation Flapdoodle OSS

We are now a github organisation. You are invited to participate.

OS Detection Library

Howto

... still in progress ...

Maven

Stable (Maven Central Repository, Released: 30.10.2023 - wait 24hrs for maven central)

<dependency>
	<groupId>de.flapdoodle</groupId>
	<artifactId>de.flapdoodle.os</artifactId>
	<version>1.5.1</version>
</dependency>

Run

Detect system platform with this call:

Platform result = Platform.detect(CommonOS.list());

and inspect the result which may give 'Linux' for os, 'X86' for cpu type, 'B64' for bit size, 'Ubuntu' for distribution and 'Ubuntu_22_04' for version.

You can set system property de.flapdoodle.os.explain=true and enable logging for package de.flapdoodle.os.common.attributes to get some debugging output.

You can override platform detection with system property de.flapdoodle.os.override=<platform> where platform contains the os, architecture, distribution and version (optional). Sample value for macOs on x86 with 64bit: OS_X|X86_64, Centos7 on 32bit x86: Linux|X86_32|CentOS|CentOS_7.

Changelog

1.5.1

  • debian 12, 13

1.5.0

  • pop os support, enum ordering

1.4.4

  • linux mint 21.2 and fedora 38

1.4.1

  • better amazon2 detection

1.4.0

  • amazon 2023 support

1.3.4

  • ubuntu 23.x support

1.3.0

  • api extracted to de.flapdoodle.os-api

1.2.7

  • mint 21.1

1.2.6

  • detect debian 12

Version 1.2.4

  • detect oracle9, centos9

Version 1.2.3

  • detect ubuntu 22.10, bugfix

Version 1.2.1

  • api change

Version 1.2.0

  • return best version if more than one match

Version 1.1.12

  • detect linux mint 21

Version 1.1.10

  • detect ubuntu 16.04/16.10

Version 1.1.9

  • override with system property

Version 1.1.8

  • print detection result on explain

Version 1.1.6

  • detect ubuntu 22.04

Version 1.1.5

  • detect debian 11

Version 1.1.4

  • detect ubuntu 21.10

Version 1.1.3

  • detect redhat 6,7,8
  • detect oracle 6,7,8

de.flapdoodle.os's People

Contributors

michaelmosmann avatar georgeoikawapp avatar bernermic avatar ydylla avatar edeweerd1a avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.