Author: stevel Date: Thu Sep 8 06:03:21 2005 New Revision: 279563 URL: http://svn.apache.org/viewcvs?rev=279563&view=rev Log: move the warning message to where it belongs
Modified: ant/core/trunk/src/main/org/apache/tools/ant/taskdefs/condition/IsReachable.java Modified: ant/core/trunk/src/main/org/apache/tools/ant/taskdefs/condition/IsReachable.java URL: http://svn.apache.org/viewcvs/ant/core/trunk/src/main/org/apache/tools/ant/taskdefs/condition/IsReachable.java?rev=279563&r1=279562&r2=279563&view=diff ============================================================================== --- ant/core/trunk/src/main/org/apache/tools/ant/taskdefs/condition/IsReachable.java (original) +++ ant/core/trunk/src/main/org/apache/tools/ant/taskdefs/condition/IsReachable.java Thu Sep 8 06:03:21 2005 @@ -158,11 +158,10 @@ 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); --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]