You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@karaf.apache.org by ff...@apache.org on 2012/08/06 07:58:54 UTC
svn commit: r1369724 - in
/karaf/branches/karaf-2.2.x/shell/osgi/src/main/java/org/apache/karaf/shell/osgi:
RestartBundle.java StartBundle.java StopBundle.java UninstallBundle.java
Author: ffang
Date: Mon Aug 6 05:58:53 2012
New Revision: 1369724
URL: http://svn.apache.org/viewvc?rev=1369724&view=rev
Log:
[KARAF-1050]osgi:start
Modified:
karaf/branches/karaf-2.2.x/shell/osgi/src/main/java/org/apache/karaf/shell/osgi/RestartBundle.java
karaf/branches/karaf-2.2.x/shell/osgi/src/main/java/org/apache/karaf/shell/osgi/StartBundle.java
karaf/branches/karaf-2.2.x/shell/osgi/src/main/java/org/apache/karaf/shell/osgi/StopBundle.java
karaf/branches/karaf-2.2.x/shell/osgi/src/main/java/org/apache/karaf/shell/osgi/UninstallBundle.java
Modified: karaf/branches/karaf-2.2.x/shell/osgi/src/main/java/org/apache/karaf/shell/osgi/RestartBundle.java
URL: http://svn.apache.org/viewvc/karaf/branches/karaf-2.2.x/shell/osgi/src/main/java/org/apache/karaf/shell/osgi/RestartBundle.java?rev=1369724&r1=1369723&r2=1369724&view=diff
==============================================================================
--- karaf/branches/karaf-2.2.x/shell/osgi/src/main/java/org/apache/karaf/shell/osgi/RestartBundle.java (original)
+++ karaf/branches/karaf-2.2.x/shell/osgi/src/main/java/org/apache/karaf/shell/osgi/RestartBundle.java Mon Aug 6 05:58:53 2012
@@ -25,6 +25,10 @@ import org.apache.felix.gogo.commands.Co
public class RestartBundle extends BundlesCommand {
protected void doExecute(List<Bundle> bundles) throws Exception {
+ if (bundles.isEmpty()) {
+ System.err.println("No bundles specified.");
+ return;
+ }
for (Bundle bundle : bundles) {
try {
bundle.stop();
Modified: karaf/branches/karaf-2.2.x/shell/osgi/src/main/java/org/apache/karaf/shell/osgi/StartBundle.java
URL: http://svn.apache.org/viewvc/karaf/branches/karaf-2.2.x/shell/osgi/src/main/java/org/apache/karaf/shell/osgi/StartBundle.java?rev=1369724&r1=1369723&r2=1369724&view=diff
==============================================================================
--- karaf/branches/karaf-2.2.x/shell/osgi/src/main/java/org/apache/karaf/shell/osgi/StartBundle.java (original)
+++ karaf/branches/karaf-2.2.x/shell/osgi/src/main/java/org/apache/karaf/shell/osgi/StartBundle.java Mon Aug 6 05:58:53 2012
@@ -25,6 +25,10 @@ import org.apache.felix.gogo.commands.Co
public class StartBundle extends BundlesCommand {
protected void doExecute(List<Bundle> bundles) throws Exception {
+ if (bundles.isEmpty()) {
+ System.err.println("No bundles specified.");
+ return;
+ }
for (Bundle bundle : bundles) {
try {
bundle.start();
Modified: karaf/branches/karaf-2.2.x/shell/osgi/src/main/java/org/apache/karaf/shell/osgi/StopBundle.java
URL: http://svn.apache.org/viewvc/karaf/branches/karaf-2.2.x/shell/osgi/src/main/java/org/apache/karaf/shell/osgi/StopBundle.java?rev=1369724&r1=1369723&r2=1369724&view=diff
==============================================================================
--- karaf/branches/karaf-2.2.x/shell/osgi/src/main/java/org/apache/karaf/shell/osgi/StopBundle.java (original)
+++ karaf/branches/karaf-2.2.x/shell/osgi/src/main/java/org/apache/karaf/shell/osgi/StopBundle.java Mon Aug 6 05:58:53 2012
@@ -25,6 +25,10 @@ import org.apache.felix.gogo.commands.Co
public class StopBundle extends BundlesCommand {
protected void doExecute(List<Bundle> bundles) throws Exception {
+ if (bundles.isEmpty()) {
+ System.err.println("No bundles specified.");
+ return;
+ }
for (Bundle bundle : bundles) {
try {
bundle.stop();
Modified: karaf/branches/karaf-2.2.x/shell/osgi/src/main/java/org/apache/karaf/shell/osgi/UninstallBundle.java
URL: http://svn.apache.org/viewvc/karaf/branches/karaf-2.2.x/shell/osgi/src/main/java/org/apache/karaf/shell/osgi/UninstallBundle.java?rev=1369724&r1=1369723&r2=1369724&view=diff
==============================================================================
--- karaf/branches/karaf-2.2.x/shell/osgi/src/main/java/org/apache/karaf/shell/osgi/UninstallBundle.java (original)
+++ karaf/branches/karaf-2.2.x/shell/osgi/src/main/java/org/apache/karaf/shell/osgi/UninstallBundle.java Mon Aug 6 05:58:53 2012
@@ -25,6 +25,10 @@ import org.apache.felix.gogo.commands.Co
public class UninstallBundle extends BundlesCommand {
protected void doExecute(List<Bundle> bundles) throws Exception {
+ if (bundles.isEmpty()) {
+ System.err.println("No bundles specified.");
+ return;
+ }
for (Bundle bundle : bundles) {
try {
bundle.uninstall();