tags:

views:

64

answers:

2

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
Ok. I was expecting to have something inside ant system properties, but I can use this. Thanks!
Kamal
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
Yes, I found that out later and once I installed diablo (freebsd) java ant detects the OS as freeBSD
Kamal