cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ff...@apache.org
Subject svn commit: r1406468 - /cxf/trunk/osgi/karaf/commands/src/main/java/org/apache/cxf/karaf/commands/ListEndpointsCommand.java
Date Wed, 07 Nov 2012 05:50:47 GMT
Author: ffang
Date: Wed Nov  7 05:50:47 2012
New Revision: 1406468

URL: http://svn.apache.org/viewvc?rev=1406468&view=rev
Log:
[CXF-4619]cxf:list-endpoints - Duplicate headers if multiple endpoints installed

Modified:
    cxf/trunk/osgi/karaf/commands/src/main/java/org/apache/cxf/karaf/commands/ListEndpointsCommand.java

Modified: cxf/trunk/osgi/karaf/commands/src/main/java/org/apache/cxf/karaf/commands/ListEndpointsCommand.java
URL: http://svn.apache.org/viewvc/cxf/trunk/osgi/karaf/commands/src/main/java/org/apache/cxf/karaf/commands/ListEndpointsCommand.java?rev=1406468&r1=1406467&r2=1406468&view=diff
==============================================================================
--- cxf/trunk/osgi/karaf/commands/src/main/java/org/apache/cxf/karaf/commands/ListEndpointsCommand.java
(original)
+++ cxf/trunk/osgi/karaf/commands/src/main/java/org/apache/cxf/karaf/commands/ListEndpointsCommand.java
Wed Nov  7 05:50:47 2012
@@ -61,11 +61,12 @@ public class ListEndpointsCommand extend
                 busses = Collections.emptyList();
             }
         }
+        System.out.println(String.format(HEADER_FORMAT, 
+                                         "Name", "State", "Address", "BusID"));
         for (Bus b : busses) {
             ServerRegistry reg = b.getExtension(ServerRegistry.class);
             List<Server> servers = reg.getServers();
-            System.out.println(String.format(HEADER_FORMAT, 
-                                             "Name", "State", "Address", "BusID"));
+            
             for (Server serv : servers) {
                 String qname = serv.getEndpoint().getEndpointInfo().getName().getLocalPart();
                 String started = serv.isStarted() ? "Started" : "Stopped";



Mime
View raw message