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.
精彩评论