Browse Source

move the warning message to where it belongs

git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@279563 13f79535-47bb-0310-9956-ffa450edef68
master
Steve Loughran 20 years ago
parent
commit
9c0690d9ad
1 changed files with 1 additions and 2 deletions
  1. +1
    -2
      src/main/org/apache/tools/ant/taskdefs/condition/IsReachable.java

+ 1
- 2
src/main/org/apache/tools/ant/taskdefs/condition/IsReachable.java View File

@@ -158,11 +158,10 @@ public class IsReachable extends ProjectComponent implements Condition {
log("Probing host " + target, Project.MSG_VERBOSE);
InetAddress address;
try {
log(WARN_UNKNOWN_HOST + target);
address = InetAddress.getByName(target);
} catch (UnknownHostException e1) {
log(WARN_UNKNOWN_HOST + target);
return false;

}
log("Host address = " + address.getHostAddress(),
Project.MSG_VERBOSE);


Loading…
Cancel
Save