Is there a way to check in ant if an internet connection is available.
+1
A:
You could use http://ant.apache.org/manual/Tasks/exec.html to get this information using an external command.
Check internet connection in bash (you could write a small app for this) or try to ping some site and write the result somewhere.
Leniel Macaferi
2010-09-05 03:49:41
Thanks, Can you tell me a command in linux that could do this. and how to get the output of the command and set it to a property
2010-09-05 03:54:09
@muthiahmerchant That answer is here http://stackoverflow.com/questions/929368/how-to-test-a-internet-connection-in-bash
slomojo
2010-09-05 04:48:17