Is there a way to detect freeBSD with ant. I used os.name it shows it as linux. I want to differentiate between freeBSD and linux.
+2
A:
Would using uname -a
be good....you can do it this way....
uname -a | grep FreeBSD
tommieb75
2010-03-07 15:53:11
Ok. I was expecting to have something inside ant system properties, but I can use this. Thanks!
Kamal
2010-03-07 16:10:22
A:
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.
coneslayer
2010-03-19 19:15:30
Yes, I found that out later and once I installed diablo (freebsd) java ant detects the OS as freeBSD
Kamal
2010-03-20 03:36:53