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

accept rate: 12%


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


Reto Weiss, Axon.ivy BPM Suite Support


answered 02.06.2017 at 04:26

Reto%20Weiss's gravatar image

Reto Weiss ♦♦
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


answered 02.06.2017 at 04:40

Stelt0's gravatar image

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
Your answer
toggle preview

Follow this question

By Email:

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



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



Asked: 02.06.2017 at 03:11

Seen: 2,038 times

Last updated: 02.06.2017 at 04:57