Hello Ivy Team,

I`m wandering what is the best practice(if any) to check what is the operating system where Ivy is currently running (i.e. Windows 10, Windows Server 2012, Linux, MacOS, etc..)

Best Regards, Yordan Yunchov

asked 02.06.2017 at 03:11

Stelt0's gravatar image

Stelt0
(suspended)
accept rate: 12%


Hi

There is no Axon.ivy Public API for that. Internally we use the class org.apache.commons.lang3.SystemUtils from the apache commons lang library

Regards

Reto Weiss, Axon.ivy BPM Suite Support

link

answered 02.06.2017 at 04:26

Reto%20Weiss's gravatar image

Reto Weiss ♦♦
4.9k202857
accept rate: 74%

Hey Reto,

Thanks for the hint !

I found that this library is using internally the System class of Java. So, my approach would be more in this direction: System.getProperty("os.name") because in my case there is no need add another dependency.

Best Regards, Yordan

link

answered 02.06.2017 at 04:40

Stelt0's gravatar image

Stelt0
(suspended)
accept rate: 12%

The library apache commons lang is already provided by Axon.ivy itself. So you don't need to add it explicit to your project.

(02.06.2017 at 04:57) Reto Weiss ♦♦ Reto%20Weiss's gravatar image

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "Title")
  • image?![alt text](/path/img.jpg "Title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Tags:

×78
×44
×33
×5

Asked: 02.06.2017 at 03:11

Seen: 2,137 times

Last updated: 02.06.2017 at 04:57