You are viewing a plain text version of this content. The canonical link for it is here.
Posted to scm@geronimo.apache.org by ga...@apache.org on 2008/12/02 05:20:14 UTC
svn commit: r722371 -
/geronimo/server/trunk/framework/modules/geronimo-commands/src/main/groovy/org/apache/geronimo/commands/NewServerInstanceCommand.groovy
Author: gawor
Date: Mon Dec 1 20:20:14 2008
New Revision: 722371
URL: http://svn.apache.org/viewvc?rev=722371&view=rev
Log:
make the server name as a required argument instead of an option
Modified:
geronimo/server/trunk/framework/modules/geronimo-commands/src/main/groovy/org/apache/geronimo/commands/NewServerInstanceCommand.groovy
Modified: geronimo/server/trunk/framework/modules/geronimo-commands/src/main/groovy/org/apache/geronimo/commands/NewServerInstanceCommand.groovy
URL: http://svn.apache.org/viewvc/geronimo/server/trunk/framework/modules/geronimo-commands/src/main/groovy/org/apache/geronimo/commands/NewServerInstanceCommand.groovy?rev=722371&r1=722370&r2=722371&view=diff
==============================================================================
--- geronimo/server/trunk/framework/modules/geronimo-commands/src/main/groovy/org/apache/geronimo/commands/NewServerInstanceCommand.groovy (original)
+++ geronimo/server/trunk/framework/modules/geronimo-commands/src/main/groovy/org/apache/geronimo/commands/NewServerInstanceCommand.groovy Mon Dec 1 20:20:14 2008
@@ -21,7 +21,7 @@
import jline.ConsoleReader
import org.apache.geronimo.deployment.plugin.jmx.RemoteDeploymentManager
-import org.apache.geronimo.gshell.clp.Option
+import org.apache.geronimo.gshell.clp.Argument
import org.apache.geronimo.gshell.command.annotation.CommandComponent
import org.apache.geronimo.system.plugin.NewServerInstance
@@ -30,11 +30,11 @@
*
* @version $Rev: 580864 $ $Date: 2007-09-30 23:47:39 -0700 (Sun, 30 Sep 2007) $
*/
-@CommandComponent (id = 'geronimo-commands:new-server-instance', description = 'create new server instance in a server')
+@CommandComponent (id = 'geronimo-commands:new-server-instance', description = 'Create new server instance in a server')
class NewServerInstanceCommand
extends ConnectCommand
{
- @Option(name='-n', aliases=['--server-name'], description='Name of new server instance')
+ @Argument(metaVar='SERVER_NAME', required=true, description='Name of new server instance')
String serverName
protected Object doExecute() throws Exception {