geronimo-scm mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jdil...@apache.org
Subject svn commit: r428597 - in /geronimo/sandbox/gshell/trunk/gshell-commands/gshell-standard-commands/src/main/java/org/apache/geronimo/gshell/commands/standard: JavaCommand.java SleepCommand.java
Date Fri, 04 Aug 2006 02:40:17 GMT
Author: jdillon
Date: Thu Aug  3 19:40:17 2006
New Revision: 428597

URL: http://svn.apache.org/viewvc?rev=428597&view=rev
Log:
Fixed help text

Modified:
    geronimo/sandbox/gshell/trunk/gshell-commands/gshell-standard-commands/src/main/java/org/apache/geronimo/gshell/commands/standard/JavaCommand.java
    geronimo/sandbox/gshell/trunk/gshell-commands/gshell-standard-commands/src/main/java/org/apache/geronimo/gshell/commands/standard/SleepCommand.java

Modified: geronimo/sandbox/gshell/trunk/gshell-commands/gshell-standard-commands/src/main/java/org/apache/geronimo/gshell/commands/standard/JavaCommand.java
URL: http://svn.apache.org/viewvc/geronimo/sandbox/gshell/trunk/gshell-commands/gshell-standard-commands/src/main/java/org/apache/geronimo/gshell/commands/standard/JavaCommand.java?rev=428597&r1=428596&r2=428597&view=diff
==============================================================================
--- geronimo/sandbox/gshell/trunk/gshell-commands/gshell-standard-commands/src/main/java/org/apache/geronimo/gshell/commands/standard/JavaCommand.java
(original)
+++ geronimo/sandbox/gshell/trunk/gshell-commands/gshell-standard-commands/src/main/java/org/apache/geronimo/gshell/commands/standard/JavaCommand.java
Thu Aug  3 19:40:17 2006
@@ -74,6 +74,7 @@
 
         if (args.length == 0) {
             io.err.println(messages.getMessage("cli.error.missing_classname"));
+
             return true;
         }
         if (line.hasOption('M')) {
@@ -103,7 +104,7 @@
             log.info("Using type: " + type);
         }
 
-        Method method = type.getMethod(methodName, new Class[] { String[].class });
+        Method method = type.getMethod(methodName, String[].class);
         if (info) {
             log.info("Using method: " + method);
         }
@@ -112,7 +113,7 @@
             log.info("Invoking w/arguments: " + Arguments.asString(args));
         }
 
-        Object result = method.invoke(null, new Object[] { args });
+        Object result = method.invoke(null, args);
 
         if (info) {
             log.info("Result: " + result);

Modified: geronimo/sandbox/gshell/trunk/gshell-commands/gshell-standard-commands/src/main/java/org/apache/geronimo/gshell/commands/standard/SleepCommand.java
URL: http://svn.apache.org/viewvc/geronimo/sandbox/gshell/trunk/gshell-commands/gshell-standard-commands/src/main/java/org/apache/geronimo/gshell/commands/standard/SleepCommand.java?rev=428597&r1=428596&r2=428597&view=diff
==============================================================================
--- geronimo/sandbox/gshell/trunk/gshell-commands/gshell-standard-commands/src/main/java/org/apache/geronimo/gshell/commands/standard/SleepCommand.java
(original)
+++ geronimo/sandbox/gshell/trunk/gshell-commands/gshell-standard-commands/src/main/java/org/apache/geronimo/gshell/commands/standard/SleepCommand.java
Thu Aug  3 19:40:17 2006
@@ -37,7 +37,7 @@
     }
 
     protected String getUsage() {
-        return super.getUsage() + " <time>";
+        return super.getUsage() + " <milliseconds>";
     }
 
     protected boolean processCommandLine(final CommandLine line) throws CommandException
{
@@ -55,7 +55,7 @@
         return false;
     }
 
-    protected Object doExecute(Object[] args) throws Exception {
+    protected Object doExecute(final Object[] args) throws Exception {
         assert args != null;
 
         log.info("Sleeping for " + time);



Mime
View raw message