You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ant.apache.org by st...@apache.org on 2005/09/08 15:03:32 UTC
svn commit: r279563 -
/ant/core/trunk/src/main/org/apache/tools/ant/taskdefs/condition/IsReachable.java
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: dev-unsubscribe@ant.apache.org
For additional commands, e-mail: dev-help@ant.apache.org