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 2006/10/16 02:41:07 UTC

svn commit: r464335 - in /geronimo/gbuild/trunk/gbuild-commands: ./ src/ src/main/ src/main/java/ src/main/java/org/ src/main/java/org/apache/ src/main/java/org/apache/geronimo/ src/main/java/org/apache/geronimo/gbuild/ src/main/java/org/apache/geronim...

Author: jdillon
Date: Sun Oct 15 17:41:06 2006
New Revision: 464335

URL: http://svn.apache.org/viewvc?view=rev&rev=464335
Log:
Adding gshell commands to start different parts of gbuild

Added:
    geronimo/gbuild/trunk/gbuild-commands/
    geronimo/gbuild/trunk/gbuild-commands/pom.xml   (with props)
    geronimo/gbuild/trunk/gbuild-commands/src/
    geronimo/gbuild/trunk/gbuild-commands/src/main/
    geronimo/gbuild/trunk/gbuild-commands/src/main/java/
    geronimo/gbuild/trunk/gbuild-commands/src/main/java/org/
    geronimo/gbuild/trunk/gbuild-commands/src/main/java/org/apache/
    geronimo/gbuild/trunk/gbuild-commands/src/main/java/org/apache/geronimo/
    geronimo/gbuild/trunk/gbuild-commands/src/main/java/org/apache/geronimo/gbuild/
    geronimo/gbuild/trunk/gbuild-commands/src/main/java/org/apache/geronimo/gbuild/commands/
    geronimo/gbuild/trunk/gbuild-commands/src/main/java/org/apache/geronimo/gbuild/commands/AliasCommandSupport.java   (with props)
    geronimo/gbuild/trunk/gbuild-commands/src/main/java/org/apache/geronimo/gbuild/commands/BrokerCommand.java   (with props)
    geronimo/gbuild/trunk/gbuild-commands/src/main/java/org/apache/geronimo/gbuild/commands/ManagerCommand.java   (with props)
    geronimo/gbuild/trunk/gbuild-commands/src/main/java/org/apache/geronimo/gbuild/commands/PlexusCommand.java   (with props)
    geronimo/gbuild/trunk/gbuild-commands/src/main/java/org/apache/geronimo/gbuild/commands/SlaveCommand.java   (with props)
    geronimo/gbuild/trunk/gbuild-commands/src/main/resources/
    geronimo/gbuild/trunk/gbuild-commands/src/main/resources/META-INF/
    geronimo/gbuild/trunk/gbuild-commands/src/main/resources/META-INF/org.apache.geronimo.gshell.command/
    geronimo/gbuild/trunk/gbuild-commands/src/main/resources/META-INF/org.apache.geronimo.gshell.command/broker.properties   (with props)
    geronimo/gbuild/trunk/gbuild-commands/src/main/resources/META-INF/org.apache.geronimo.gshell.command/manager.properties   (with props)
    geronimo/gbuild/trunk/gbuild-commands/src/main/resources/META-INF/org.apache.geronimo.gshell.command/plexus.properties   (with props)
    geronimo/gbuild/trunk/gbuild-commands/src/main/resources/META-INF/org.apache.geronimo.gshell.command/slave.properties   (with props)
    geronimo/gbuild/trunk/gbuild-commands/src/main/resources/org/
    geronimo/gbuild/trunk/gbuild-commands/src/main/resources/org/apache/
    geronimo/gbuild/trunk/gbuild-commands/src/main/resources/org/apache/geronimo/
    geronimo/gbuild/trunk/gbuild-commands/src/main/resources/org/apache/geronimo/gbuild/
    geronimo/gbuild/trunk/gbuild-commands/src/main/resources/org/apache/geronimo/gbuild/commands/
    geronimo/gbuild/trunk/gbuild-commands/src/main/resources/org/apache/geronimo/gbuild/commands/BrokerCommandMessages.properties   (with props)
    geronimo/gbuild/trunk/gbuild-commands/src/main/resources/org/apache/geronimo/gbuild/commands/ManagerCommandMessages.properties   (with props)
    geronimo/gbuild/trunk/gbuild-commands/src/main/resources/org/apache/geronimo/gbuild/commands/PlexusCommandMessages.properties   (with props)
    geronimo/gbuild/trunk/gbuild-commands/src/main/resources/org/apache/geronimo/gbuild/commands/SlaveCommandMessages.properties   (with props)

Added: geronimo/gbuild/trunk/gbuild-commands/pom.xml
URL: http://svn.apache.org/viewvc/geronimo/gbuild/trunk/gbuild-commands/pom.xml?view=auto&rev=464335
==============================================================================
--- geronimo/gbuild/trunk/gbuild-commands/pom.xml (added)
+++ geronimo/gbuild/trunk/gbuild-commands/pom.xml Sun Oct 15 17:41:06 2006
@@ -0,0 +1,104 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+    Licensed to the Apache Software Foundation (ASF) under one
+    or more contributor license agreements.  See the NOTICE file
+    distributed with this work for additional information
+    regarding copyright ownership.  The ASF licenses this file
+    to you under the Apache License, Version 2.0 (the
+    "License"); you may not use this file except in compliance
+    with the License.  You may obtain a copy of the License at
+    
+     http://www.apache.org/licenses/LICENSE-2.0
+    
+    Unless required by applicable law or agreed to in writing,
+    software distributed under the License is distributed on an
+    "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+    KIND, either express or implied.  See the License for the
+    specific language governing permissions and limitations
+    under the License.
+-->
+
+<!-- $Rev$ $Date$ -->
+
+<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
+    
+    <modelVersion>4.0.0</modelVersion>
+
+    <parent>
+        <groupId>org.apache.geronimo.gbuild</groupId>
+        <artifactId>gbuild</artifactId>
+        <version>1.0-SNAPSHOT</version>
+        <relativePath>../pom.xml</relativePath>
+    </parent>
+
+    <artifactId>gbuild-commands</artifactId>
+    <name>GBuild Commands</name>
+    
+    <dependencies>
+        <dependency>
+            <groupId>org.apache.geronimo.gshell</groupId>
+            <artifactId>gshell-api</artifactId>
+            <version>1.0.0-SNAPSHOT</version>
+        </dependency>
+
+        <dependency>
+            <groupId>org.apache.geronimo.gshell</groupId>
+            <artifactId>gshell-core</artifactId>
+            <version>1.0.0-SNAPSHOT</version>
+        </dependency>
+
+        <!-- ActiveMQ Support -->
+
+        <dependency>
+            <groupId>org.apache.activemq</groupId>
+            <artifactId>activemq-core</artifactId>
+        </dependency>
+
+        <dependency>
+            <groupId>org.apache.activemq</groupId>
+            <artifactId>activeio-core</artifactId>
+        </dependency>
+
+        <!-- Plexus Support -->
+
+        <dependency>
+            <groupId>org.codehaus.plexus</groupId>
+            <artifactId>plexus-container-default</artifactId>
+            <!--
+            NOTE: Using 1.0-alpha-8 as the newer versions seems to have some issues, or at least
+                  they spit out WARNING messages about mismatched component managers.
+            -->
+            <version>1.0-alpha-8</version>
+        </dependency>
+        
+        <dependency>
+            <groupId>org.codehaus.plexus</groupId>
+            <artifactId>plexus-utils</artifactId>
+            <version>1.3</version>
+        </dependency>
+    </dependencies>
+    
+    <build>
+        <plugins>
+            <plugin>
+                <groupId>org.apache.maven.plugins</groupId>
+                <artifactId>maven-compiler-plugin</artifactId>
+                <configuration>
+                    <source>1.5</source>
+                    <target>1.5</target>
+                </configuration>
+            </plugin>
+            
+            <plugin>
+                <groupId>org.apache.maven.plugins</groupId>
+                <artifactId>maven-idea-plugin</artifactId>
+                <configuration>
+                    <jdkName>1.5</jdkName>
+                    <jdkLevel>5.0</jdkLevel>
+                    <linkModules>true</linkModules>
+                </configuration>
+            </plugin>
+        </plugins>
+    </build>
+
+</project>

Propchange: geronimo/gbuild/trunk/gbuild-commands/pom.xml
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: geronimo/gbuild/trunk/gbuild-commands/pom.xml
------------------------------------------------------------------------------
    svn:keywords = Date Author Id Revision HeadURL

Propchange: geronimo/gbuild/trunk/gbuild-commands/pom.xml
------------------------------------------------------------------------------
    svn:mime-type = text/xml

Added: geronimo/gbuild/trunk/gbuild-commands/src/main/java/org/apache/geronimo/gbuild/commands/AliasCommandSupport.java
URL: http://svn.apache.org/viewvc/geronimo/gbuild/trunk/gbuild-commands/src/main/java/org/apache/geronimo/gbuild/commands/AliasCommandSupport.java?view=auto&rev=464335
==============================================================================
--- geronimo/gbuild/trunk/gbuild-commands/src/main/java/org/apache/geronimo/gbuild/commands/AliasCommandSupport.java (added)
+++ geronimo/gbuild/trunk/gbuild-commands/src/main/java/org/apache/geronimo/gbuild/commands/AliasCommandSupport.java Sun Oct 15 17:41:06 2006
@@ -0,0 +1,78 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *  http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
+package org.apache.geronimo.gbuild.commands;
+
+import org.apache.commons.cli.CommandLine;
+
+import org.apache.geronimo.gshell.command.CommandSupport;
+import org.apache.geronimo.gshell.command.CommandException;
+import org.apache.geronimo.gshell.command.MessageSource;
+import org.apache.geronimo.gshell.Shell;
+import org.apache.geronimo.gshell.console.IO;
+
+//
+// TODO: This should be replaceable by a generic alias facility in GShell
+//
+
+/**
+ * Support for simple command aliases.
+ *
+ * @version $Rev$ $Date$
+ */
+public abstract class AliasCommandSupport
+    extends CommandSupport
+{
+    private Shell shell;
+
+    private String[] alias;
+
+    protected AliasCommandSupport(final String name, final Shell shell, final String... alias) {
+        super(name);
+
+        assert shell != null;
+        assert alias != null && alias.length != 0;
+        
+        this.shell = shell;
+        this.alias = alias;
+    }
+
+    protected boolean processCommandLine(final CommandLine line) throws CommandException {
+        assert line != null;
+
+        String[] args = line.getArgs();
+
+        IO io = getIO();
+        MessageSource messages = getMessageSource();
+
+        if (args.length != 0) {
+            io.err.println(messages.getMessage("cli.error.too_many_args"));
+
+            return true;
+        }
+
+        return false;
+    }
+
+    protected Object doExecute(final Object[] args) throws Exception {
+        assert args != null;
+
+        return shell.execute(alias);
+    }
+}

Propchange: geronimo/gbuild/trunk/gbuild-commands/src/main/java/org/apache/geronimo/gbuild/commands/AliasCommandSupport.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: geronimo/gbuild/trunk/gbuild-commands/src/main/java/org/apache/geronimo/gbuild/commands/AliasCommandSupport.java
------------------------------------------------------------------------------
    svn:keywords = Date Author Id Revision HeadURL

Propchange: geronimo/gbuild/trunk/gbuild-commands/src/main/java/org/apache/geronimo/gbuild/commands/AliasCommandSupport.java
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: geronimo/gbuild/trunk/gbuild-commands/src/main/java/org/apache/geronimo/gbuild/commands/BrokerCommand.java
URL: http://svn.apache.org/viewvc/geronimo/gbuild/trunk/gbuild-commands/src/main/java/org/apache/geronimo/gbuild/commands/BrokerCommand.java?view=auto&rev=464335
==============================================================================
--- geronimo/gbuild/trunk/gbuild-commands/src/main/java/org/apache/geronimo/gbuild/commands/BrokerCommand.java (added)
+++ geronimo/gbuild/trunk/gbuild-commands/src/main/java/org/apache/geronimo/gbuild/commands/BrokerCommand.java Sun Oct 15 17:41:06 2006
@@ -0,0 +1,103 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *  http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
+package org.apache.geronimo.gbuild.commands;
+
+import java.net.URL;
+import java.net.MalformedURLException;
+import java.net.URI;
+import java.net.InetAddress;
+import java.util.Properties;
+import java.io.File;
+
+import org.codehaus.plexus.embed.Embedder;
+import org.codehaus.plexus.personality.plexus.lifecycle.phase.StartingException;
+
+import org.apache.commons.cli.CommandLine;
+import org.apache.activemq.broker.BrokerService;
+import org.apache.activemq.broker.BrokerFactory;
+import org.apache.activemq.store.DefaultPersistenceAdapterFactory;
+
+import org.apache.geronimo.gshell.command.CommandSupport;
+import org.apache.geronimo.gshell.command.CommandException;
+import org.apache.geronimo.gshell.command.MessageSource;
+import org.apache.geronimo.gshell.command.Command;
+import org.apache.geronimo.gshell.console.IO;
+
+/**
+ * Start an <a href="http://activemq.org">ActiveMQ</a> message broker.
+ *
+ * @version $Rev$ $Date$
+ */
+public class BrokerCommand
+    extends CommandSupport
+{
+    public BrokerCommand() {
+        super("broker");
+    }
+
+    protected String getUsage() {
+        return super.getUsage() + " [<resource|file|url>]";
+    }
+
+    protected boolean processCommandLine(final CommandLine line) throws CommandException {
+        assert line != null;
+
+        String[] args = line.getArgs();
+
+        IO io = getIO();
+        MessageSource messages = getMessageSource();
+
+        if (args.length > 1) {
+            io.err.println(messages.getMessage("cli.error.too_many_args"));
+
+            return true;
+        }
+
+        return false;
+    }
+
+    protected Object doExecute(final Object[] args) throws Exception {
+        assert args != null;
+
+        IO io = getIO();
+
+        BrokerService broker;
+        URI uri;
+
+        if (args.length == 1) {
+            uri = new URI(String.valueOf(args[0]));
+        }
+        else {
+            uri = new URI("xbean:activemq.xml");
+        }
+
+        log.info("Configuring broker from URI: " + uri);
+
+        broker = BrokerFactory.createBroker(uri);
+
+        log.info("Starting broker...");
+
+        broker.start();
+
+        log.info("Broker started");
+
+        return Command.SUCCESS;
+    }
+}

Propchange: geronimo/gbuild/trunk/gbuild-commands/src/main/java/org/apache/geronimo/gbuild/commands/BrokerCommand.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: geronimo/gbuild/trunk/gbuild-commands/src/main/java/org/apache/geronimo/gbuild/commands/BrokerCommand.java
------------------------------------------------------------------------------
    svn:keywords = Date Author Id Revision HeadURL

Propchange: geronimo/gbuild/trunk/gbuild-commands/src/main/java/org/apache/geronimo/gbuild/commands/BrokerCommand.java
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: geronimo/gbuild/trunk/gbuild-commands/src/main/java/org/apache/geronimo/gbuild/commands/ManagerCommand.java
URL: http://svn.apache.org/viewvc/geronimo/gbuild/trunk/gbuild-commands/src/main/java/org/apache/geronimo/gbuild/commands/ManagerCommand.java?view=auto&rev=464335
==============================================================================
--- geronimo/gbuild/trunk/gbuild-commands/src/main/java/org/apache/geronimo/gbuild/commands/ManagerCommand.java (added)
+++ geronimo/gbuild/trunk/gbuild-commands/src/main/java/org/apache/geronimo/gbuild/commands/ManagerCommand.java Sun Oct 15 17:41:06 2006
@@ -0,0 +1,39 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *  http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
+package org.apache.geronimo.gbuild.commands;
+
+import org.apache.geronimo.gshell.Shell;
+
+/**
+ * Start the GBuild slave node.
+ *
+ * <p>
+ * Alias to <tt>plexus manager-application.xml</tt>.
+ * </p>
+ *
+ * @version $Rev$ $Date$
+ */
+public class ManagerCommand
+    extends AliasCommandSupport
+{
+    public ManagerCommand(final Shell shell) {
+        super("manager", shell, "plexus", "manager-application.xml");
+    }
+}

Propchange: geronimo/gbuild/trunk/gbuild-commands/src/main/java/org/apache/geronimo/gbuild/commands/ManagerCommand.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: geronimo/gbuild/trunk/gbuild-commands/src/main/java/org/apache/geronimo/gbuild/commands/ManagerCommand.java
------------------------------------------------------------------------------
    svn:keywords = Date Author Id Revision HeadURL

Propchange: geronimo/gbuild/trunk/gbuild-commands/src/main/java/org/apache/geronimo/gbuild/commands/ManagerCommand.java
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: geronimo/gbuild/trunk/gbuild-commands/src/main/java/org/apache/geronimo/gbuild/commands/PlexusCommand.java
URL: http://svn.apache.org/viewvc/geronimo/gbuild/trunk/gbuild-commands/src/main/java/org/apache/geronimo/gbuild/commands/PlexusCommand.java?view=auto&rev=464335
==============================================================================
--- geronimo/gbuild/trunk/gbuild-commands/src/main/java/org/apache/geronimo/gbuild/commands/PlexusCommand.java (added)
+++ geronimo/gbuild/trunk/gbuild-commands/src/main/java/org/apache/geronimo/gbuild/commands/PlexusCommand.java Sun Oct 15 17:41:06 2006
@@ -0,0 +1,134 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *  http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
+package org.apache.geronimo.gbuild.commands;
+
+import java.net.URL;
+import java.net.MalformedURLException;
+import java.util.Properties;
+import java.io.File;
+
+import org.codehaus.plexus.embed.Embedder;
+
+import org.apache.commons.cli.CommandLine;
+
+import org.apache.geronimo.gshell.command.Command;
+import org.apache.geronimo.gshell.command.CommandSupport;
+import org.apache.geronimo.gshell.command.MessageSource;
+import org.apache.geronimo.gshell.command.CommandException;
+import org.apache.geronimo.gshell.console.IO;
+
+/**
+ * Start a <a href="http://plexus.codehaus.org">Plexus</a> application.
+ *
+ * @version $Rev$ $Date$
+ */
+public class PlexusCommand
+    extends CommandSupport
+{
+    private Embedder embedder;
+
+    public PlexusCommand() {
+        super("plexus");
+    }
+
+    protected String getUsage() {
+        return super.getUsage() + " <resource|file|url>";
+    }
+
+    protected boolean processCommandLine(final CommandLine line) throws CommandException {
+        assert line != null;
+
+        String[] args = line.getArgs();
+
+        IO io = getIO();
+        MessageSource messages = getMessageSource();
+
+        if (args.length == 0) {
+            io.err.println(messages.getMessage("cli.error.missing_configuration"));
+
+            return true;
+        }
+        if (args.length != 1) {
+            io.err.println(messages.getMessage("cli.error.too_many_args"));
+
+            return true;
+        }
+
+        return false;
+    }
+    
+    protected Object doExecute(final Object[] args) throws Exception {
+        assert args != null;
+
+        IO io = getIO();
+
+        String configuration = String.valueOf(args[0]);
+        URL url = findConfigurationURL(configuration);
+        if (url == null) {
+            throw new Exception("Unable to load slave application configuration: " + configuration);
+        }
+        log.info("Using configuration from URL: " + url);
+
+        embedder = new Embedder();
+
+        Properties props = new Properties();
+        props.putAll(System.getProperties());
+
+        //
+        // HACK: Many plexus apps assume this property exists, so lets set it
+        //
+        props.put("plexus.home", props.get("gshell.home"));
+        
+        embedder.setProperties(props);
+        
+        embedder.setConfiguration(url);
+
+        embedder.start();
+
+        return Command.SUCCESS;
+    }
+
+    private URL findConfigurationURL(final String config) throws MalformedURLException {
+        assert config != null;
+
+        URL url = null;
+
+        try {
+            url = new URL(config);
+        }
+        catch (MalformedURLException e) {
+            File file = new File(config);
+
+            if (file.exists()) {
+                url = file.toURL();
+            }
+            else {
+                ClassLoader cl = getClass().getClassLoader();
+                url = cl.getResource(config);
+
+                if (url == null) {
+                    url = cl.getResource("/" + config);
+                }
+            }
+        }
+
+        return url;
+    }
+}
\ No newline at end of file

Propchange: geronimo/gbuild/trunk/gbuild-commands/src/main/java/org/apache/geronimo/gbuild/commands/PlexusCommand.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: geronimo/gbuild/trunk/gbuild-commands/src/main/java/org/apache/geronimo/gbuild/commands/PlexusCommand.java
------------------------------------------------------------------------------
    svn:keywords = Date Author Id Revision HeadURL

Propchange: geronimo/gbuild/trunk/gbuild-commands/src/main/java/org/apache/geronimo/gbuild/commands/PlexusCommand.java
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: geronimo/gbuild/trunk/gbuild-commands/src/main/java/org/apache/geronimo/gbuild/commands/SlaveCommand.java
URL: http://svn.apache.org/viewvc/geronimo/gbuild/trunk/gbuild-commands/src/main/java/org/apache/geronimo/gbuild/commands/SlaveCommand.java?view=auto&rev=464335
==============================================================================
--- geronimo/gbuild/trunk/gbuild-commands/src/main/java/org/apache/geronimo/gbuild/commands/SlaveCommand.java (added)
+++ geronimo/gbuild/trunk/gbuild-commands/src/main/java/org/apache/geronimo/gbuild/commands/SlaveCommand.java Sun Oct 15 17:41:06 2006
@@ -0,0 +1,39 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *  http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
+package org.apache.geronimo.gbuild.commands;
+
+import org.apache.geronimo.gshell.Shell;
+
+/**
+ * Start the GBuild slave node.
+ *
+ * <p>
+ * Alias to <tt>plexus slave-application.xml</tt>.
+ * </p>
+ *
+ * @version $Rev$ $Date$
+ */
+public class SlaveCommand
+    extends AliasCommandSupport
+{
+    public SlaveCommand(final Shell shell) {
+        super("slave", shell, "plexus", "slave-application.xml");
+    }
+}
\ No newline at end of file

Propchange: geronimo/gbuild/trunk/gbuild-commands/src/main/java/org/apache/geronimo/gbuild/commands/SlaveCommand.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: geronimo/gbuild/trunk/gbuild-commands/src/main/java/org/apache/geronimo/gbuild/commands/SlaveCommand.java
------------------------------------------------------------------------------
    svn:keywords = Date Author Id Revision HeadURL

Propchange: geronimo/gbuild/trunk/gbuild-commands/src/main/java/org/apache/geronimo/gbuild/commands/SlaveCommand.java
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: geronimo/gbuild/trunk/gbuild-commands/src/main/resources/META-INF/org.apache.geronimo.gshell.command/broker.properties
URL: http://svn.apache.org/viewvc/geronimo/gbuild/trunk/gbuild-commands/src/main/resources/META-INF/org.apache.geronimo.gshell.command/broker.properties?view=auto&rev=464335
==============================================================================
--- geronimo/gbuild/trunk/gbuild-commands/src/main/resources/META-INF/org.apache.geronimo.gshell.command/broker.properties (added)
+++ geronimo/gbuild/trunk/gbuild-commands/src/main/resources/META-INF/org.apache.geronimo.gshell.command/broker.properties Sun Oct 15 17:41:06 2006
@@ -0,0 +1,32 @@
+##
+## Licensed to the Apache Software Foundation (ASF) under one
+## or more contributor license agreements.  See the NOTICE file
+## distributed with this work for additional information
+## regarding copyright ownership.  The ASF licenses this file
+## to you under the Apache License, Version 2.0 (the
+## "License"); you may not use this file except in compliance
+## with the License.  You may obtain a copy of the License at
+##
+##  http://www.apache.org/licenses/LICENSE-2.0
+##
+## Unless required by applicable law or agreed to in writing,
+## software distributed under the License is distributed on an
+## "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+## KIND, either express or implied.  See the License for the
+## specific language governing permissions and limitations
+## under the License.
+##
+
+##
+## $Rev$ $Date$
+##
+
+class=org.apache.geronimo.gbuild.commands.BrokerCommand
+
+name=broker
+
+#aliases=
+
+category=gbuild
+
+enable=true
\ No newline at end of file

Propchange: geronimo/gbuild/trunk/gbuild-commands/src/main/resources/META-INF/org.apache.geronimo.gshell.command/broker.properties
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: geronimo/gbuild/trunk/gbuild-commands/src/main/resources/META-INF/org.apache.geronimo.gshell.command/broker.properties
------------------------------------------------------------------------------
    svn:keywords = Date Author Id Revision HeadURL

Propchange: geronimo/gbuild/trunk/gbuild-commands/src/main/resources/META-INF/org.apache.geronimo.gshell.command/broker.properties
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: geronimo/gbuild/trunk/gbuild-commands/src/main/resources/META-INF/org.apache.geronimo.gshell.command/manager.properties
URL: http://svn.apache.org/viewvc/geronimo/gbuild/trunk/gbuild-commands/src/main/resources/META-INF/org.apache.geronimo.gshell.command/manager.properties?view=auto&rev=464335
==============================================================================
--- geronimo/gbuild/trunk/gbuild-commands/src/main/resources/META-INF/org.apache.geronimo.gshell.command/manager.properties (added)
+++ geronimo/gbuild/trunk/gbuild-commands/src/main/resources/META-INF/org.apache.geronimo.gshell.command/manager.properties Sun Oct 15 17:41:06 2006
@@ -0,0 +1,32 @@
+##
+## Licensed to the Apache Software Foundation (ASF) under one
+## or more contributor license agreements.  See the NOTICE file
+## distributed with this work for additional information
+## regarding copyright ownership.  The ASF licenses this file
+## to you under the Apache License, Version 2.0 (the
+## "License"); you may not use this file except in compliance
+## with the License.  You may obtain a copy of the License at
+##
+##  http://www.apache.org/licenses/LICENSE-2.0
+##
+## Unless required by applicable law or agreed to in writing,
+## software distributed under the License is distributed on an
+## "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+## KIND, either express or implied.  See the License for the
+## specific language governing permissions and limitations
+## under the License.
+##
+
+##
+## $Rev$ $Date$
+##
+
+class=org.apache.geronimo.gbuild.commands.ManagerCommand
+
+name=manager
+
+#aliases=
+
+category=gbuild
+
+enable=true
\ No newline at end of file

Propchange: geronimo/gbuild/trunk/gbuild-commands/src/main/resources/META-INF/org.apache.geronimo.gshell.command/manager.properties
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: geronimo/gbuild/trunk/gbuild-commands/src/main/resources/META-INF/org.apache.geronimo.gshell.command/manager.properties
------------------------------------------------------------------------------
    svn:keywords = Date Author Id Revision HeadURL

Propchange: geronimo/gbuild/trunk/gbuild-commands/src/main/resources/META-INF/org.apache.geronimo.gshell.command/manager.properties
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: geronimo/gbuild/trunk/gbuild-commands/src/main/resources/META-INF/org.apache.geronimo.gshell.command/plexus.properties
URL: http://svn.apache.org/viewvc/geronimo/gbuild/trunk/gbuild-commands/src/main/resources/META-INF/org.apache.geronimo.gshell.command/plexus.properties?view=auto&rev=464335
==============================================================================
--- geronimo/gbuild/trunk/gbuild-commands/src/main/resources/META-INF/org.apache.geronimo.gshell.command/plexus.properties (added)
+++ geronimo/gbuild/trunk/gbuild-commands/src/main/resources/META-INF/org.apache.geronimo.gshell.command/plexus.properties Sun Oct 15 17:41:06 2006
@@ -0,0 +1,32 @@
+##
+## Licensed to the Apache Software Foundation (ASF) under one
+## or more contributor license agreements.  See the NOTICE file
+## distributed with this work for additional information
+## regarding copyright ownership.  The ASF licenses this file
+## to you under the Apache License, Version 2.0 (the
+## "License"); you may not use this file except in compliance
+## with the License.  You may obtain a copy of the License at
+##
+##  http://www.apache.org/licenses/LICENSE-2.0
+##
+## Unless required by applicable law or agreed to in writing,
+## software distributed under the License is distributed on an
+## "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+## KIND, either express or implied.  See the License for the
+## specific language governing permissions and limitations
+## under the License.
+##
+
+##
+## $Rev$ $Date$
+##
+
+class=org.apache.geronimo.gbuild.commands.PlexusCommand
+
+name=plexus
+
+#aliases=
+
+category=gbuild
+
+enable=true
\ No newline at end of file

Propchange: geronimo/gbuild/trunk/gbuild-commands/src/main/resources/META-INF/org.apache.geronimo.gshell.command/plexus.properties
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: geronimo/gbuild/trunk/gbuild-commands/src/main/resources/META-INF/org.apache.geronimo.gshell.command/plexus.properties
------------------------------------------------------------------------------
    svn:keywords = Date Author Id Revision HeadURL

Propchange: geronimo/gbuild/trunk/gbuild-commands/src/main/resources/META-INF/org.apache.geronimo.gshell.command/plexus.properties
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: geronimo/gbuild/trunk/gbuild-commands/src/main/resources/META-INF/org.apache.geronimo.gshell.command/slave.properties
URL: http://svn.apache.org/viewvc/geronimo/gbuild/trunk/gbuild-commands/src/main/resources/META-INF/org.apache.geronimo.gshell.command/slave.properties?view=auto&rev=464335
==============================================================================
--- geronimo/gbuild/trunk/gbuild-commands/src/main/resources/META-INF/org.apache.geronimo.gshell.command/slave.properties (added)
+++ geronimo/gbuild/trunk/gbuild-commands/src/main/resources/META-INF/org.apache.geronimo.gshell.command/slave.properties Sun Oct 15 17:41:06 2006
@@ -0,0 +1,32 @@
+##
+## Licensed to the Apache Software Foundation (ASF) under one
+## or more contributor license agreements.  See the NOTICE file
+## distributed with this work for additional information
+## regarding copyright ownership.  The ASF licenses this file
+## to you under the Apache License, Version 2.0 (the
+## "License"); you may not use this file except in compliance
+## with the License.  You may obtain a copy of the License at
+##
+##  http://www.apache.org/licenses/LICENSE-2.0
+##
+## Unless required by applicable law or agreed to in writing,
+## software distributed under the License is distributed on an
+## "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+## KIND, either express or implied.  See the License for the
+## specific language governing permissions and limitations
+## under the License.
+##
+
+##
+## $Rev$ $Date$
+##
+
+class=org.apache.geronimo.gbuild.commands.SlaveCommand
+
+name=slave
+
+#aliases=
+
+category=gbuild
+
+enable=true
\ No newline at end of file

Propchange: geronimo/gbuild/trunk/gbuild-commands/src/main/resources/META-INF/org.apache.geronimo.gshell.command/slave.properties
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: geronimo/gbuild/trunk/gbuild-commands/src/main/resources/META-INF/org.apache.geronimo.gshell.command/slave.properties
------------------------------------------------------------------------------
    svn:keywords = Date Author Id Revision HeadURL

Propchange: geronimo/gbuild/trunk/gbuild-commands/src/main/resources/META-INF/org.apache.geronimo.gshell.command/slave.properties
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: geronimo/gbuild/trunk/gbuild-commands/src/main/resources/org/apache/geronimo/gbuild/commands/BrokerCommandMessages.properties
URL: http://svn.apache.org/viewvc/geronimo/gbuild/trunk/gbuild-commands/src/main/resources/org/apache/geronimo/gbuild/commands/BrokerCommandMessages.properties?view=auto&rev=464335
==============================================================================
--- geronimo/gbuild/trunk/gbuild-commands/src/main/resources/org/apache/geronimo/gbuild/commands/BrokerCommandMessages.properties (added)
+++ geronimo/gbuild/trunk/gbuild-commands/src/main/resources/org/apache/geronimo/gbuild/commands/BrokerCommandMessages.properties Sun Oct 15 17:41:06 2006
@@ -0,0 +1,42 @@
+##
+## Licensed to the Apache Software Foundation (ASF) under one
+## or more contributor license agreements.  See the NOTICE file
+## distributed with this work for additional information
+## regarding copyright ownership.  The ASF licenses this file
+## to you under the Apache License, Version 2.0 (the
+## "License"); you may not use this file except in compliance
+## with the License.  You may obtain a copy of the License at
+##
+##  http://www.apache.org/licenses/LICENSE-2.0
+##
+## Unless required by applicable law or agreed to in writing,
+## software distributed under the License is distributed on an
+## "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+## KIND, either express or implied.  See the License for the
+## specific language governing permissions and limitations
+## under the License.
+##
+
+##
+## $Rev$ $Date$
+##
+
+##
+## Option descriptions
+##
+
+cli.option.help=Display this help message
+
+##
+## Option usage (help)
+##
+
+cli.usage.description=Start an ActiveMQ message broker
+
+cli.usage.footer=If no configuration resource is given then the default (xbean:activemq.xml) will be used.
+
+##
+## Option Errors
+##
+
+cli.error.too_many_args=Too many arguments

Propchange: geronimo/gbuild/trunk/gbuild-commands/src/main/resources/org/apache/geronimo/gbuild/commands/BrokerCommandMessages.properties
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: geronimo/gbuild/trunk/gbuild-commands/src/main/resources/org/apache/geronimo/gbuild/commands/BrokerCommandMessages.properties
------------------------------------------------------------------------------
    svn:keywords = Date Author Id Revision HeadURL

Propchange: geronimo/gbuild/trunk/gbuild-commands/src/main/resources/org/apache/geronimo/gbuild/commands/BrokerCommandMessages.properties
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: geronimo/gbuild/trunk/gbuild-commands/src/main/resources/org/apache/geronimo/gbuild/commands/ManagerCommandMessages.properties
URL: http://svn.apache.org/viewvc/geronimo/gbuild/trunk/gbuild-commands/src/main/resources/org/apache/geronimo/gbuild/commands/ManagerCommandMessages.properties?view=auto&rev=464335
==============================================================================
--- geronimo/gbuild/trunk/gbuild-commands/src/main/resources/org/apache/geronimo/gbuild/commands/ManagerCommandMessages.properties (added)
+++ geronimo/gbuild/trunk/gbuild-commands/src/main/resources/org/apache/geronimo/gbuild/commands/ManagerCommandMessages.properties Sun Oct 15 17:41:06 2006
@@ -0,0 +1,42 @@
+##
+## Licensed to the Apache Software Foundation (ASF) under one
+## or more contributor license agreements.  See the NOTICE file
+## distributed with this work for additional information
+## regarding copyright ownership.  The ASF licenses this file
+## to you under the Apache License, Version 2.0 (the
+## "License"); you may not use this file except in compliance
+## with the License.  You may obtain a copy of the License at
+##
+##  http://www.apache.org/licenses/LICENSE-2.0
+##
+## Unless required by applicable law or agreed to in writing,
+## software distributed under the License is distributed on an
+## "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+## KIND, either express or implied.  See the License for the
+## specific language governing permissions and limitations
+## under the License.
+##
+
+##
+## $Rev$ $Date$
+##
+
+##
+## Option descriptions
+##
+
+cli.option.help=Display this help message
+
+##
+## Option usage (help)
+##
+
+cli.usage.description=Start the GBuild manager node
+
+cli.usage.footer=
+
+##
+## Option Errors
+##
+
+cli.error.too_many_args=Too many arguments
\ No newline at end of file

Propchange: geronimo/gbuild/trunk/gbuild-commands/src/main/resources/org/apache/geronimo/gbuild/commands/ManagerCommandMessages.properties
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: geronimo/gbuild/trunk/gbuild-commands/src/main/resources/org/apache/geronimo/gbuild/commands/ManagerCommandMessages.properties
------------------------------------------------------------------------------
    svn:keywords = Date Author Id Revision HeadURL

Propchange: geronimo/gbuild/trunk/gbuild-commands/src/main/resources/org/apache/geronimo/gbuild/commands/ManagerCommandMessages.properties
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: geronimo/gbuild/trunk/gbuild-commands/src/main/resources/org/apache/geronimo/gbuild/commands/PlexusCommandMessages.properties
URL: http://svn.apache.org/viewvc/geronimo/gbuild/trunk/gbuild-commands/src/main/resources/org/apache/geronimo/gbuild/commands/PlexusCommandMessages.properties?view=auto&rev=464335
==============================================================================
--- geronimo/gbuild/trunk/gbuild-commands/src/main/resources/org/apache/geronimo/gbuild/commands/PlexusCommandMessages.properties (added)
+++ geronimo/gbuild/trunk/gbuild-commands/src/main/resources/org/apache/geronimo/gbuild/commands/PlexusCommandMessages.properties Sun Oct 15 17:41:06 2006
@@ -0,0 +1,44 @@
+##
+## Licensed to the Apache Software Foundation (ASF) under one
+## or more contributor license agreements.  See the NOTICE file
+## distributed with this work for additional information
+## regarding copyright ownership.  The ASF licenses this file
+## to you under the Apache License, Version 2.0 (the
+## "License"); you may not use this file except in compliance
+## with the License.  You may obtain a copy of the License at
+##
+##  http://www.apache.org/licenses/LICENSE-2.0
+##
+## Unless required by applicable law or agreed to in writing,
+## software distributed under the License is distributed on an
+## "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+## KIND, either express or implied.  See the License for the
+## specific language governing permissions and limitations
+## under the License.
+##
+
+##
+## $Rev$ $Date$
+##
+
+##
+## Option descriptions
+##
+
+cli.option.help=Display this help message
+
+##
+## Option usage (help)
+##
+
+cli.usage.description=Start a Plexus application
+
+cli.usage.footer=
+
+##
+## Option Errors
+##
+
+cli.error.missing_configuration=Missing Plexus application configuration
+
+cli.error.too_many_args=Too many arguments
\ No newline at end of file

Propchange: geronimo/gbuild/trunk/gbuild-commands/src/main/resources/org/apache/geronimo/gbuild/commands/PlexusCommandMessages.properties
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: geronimo/gbuild/trunk/gbuild-commands/src/main/resources/org/apache/geronimo/gbuild/commands/PlexusCommandMessages.properties
------------------------------------------------------------------------------
    svn:keywords = Date Author Id Revision HeadURL

Propchange: geronimo/gbuild/trunk/gbuild-commands/src/main/resources/org/apache/geronimo/gbuild/commands/PlexusCommandMessages.properties
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: geronimo/gbuild/trunk/gbuild-commands/src/main/resources/org/apache/geronimo/gbuild/commands/SlaveCommandMessages.properties
URL: http://svn.apache.org/viewvc/geronimo/gbuild/trunk/gbuild-commands/src/main/resources/org/apache/geronimo/gbuild/commands/SlaveCommandMessages.properties?view=auto&rev=464335
==============================================================================
--- geronimo/gbuild/trunk/gbuild-commands/src/main/resources/org/apache/geronimo/gbuild/commands/SlaveCommandMessages.properties (added)
+++ geronimo/gbuild/trunk/gbuild-commands/src/main/resources/org/apache/geronimo/gbuild/commands/SlaveCommandMessages.properties Sun Oct 15 17:41:06 2006
@@ -0,0 +1,42 @@
+##
+## Licensed to the Apache Software Foundation (ASF) under one
+## or more contributor license agreements.  See the NOTICE file
+## distributed with this work for additional information
+## regarding copyright ownership.  The ASF licenses this file
+## to you under the Apache License, Version 2.0 (the
+## "License"); you may not use this file except in compliance
+## with the License.  You may obtain a copy of the License at
+##
+##  http://www.apache.org/licenses/LICENSE-2.0
+##
+## Unless required by applicable law or agreed to in writing,
+## software distributed under the License is distributed on an
+## "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+## KIND, either express or implied.  See the License for the
+## specific language governing permissions and limitations
+## under the License.
+##
+
+##
+## $Rev$ $Date$
+##
+
+##
+## Option descriptions
+##
+
+cli.option.help=Display this help message
+
+##
+## Option usage (help)
+##
+
+cli.usage.description=Start the GBuild slave node
+
+cli.usage.footer=
+
+##
+## Option Errors
+##
+
+cli.error.too_many_args=Too many arguments
\ No newline at end of file

Propchange: geronimo/gbuild/trunk/gbuild-commands/src/main/resources/org/apache/geronimo/gbuild/commands/SlaveCommandMessages.properties
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: geronimo/gbuild/trunk/gbuild-commands/src/main/resources/org/apache/geronimo/gbuild/commands/SlaveCommandMessages.properties
------------------------------------------------------------------------------
    svn:keywords = Date Author Id Revision HeadURL

Propchange: geronimo/gbuild/trunk/gbuild-commands/src/main/resources/org/apache/geronimo/gbuild/commands/SlaveCommandMessages.properties
------------------------------------------------------------------------------
    svn:mime-type = text/plain