Kamal Kamal - 3 months ago 10
Java Question

ant to detect FreeBSD

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.

Answer

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

uname -a | grep FreeBSD
Comments