user373201
user373201

Reputation: 11455

ant check internet connection

Is there a way to check in ant if an internet connection is available.

Upvotes: 2

Views: 529

Answers (1)

Leniel Maccaferri
Leniel Maccaferri

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

Related Questions