开发者

ant to detect FreeBSD

开发者 https://www.devze.com 2022-12-22 16:54 出处:网络
Is there a way to detect FreeBSD with ant. I used o开发者_如何学Gos.name it shows it as Linux. I want to differentiate between FreeBSD and Linux.Would using uname -a be good....you can do it this way.

Is there a way to detect FreeBSD with ant. I used o开发者_如何学Gos.name it shows it as Linux. I want to differentiate between FreeBSD and Linux.


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

uname -a | grep FreeBSD


If your JDK is a Linux version running under emulation, instead of a FreeBSD-native one, that could explain the OS being reported as Linux.

0

精彩评论

暂无评论...
验证码 换一张
取 消