Reputation: 11455
Is there a way to check in ant if an internet connection is available.
Upvotes: 2
Views: 529
Reputation: 102438
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
Upvotes: 1