commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From simonetrip...@apache.org
Subject svn commit: r1088118 - /commons/proper/discovery/trunk/src/java/org/apache/commons/discovery/ant/ServiceDiscoveryTask.java
Date Sat, 02 Apr 2011 20:48:39 GMT
Author: simonetripodi
Date: Sat Apr  2 20:48:38 2011
New Revision: 1088118

URL: http://svn.apache.org/viewvc?rev=1088118&view=rev
Log:
replaced agnostic message with a meaningful one

Modified:
    commons/proper/discovery/trunk/src/java/org/apache/commons/discovery/ant/ServiceDiscoveryTask.java

Modified: commons/proper/discovery/trunk/src/java/org/apache/commons/discovery/ant/ServiceDiscoveryTask.java
URL: http://svn.apache.org/viewvc/commons/proper/discovery/trunk/src/java/org/apache/commons/discovery/ant/ServiceDiscoveryTask.java?rev=1088118&r1=1088117&r2=1088118&view=diff
==============================================================================
--- commons/proper/discovery/trunk/src/java/org/apache/commons/discovery/ant/ServiceDiscoveryTask.java
(original)
+++ commons/proper/discovery/trunk/src/java/org/apache/commons/discovery/ant/ServiceDiscoveryTask.java
Sat Apr  2 20:48:38 2011
@@ -51,7 +51,7 @@ public class ServiceDiscoveryTask
     }
 
     public void execute() throws Exception {
-        System.out.println("XXX ");
+        System.out.printf("Discovering service '%s'...%n", name);
         
         DiscoverResources disc = new DiscoverResources();
         disc.addClassLoader( JDKHooks.getJDKHooks().getThreadContextClassLoader() );
@@ -64,7 +64,7 @@ public class ServiceDiscoveryTask
             String resourceInfo = iterator.nextResourceName();
             resources.add(resourceInfo);
             if( debug > 0 ) {
-                System.out.println("Found " + resourceInfo);
+                System.out.printf("Found '%s'%n", resourceInfo);
             }
         }
         



Mime
View raw message