ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ste...@apache.org
Subject svn commit: r279563 - /ant/core/trunk/src/main/org/apache/tools/ant/taskdefs/condition/IsReachable.java
Date Thu, 08 Sep 2005 13:03:32 GMT
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


Mime
View raw message