geronimo-scm mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rwo...@apache.org
Subject svn commit: r1145895 - in /geronimo/server/trunk/framework/modules/geronimo-cli/src/main/java/org/apache/geronimo/cli/deployer: InstallBundleCommandArgsImpl.java UninstallBundleCommandMetaData.java
Date Wed, 13 Jul 2011 07:40:56 GMT
Author: rwonly
Date: Wed Jul 13 07:40:56 2011
New Revision: 1145895

URL: http://svn.apache.org/viewvc?rev=1145895&view=rev
Log:
the help info of uninstall-bundle cli can not display

Modified:
    geronimo/server/trunk/framework/modules/geronimo-cli/src/main/java/org/apache/geronimo/cli/deployer/InstallBundleCommandArgsImpl.java
    geronimo/server/trunk/framework/modules/geronimo-cli/src/main/java/org/apache/geronimo/cli/deployer/UninstallBundleCommandMetaData.java

Modified: geronimo/server/trunk/framework/modules/geronimo-cli/src/main/java/org/apache/geronimo/cli/deployer/InstallBundleCommandArgsImpl.java
URL: http://svn.apache.org/viewvc/geronimo/server/trunk/framework/modules/geronimo-cli/src/main/java/org/apache/geronimo/cli/deployer/InstallBundleCommandArgsImpl.java?rev=1145895&r1=1145894&r2=1145895&view=diff
==============================================================================
--- geronimo/server/trunk/framework/modules/geronimo-cli/src/main/java/org/apache/geronimo/cli/deployer/InstallBundleCommandArgsImpl.java
(original)
+++ geronimo/server/trunk/framework/modules/geronimo-cli/src/main/java/org/apache/geronimo/cli/deployer/InstallBundleCommandArgsImpl.java
Wed Jul 13 07:40:56 2011
@@ -53,7 +53,7 @@ public class InstallBundleCommandArgsImp
         }
         
         if (0 == commandLine.getArgs().length) {
-            throw new CLParserException("Must specify a bundle location");
+            throw new CLParserException("Must specify a bundle file");
         }
     }
     

Modified: geronimo/server/trunk/framework/modules/geronimo-cli/src/main/java/org/apache/geronimo/cli/deployer/UninstallBundleCommandMetaData.java
URL: http://svn.apache.org/viewvc/geronimo/server/trunk/framework/modules/geronimo-cli/src/main/java/org/apache/geronimo/cli/deployer/UninstallBundleCommandMetaData.java?rev=1145895&r1=1145894&r2=1145895&view=diff
==============================================================================
--- geronimo/server/trunk/framework/modules/geronimo-cli/src/main/java/org/apache/geronimo/cli/deployer/UninstallBundleCommandMetaData.java
(original)
+++ geronimo/server/trunk/framework/modules/geronimo-cli/src/main/java/org/apache/geronimo/cli/deployer/UninstallBundleCommandMetaData.java
Wed Jul 13 07:40:56 2011
@@ -16,6 +16,8 @@
  */
 package org.apache.geronimo.cli.deployer;
 
+import org.apache.geronimo.cli.CLParserException;
+
 public class UninstallBundleCommandMetaData extends BaseCommandMetaData {
     public static final CommandMetaData META_DATA = new UninstallBundleCommandMetaData();
 
@@ -27,4 +29,10 @@ public class UninstallBundleCommandMetaD
                 );
     }
 
+    public CommandArgs parse(String[] newArgs) throws CLParserException {
+        if (newArgs.length == 0) {
+            throw new CLParserException("Must specify a bundle id");
+        }
+        return new BaseCommandArgs(newArgs);
+    }
 }
\ No newline at end of file



Mime
View raw message