Is there a way to check in ant 开发者_如何学Goif an internet connection is available.
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.
Handle Exec task output in Ant
精彩评论