Return-Path: Delivered-To: apmail-geronimo-scm-archive@www.apache.org Received: (qmail 4460 invoked from network); 6 Sep 2007 22:19:31 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 6 Sep 2007 22:19:31 -0000 Received: (qmail 5332 invoked by uid 500); 6 Sep 2007 22:19:25 -0000 Delivered-To: apmail-geronimo-scm-archive@geronimo.apache.org Received: (qmail 5177 invoked by uid 500); 6 Sep 2007 22:19:25 -0000 Mailing-List: contact scm-help@geronimo.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: Reply-To: dev@geronimo.apache.org List-Id: Delivered-To: mailing list scm@geronimo.apache.org Received: (qmail 5166 invoked by uid 99); 6 Sep 2007 22:19:25 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 06 Sep 2007 15:19:25 -0700 X-ASF-Spam-Status: No, hits=-100.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.3] (HELO eris.apache.org) (140.211.11.3) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 06 Sep 2007 22:20:49 +0000 Received: by eris.apache.org (Postfix, from userid 65534) id 2430C1A9832; Thu, 6 Sep 2007 15:19:06 -0700 (PDT) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r573399 - in /geronimo/server/trunk: ./ assemblies/geronimo-jetty6-javaee5-gshell/src/main/assembly/ assemblies/geronimo-jetty6-javaee5-gshell/src/main/underlay/etc/ modules/geronimo-commands/ modules/geronimo-commands/src/main/groovy/org/a... Date: Thu, 06 Sep 2007 22:19:05 -0000 To: scm@geronimo.apache.org From: jdillon@apache.org X-Mailer: svnmailer-1.0.8 Message-Id: <20070906221906.2430C1A9832@eris.apache.org> X-Virus-Checked: Checked by ClamAV on apache.org Author: jdillon Date: Thu Sep 6 15:19:03 2007 New Revision: 573399 URL: http://svn.apache.org/viewvc?rev=573399&view=rev Log: Update for the latest gshell changes Added: geronimo/server/trunk/assemblies/geronimo-jetty6-javaee5-gshell/src/main/underlay/etc/layout.xml (with props) geronimo/server/trunk/modules/geronimo-commands/src/main/resources/META-INF/gshell/ geronimo/server/trunk/modules/geronimo-commands/src/main/resources/META-INF/gshell/commands.xml (with props) Removed: geronimo/server/trunk/modules/geronimo-commands/src/main/resources/META-INF/plexus/ Modified: geronimo/server/trunk/assemblies/geronimo-jetty6-javaee5-gshell/src/main/assembly/bin.xml geronimo/server/trunk/modules/geronimo-commands/pom.xml geronimo/server/trunk/modules/geronimo-commands/src/main/groovy/org/apache/geronimo/commands/AntBuilder.java geronimo/server/trunk/modules/geronimo-commands/src/main/groovy/org/apache/geronimo/commands/ProcessLauncher.groovy geronimo/server/trunk/modules/geronimo-commands/src/main/groovy/org/apache/geronimo/commands/StartServerCommand.groovy geronimo/server/trunk/pom.xml Modified: geronimo/server/trunk/assemblies/geronimo-jetty6-javaee5-gshell/src/main/assembly/bin.xml URL: http://svn.apache.org/viewvc/geronimo/server/trunk/assemblies/geronimo-jetty6-javaee5-gshell/src/main/assembly/bin.xml?rev=573399&r1=573398&r2=573399&view=diff ============================================================================== --- geronimo/server/trunk/assemblies/geronimo-jetty6-javaee5-gshell/src/main/assembly/bin.xml (original) +++ geronimo/server/trunk/assemblies/geronimo-jetty6-javaee5-gshell/src/main/assembly/bin.xml Thu Sep 6 15:19:03 2007 @@ -159,13 +159,15 @@ org.slf4j:slf4j-api org.slf4j:slf4j-log4j12 org.slf4j:jcl104-over-slf4j - org.apache.geronimo.gshell:gshell-api + org.apache.geronimo.gshell:gshell-command-api org.apache.geronimo.gshell:gshell-cli org.apache.geronimo.gshell:gshell-core - org.apache.geronimo.gshell:gshell-clp - org.apache.geronimo.gshell:gshell-prefs - org.apache.geronimo.gshell:gshell-i18n - org.apache.geronimo.gshell:gshell-common + org.apache.geronimo.gshell:gshell-parser + org.apache.geronimo.gshell.support:gshell-ansi + org.apache.geronimo.gshell.support:gshell-clp + org.apache.geronimo.gshell.support:gshell-prefs + org.apache.geronimo.gshell.support:gshell-i18n + org.apache.geronimo.gshell.support:gshell-common org.apache.geronimo.gshell:gshell-diet-log4j org.apache.geronimo.gshell.commands:gshell-builtins org.codehaus.plexus:plexus-utils @@ -173,7 +175,7 @@ org.codehaus.plexus:plexus-container-default org.codehaus.plexus:plexus-expression-evaluator jline:jline - org.apache.xbean:xbean-finder + com.thoughtworks.xstream:xstream org.codehaus.groovy:groovy-all org.apache.ant:ant org.apache.ant:ant-launcher Added: geronimo/server/trunk/assemblies/geronimo-jetty6-javaee5-gshell/src/main/underlay/etc/layout.xml URL: http://svn.apache.org/viewvc/geronimo/server/trunk/assemblies/geronimo-jetty6-javaee5-gshell/src/main/underlay/etc/layout.xml?rev=573399&view=auto ============================================================================== --- geronimo/server/trunk/assemblies/geronimo-jetty6-javaee5-gshell/src/main/underlay/etc/layout.xml (added) +++ geronimo/server/trunk/assemblies/geronimo-jetty6-javaee5-gshell/src/main/underlay/etc/layout.xml Thu Sep 6 15:19:03 2007 @@ -0,0 +1,47 @@ + + + + + + + / + + + + help + org.apache.geronimo.gshell.commands.buildins.HelpCommand + + + + ? + help + + + + start-server + org.apache.geronimo.commands.StartServerCommand + + + + start + start-server + + + Propchange: geronimo/server/trunk/assemblies/geronimo-jetty6-javaee5-gshell/src/main/underlay/etc/layout.xml ------------------------------------------------------------------------------ svn:eol-style = native Propchange: geronimo/server/trunk/assemblies/geronimo-jetty6-javaee5-gshell/src/main/underlay/etc/layout.xml ------------------------------------------------------------------------------ svn:keywords = Date Author Id Revision HeadURL Propchange: geronimo/server/trunk/assemblies/geronimo-jetty6-javaee5-gshell/src/main/underlay/etc/layout.xml ------------------------------------------------------------------------------ svn:mime-type = text/xml Modified: geronimo/server/trunk/modules/geronimo-commands/pom.xml URL: http://svn.apache.org/viewvc/geronimo/server/trunk/modules/geronimo-commands/pom.xml?rev=573399&r1=573398&r2=573399&view=diff ============================================================================== --- geronimo/server/trunk/modules/geronimo-commands/pom.xml (original) +++ geronimo/server/trunk/modules/geronimo-commands/pom.xml Thu Sep 6 15:19:03 2007 @@ -52,7 +52,7 @@ org.apache.geronimo.gshell - gshell-api + gshell-command-api Modified: geronimo/server/trunk/modules/geronimo-commands/src/main/groovy/org/apache/geronimo/commands/AntBuilder.java URL: http://svn.apache.org/viewvc/geronimo/server/trunk/modules/geronimo-commands/src/main/groovy/org/apache/geronimo/commands/AntBuilder.java?rev=573399&r1=573398&r2=573399&view=diff ============================================================================== --- geronimo/server/trunk/modules/geronimo-commands/src/main/groovy/org/apache/geronimo/commands/AntBuilder.java (original) +++ geronimo/server/trunk/modules/geronimo-commands/src/main/groovy/org/apache/geronimo/commands/AntBuilder.java Thu Sep 6 15:19:03 2007 @@ -27,7 +27,7 @@ import org.slf4j.Logger; -import org.apache.geronimo.gshell.console.IO; +import org.apache.geronimo.gshell.command.IO; /** * Custom Ant builder to setup the desired output formatting. Modified: geronimo/server/trunk/modules/geronimo-commands/src/main/groovy/org/apache/geronimo/commands/ProcessLauncher.groovy URL: http://svn.apache.org/viewvc/geronimo/server/trunk/modules/geronimo-commands/src/main/groovy/org/apache/geronimo/commands/ProcessLauncher.groovy?rev=573399&r1=573398&r2=573399&view=diff ============================================================================== --- geronimo/server/trunk/modules/geronimo-commands/src/main/groovy/org/apache/geronimo/commands/ProcessLauncher.groovy (original) +++ geronimo/server/trunk/modules/geronimo-commands/src/main/groovy/org/apache/geronimo/commands/ProcessLauncher.groovy Thu Sep 6 15:19:03 2007 @@ -26,7 +26,7 @@ import org.slf4j.Logger import org.slf4j.LoggerFactory -import org.apache.geronimo.gshell.console.IO +import org.apache.geronimo.gshell.command.IO /** * Helper to execute a process and perform some verification logic to determine if the process is up or not. Modified: geronimo/server/trunk/modules/geronimo-commands/src/main/groovy/org/apache/geronimo/commands/StartServerCommand.groovy URL: http://svn.apache.org/viewvc/geronimo/server/trunk/modules/geronimo-commands/src/main/groovy/org/apache/geronimo/commands/StartServerCommand.groovy?rev=573399&r1=573398&r2=573399&view=diff ============================================================================== --- geronimo/server/trunk/modules/geronimo-commands/src/main/groovy/org/apache/geronimo/commands/StartServerCommand.groovy (original) +++ geronimo/server/trunk/modules/geronimo-commands/src/main/groovy/org/apache/geronimo/commands/StartServerCommand.groovy Thu Sep 6 15:19:03 2007 @@ -21,6 +21,7 @@ import org.apache.geronimo.gshell.command.CommandSupport import org.apache.geronimo.gshell.command.CommandException +import org.apache.geronimo.gshell.command.annotation.CommandComponent import org.apache.geronimo.gshell.clp.Option @@ -34,6 +35,7 @@ * * @version $Id$ */ +@CommandComponent(id='start-server') class StartServerCommand extends CommandSupport { @@ -125,10 +127,6 @@ String password = 'manager' - StartServerCommand() { - super('start-server') - } - private File getJavaAgentJar() { def file = new File(geronimoHome, 'bin/jpa.jar') @@ -149,7 +147,6 @@ } protected Object doExecute() throws Exception { - def io = getIO() ant = new AntBuilder(log, io) if (!geronimoHome) { @@ -280,13 +277,15 @@ return } + def name = context.commandDescriptor.id + def scanner = ant.fileScanner { fileset(dir: basedir) { - include(name: "${this.name},*.groovy") + include(name: "${name},*.groovy") } } - def binding = new Binding([command: this, log: log, io: getIO()]) + def binding = new Binding([command: this, log: log, io: io]) def shell = new GroovyShell(binding) for (file in scanner) { Added: geronimo/server/trunk/modules/geronimo-commands/src/main/resources/META-INF/gshell/commands.xml URL: http://svn.apache.org/viewvc/geronimo/server/trunk/modules/geronimo-commands/src/main/resources/META-INF/gshell/commands.xml?rev=573399&view=auto ============================================================================== --- geronimo/server/trunk/modules/geronimo-commands/src/main/resources/META-INF/gshell/commands.xml (added) +++ geronimo/server/trunk/modules/geronimo-commands/src/main/resources/META-INF/gshell/commands.xml Thu Sep 6 15:19:03 2007 @@ -0,0 +1,30 @@ + + + + + + + + + start-server + org.apache.geronimo.commands.StartServerCommand + + + Propchange: geronimo/server/trunk/modules/geronimo-commands/src/main/resources/META-INF/gshell/commands.xml ------------------------------------------------------------------------------ svn:eol-style = native Propchange: geronimo/server/trunk/modules/geronimo-commands/src/main/resources/META-INF/gshell/commands.xml ------------------------------------------------------------------------------ svn:keywords = Date Author Id Revision HeadURL Propchange: geronimo/server/trunk/modules/geronimo-commands/src/main/resources/META-INF/gshell/commands.xml ------------------------------------------------------------------------------ svn:mime-type = text/xml Modified: geronimo/server/trunk/pom.xml URL: http://svn.apache.org/viewvc/geronimo/server/trunk/pom.xml?rev=573399&r1=573398&r2=573399&view=diff ============================================================================== --- geronimo/server/trunk/pom.xml (original) +++ geronimo/server/trunk/pom.xml Thu Sep 6 15:19:03 2007 @@ -1471,7 +1471,7 @@ org.apache.geronimo.gshell - gshell-api + gshell-command-api 1.0-alpha-1-SNAPSHOT