You are viewing a plain text version of this content. The canonical link for it is here.
Posted to scm@geronimo.apache.org by jd...@apache.org on 2008/01/23 21:06:38 UTC
svn commit: r614644 -
/geronimo/server/trunk/framework/modules/geronimo-commands/src/main/groovy/org/apache/geronimo/commands/StopServerCommand.groovy
Author: jdillon
Date: Wed Jan 23 12:06:33 2008
New Revision: 614644
URL: http://svn.apache.org/viewvc?rev=614644&view=rev
Log:
Inject the prompter
Modified:
geronimo/server/trunk/framework/modules/geronimo-commands/src/main/groovy/org/apache/geronimo/commands/StopServerCommand.groovy
Modified: geronimo/server/trunk/framework/modules/geronimo-commands/src/main/groovy/org/apache/geronimo/commands/StopServerCommand.groovy
URL: http://svn.apache.org/viewvc/geronimo/server/trunk/framework/modules/geronimo-commands/src/main/groovy/org/apache/geronimo/commands/StopServerCommand.groovy?rev=614644&r1=614643&r2=614644&view=diff
==============================================================================
--- geronimo/server/trunk/framework/modules/geronimo-commands/src/main/groovy/org/apache/geronimo/commands/StopServerCommand.groovy (original)
+++ geronimo/server/trunk/framework/modules/geronimo-commands/src/main/groovy/org/apache/geronimo/commands/StopServerCommand.groovy Wed Jan 23 12:06:33 2008
@@ -46,6 +46,9 @@
@Option(name='-w', aliases=['--password'], description='Password')
String password
+ @Requirement
+ PromptReader prompter
+
protected Object doExecute() throws Exception {
io.out.println("Stopping Geronimo server: ${hostname}:${port}")