felix-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rickh...@apache.org
Subject svn commit: r476521 - /incubator/felix/trunk/shell/src/main/java/org/apache/felix/shell/impl/InstallCommandImpl.java
Date Sat, 18 Nov 2006 13:21:21 GMT
Author: rickhall
Date: Sat Nov 18 05:21:20 2006
New Revision: 476521

URL: http://svn.apache.org/viewvc?view=rev&rev=476521
Log:
Added install feedback to print out bundle ID (FELIX-176).

Modified:
    incubator/felix/trunk/shell/src/main/java/org/apache/felix/shell/impl/InstallCommandImpl.java

Modified: incubator/felix/trunk/shell/src/main/java/org/apache/felix/shell/impl/InstallCommandImpl.java
URL: http://svn.apache.org/viewvc/incubator/felix/trunk/shell/src/main/java/org/apache/felix/shell/impl/InstallCommandImpl.java?view=diff&rev=476521&r1=476520&r2=476521
==============================================================================
--- incubator/felix/trunk/shell/src/main/java/org/apache/felix/shell/impl/InstallCommandImpl.java
(original)
+++ incubator/felix/trunk/shell/src/main/java/org/apache/felix/shell/impl/InstallCommandImpl.java
Sat Nov 18 05:21:20 2006
@@ -60,10 +60,27 @@
         // There should be at least one URL.
         if (st.countTokens() >= 1)
         {
+            StringBuffer sb = new StringBuffer();
             while (st.hasMoreTokens())
             {
                 String location = st.nextToken().trim();
-                install(location, out, err);
+                Bundle bundle = install(location, out, err);
+                if (bundle != null)
+                {
+                    if (sb.length() > 0)
+                    {
+                        sb.append(", ");
+                    }
+                    sb.append(bundle.getBundleId());
+                }
+            }
+            if (sb.toString().indexOf(',') > 0)
+            {
+                out.println("Bundle IDs: " + sb.toString());
+            }
+            else
+            {
+                out.println("Bundle ID: " + sb.toString());
             }
         }
         else
@@ -145,4 +162,4 @@
         }
         return guess;
     }
-}
\ No newline at end of file
+}



Mime
View raw message