Ant for detecting FreeBSD

Is there a way to detect FreeBSD with ant. I used os.name , it shows it as Linux. I want to distinguish between FreeBSD and Linux.

+4
source share
2 answers

Would using uname -a be good ... you can do it this way ....

  uname -a |  grep FreeBSD
+3
source

If your JDK is a Linux version running under emulation instead of the native FreeBSD, this may explain that the OS is reported as Linux.

+1
source

Source: https://habr.com/ru/post/1303398/


All Articles