You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@servicemix.apache.org by ch...@apache.org on 2007/12/10 23:36:43 UTC

svn commit: r603079 - in /servicemix/smx4/runtime/trunk: assembly/src/main/distribution/unix-shell/bin/ assembly/src/main/distribution/windows-text/bin/ gshell/gshell-core/src/main/java/org/apache/geronimo/gshell/spring/ gshell/gshell-core/src/main/res...

Author: chirino
Date: Mon Dec 10 14:36:41 2007
New Revision: 603079

URL: http://svn.apache.org/viewvc?rev=603079&view=rev
Log:
Adding a create command that allows you to create servicemix instance configuration.

Added:
    servicemix/smx4/runtime/trunk/gshell/gshell-core/src/main/java/org/apache/geronimo/gshell/spring/CreateCommand.java   (with props)
    servicemix/smx4/runtime/trunk/gshell/gshell-core/src/main/resources/org/
    servicemix/smx4/runtime/trunk/gshell/gshell-core/src/main/resources/org/apache/
    servicemix/smx4/runtime/trunk/gshell/gshell-core/src/main/resources/org/apache/geronimo/
    servicemix/smx4/runtime/trunk/gshell/gshell-core/src/main/resources/org/apache/geronimo/gshell/
    servicemix/smx4/runtime/trunk/gshell/gshell-core/src/main/resources/org/apache/geronimo/gshell/spring/
    servicemix/smx4/runtime/trunk/gshell/gshell-core/src/main/resources/org/apache/geronimo/gshell/spring/bin/
    servicemix/smx4/runtime/trunk/gshell/gshell-core/src/main/resources/org/apache/geronimo/gshell/spring/bin/servicemix
    servicemix/smx4/runtime/trunk/gshell/gshell-core/src/main/resources/org/apache/geronimo/gshell/spring/bin/servicemix.bat   (with props)
    servicemix/smx4/runtime/trunk/gshell/gshell-core/src/main/resources/org/apache/geronimo/gshell/spring/etc/
    servicemix/smx4/runtime/trunk/gshell/gshell-core/src/main/resources/org/apache/geronimo/gshell/spring/etc/config.properties   (with props)
    servicemix/smx4/runtime/trunk/gshell/gshell-core/src/main/resources/org/apache/geronimo/gshell/spring/etc/login.conf
    servicemix/smx4/runtime/trunk/gshell/gshell-core/src/main/resources/org/apache/geronimo/gshell/spring/etc/org.apache.servicemix.management.cfg
    servicemix/smx4/runtime/trunk/gshell/gshell-core/src/main/resources/org/apache/geronimo/gshell/spring/etc/org.apache.servicemix.shell.cfg
    servicemix/smx4/runtime/trunk/gshell/gshell-core/src/main/resources/org/apache/geronimo/gshell/spring/etc/org.ops4j.pax.logging.cfg
    servicemix/smx4/runtime/trunk/gshell/gshell-core/src/main/resources/org/apache/geronimo/gshell/spring/etc/system.properties   (with props)
Modified:
    servicemix/smx4/runtime/trunk/assembly/src/main/distribution/unix-shell/bin/servicemix
    servicemix/smx4/runtime/trunk/assembly/src/main/distribution/windows-text/bin/servicemix.bat
    servicemix/smx4/runtime/trunk/gshell/gshell-core/src/main/resources/META-INF/spring/gshell-commands.xml
    servicemix/smx4/runtime/trunk/gshell/gshell-core/src/main/resources/META-INF/spring/gshell-osgi.xml

Modified: servicemix/smx4/runtime/trunk/assembly/src/main/distribution/unix-shell/bin/servicemix
URL: http://svn.apache.org/viewvc/servicemix/smx4/runtime/trunk/assembly/src/main/distribution/unix-shell/bin/servicemix?rev=603079&r1=603078&r2=603079&view=diff
==============================================================================
--- servicemix/smx4/runtime/trunk/assembly/src/main/distribution/unix-shell/bin/servicemix (original)
+++ servicemix/smx4/runtime/trunk/assembly/src/main/distribution/unix-shell/bin/servicemix Mon Dec 10 14:36:41 2007
@@ -258,8 +258,6 @@
         SERVICEMIX_HOME=`cygpath --path --windows "$SERVICEMIX_HOME"`
         SERVICEMIX_BASE=`cygpath --path --windows "$SERVICEMIX_BASE"`
     fi
-    cd "$SERVICEMIX_BASE"
-    echo exec $JAVA $JAVA_OPTS -Dservicemix.home="$SERVICEMIX_HOME" -Dservicemix.base="$SERVICEMIX_BASE" -jar "$JAR" $*
     exec $JAVA $JAVA_OPTS -Dservicemix.home="$SERVICEMIX_HOME" -Dservicemix.base="$SERVICEMIX_BASE" -jar "$JAR" $*
 }
 

Modified: servicemix/smx4/runtime/trunk/assembly/src/main/distribution/windows-text/bin/servicemix.bat
URL: http://svn.apache.org/viewvc/servicemix/smx4/runtime/trunk/assembly/src/main/distribution/windows-text/bin/servicemix.bat?rev=603079&r1=603078&r2=603079&view=diff
==============================================================================
--- servicemix/smx4/runtime/trunk/assembly/src/main/distribution/windows-text/bin/servicemix.bat (original)
+++ servicemix/smx4/runtime/trunk/assembly/src/main/distribution/windows-text/bin/servicemix.bat Mon Dec 10 14:36:41 2007
@@ -117,7 +117,6 @@
 
 :EXECUTE
     rem Execute the Java Virtual Machine
-    cd "%SERVICEMIX_BASE%"
     "%JAVA%" %JAVA_OPTS% -Dservicemix.home="%SERVICEMIX_HOME%" -Dservicemix.base="%SERVICEMIX_BASE%" -jar "%SERVICEMIX_HOME%\bin\servicemix.jar" %*
 
 rem # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #

Added: servicemix/smx4/runtime/trunk/gshell/gshell-core/src/main/java/org/apache/geronimo/gshell/spring/CreateCommand.java
URL: http://svn.apache.org/viewvc/servicemix/smx4/runtime/trunk/gshell/gshell-core/src/main/java/org/apache/geronimo/gshell/spring/CreateCommand.java?rev=603079&view=auto
==============================================================================
--- servicemix/smx4/runtime/trunk/gshell/gshell-core/src/main/java/org/apache/geronimo/gshell/spring/CreateCommand.java (added)
+++ servicemix/smx4/runtime/trunk/gshell/gshell-core/src/main/java/org/apache/geronimo/gshell/spring/CreateCommand.java Mon Dec 10 14:36:41 2007
@@ -0,0 +1,179 @@
+/*
+ * 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.gshell.spring;
+
+import java.io.File;
+import java.io.FileOutputStream;
+import java.io.IOException;
+import java.io.InputStream;
+import java.io.OutputStream;
+import java.io.PrintStream;
+import java.util.HashMap;
+import java.util.Map;
+import java.util.Scanner;
+
+import org.apache.geronimo.gshell.clp.Argument;
+import org.apache.geronimo.gshell.command.annotation.CommandComponent;
+import org.apache.geronimo.gshell.support.OsgiCommandSupport;
+
+/**
+ * Creates a new servicemix instance 
+ *
+ * @version $Rev$ $Date$
+ */
+@CommandComponent(id="smx:create", description="Create a new ServiceMix instance")
+public class CreateCommand
+    extends OsgiCommandSupport
+{
+    @Argument(index=0, required=true, description="Where to create the new ServiceMix instance")
+    private String instance = null;
+
+    protected Object doExecute() throws Exception {
+    	
+    	try {
+			File serviceMixBase = new File(instance).getCanonicalFile();
+			io.out.println("Creating new instance at:@|bold "+serviceMixBase+"|");
+			
+			mkdir(serviceMixBase, "bin");
+			mkdir(serviceMixBase, "etc");
+			mkdir(serviceMixBase, "system");
+			mkdir(serviceMixBase, "deploy");
+			mkdir(serviceMixBase, "data");
+			
+			copyResourceToDir(serviceMixBase, "etc/config.properties", true);
+			copyResourceToDir(serviceMixBase, "etc/login.conf", true);
+			copyResourceToDir(serviceMixBase, "etc/org.apache.servicemix.management.cfg", true);
+			copyResourceToDir(serviceMixBase, "etc/org.apache.servicemix.shell.cfg", true);
+			copyResourceToDir(serviceMixBase, "etc/org.ops4j.pax.logging.cfg", true);
+			copyResourceToDir(serviceMixBase, "etc/system.properties", true);
+
+			HashMap<String, String> props = new HashMap<String, String>();
+			props.put("${servicemix.home}", System.getProperty("servicemix.home"));
+			props.put("${servicemix.base}", serviceMixBase.getPath());
+			if( System.getProperty("os.name").startsWith("Win") ) {
+			    copyFilteredResourceToDir(serviceMixBase, "bin/servicemix.bat", props);
+			} else {
+			    copyFilteredResourceToDir(serviceMixBase, "bin/servicemix", props);
+			    // TODO: we should chmod a+x the file if we can.
+			}
+		} catch (Exception e) {
+			e.printStackTrace();
+			throw e;
+		}
+
+        return 0;
+    }
+
+	private void copyResourceToDir(File target, String resource, boolean text) throws Exception {
+		File outFile = new File(target, resource);
+		if( !outFile.exists() ) {
+	        io.out.println("Creating file:@|bold "+outFile.getPath()+"|");
+			InputStream is = CreateCommand.class.getResourceAsStream(resource);
+			try {
+				if( text ) {
+					// Read it line at a time so that we can use the platform line ending when we write it out.
+					PrintStream out = new PrintStream(new FileOutputStream(outFile));
+					try { 
+						Scanner scanner = new Scanner(is);
+						while (scanner.hasNextLine() ) {
+							String line = scanner.nextLine();
+							out.println(line);
+						}
+					} finally {
+						safeClose(out);
+					}
+				} else {
+					// Binary so just write it out the way it came in.
+					FileOutputStream out = new FileOutputStream(new File(target, resource));
+					try {
+						int c=0;
+						while((c=is.read())>=0) {
+							out.write(c);
+						}
+					} finally {
+						safeClose(out);
+					}
+				}
+			} finally {
+				safeClose(is);
+			}
+		}
+	}
+	
+	private void copyFilteredResourceToDir(File target, String resource, HashMap<String, String> props) throws Exception {
+		File outFile = new File(target, resource);
+		if( !outFile.exists() ) {
+	        io.out.println("Creating file:@|bold "+outFile.getPath()+"|");
+			InputStream is = CreateCommand.class.getResourceAsStream(resource);
+			try {
+				// Read it line at a time so that we can use the platform line ending when we write it out.
+				PrintStream out = new PrintStream(new FileOutputStream(outFile));
+				try { 
+					Scanner scanner = new Scanner(is);
+					while (scanner.hasNextLine() ) {
+						String line = scanner.nextLine();
+						line = filter(line, props);
+						out.println(line);
+					}
+				} finally {
+					safeClose(out);
+				}
+			} finally {
+				safeClose(is);
+			}
+		}
+	}
+
+	private void safeClose(InputStream is) throws IOException {
+		if( is==null)
+			return;
+		try {
+			is.close();
+		} catch (Throwable ignore) {
+		}
+	}
+	
+	private void safeClose(OutputStream is) throws IOException {
+		if( is==null)
+			return;
+		try {
+			is.close();
+		} catch (Throwable ignore) {
+		}
+	}
+
+	private String filter(String line, HashMap<String, String> props) {
+		for (Map.Entry<String, String> i : props.entrySet()) {
+			int p1 = line.indexOf(i.getKey());
+			if( p1 >= 0 ) {
+				String l1 = line.substring(0, p1);
+				String l2 = line.substring(p1+i.getKey().length());
+				line = l1+i.getValue()+l2;
+			}
+		}
+		return line;
+	}
+
+	private void mkdir(File serviceMixBase, String path) {
+		File file = new File(serviceMixBase, path);
+		if( !file.exists() ) {
+	        io.out.println("Creating dir:@|bold "+file.getPath()+"|");
+			file.mkdirs();
+		}
+		
+	}
+}

Propchange: servicemix/smx4/runtime/trunk/gshell/gshell-core/src/main/java/org/apache/geronimo/gshell/spring/CreateCommand.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: servicemix/smx4/runtime/trunk/gshell/gshell-core/src/main/java/org/apache/geronimo/gshell/spring/CreateCommand.java
------------------------------------------------------------------------------
    svn:keywords = Rev Date

Modified: servicemix/smx4/runtime/trunk/gshell/gshell-core/src/main/resources/META-INF/spring/gshell-commands.xml
URL: http://svn.apache.org/viewvc/servicemix/smx4/runtime/trunk/gshell/gshell-core/src/main/resources/META-INF/spring/gshell-commands.xml?rev=603079&r1=603078&r2=603079&view=diff
==============================================================================
--- servicemix/smx4/runtime/trunk/gshell/gshell-core/src/main/resources/META-INF/spring/gshell-commands.xml (original)
+++ servicemix/smx4/runtime/trunk/gshell/gshell-core/src/main/resources/META-INF/spring/gshell-commands.xml Mon Dec 10 14:36:41 2007
@@ -44,4 +44,6 @@
 
     <bean id="unset" class="org.apache.geronimo.gshell.commands.builtins.UnsetCommand" />
 
+    <bean id="create" class="org.apache.geronimo.gshell.spring.CreateCommand" />
+
 </beans>

Modified: servicemix/smx4/runtime/trunk/gshell/gshell-core/src/main/resources/META-INF/spring/gshell-osgi.xml
URL: http://svn.apache.org/viewvc/servicemix/smx4/runtime/trunk/gshell/gshell-core/src/main/resources/META-INF/spring/gshell-osgi.xml?rev=603079&r1=603078&r2=603079&view=diff
==============================================================================
--- servicemix/smx4/runtime/trunk/gshell/gshell-core/src/main/resources/META-INF/spring/gshell-osgi.xml (original)
+++ servicemix/smx4/runtime/trunk/gshell/gshell-core/src/main/resources/META-INF/spring/gshell-osgi.xml Mon Dec 10 14:36:41 2007
@@ -85,6 +85,12 @@
         </osgi:service-properties>
     </osgi:service>
 
+    <osgi:service ref="create" interface="org.apache.geronimo.gshell.command.Command">
+      <osgi:service-properties>
+      	<entry key="alias" value="create"/>
+      </osgi:service-properties>
+    </osgi:service>
+
     <osgix:property-placeholder persistent-id="org.apache.servicemix.shell">
         <osgix:default-properties>
             <prop key="startLocalConsole">true</prop>
@@ -92,5 +98,5 @@
             <prop key="remoteShellLocation">tcp://0.0.0.0:8100/</prop>
         </osgix:default-properties>
     </osgix:property-placeholder>
-
+    
 </beans>

Added: servicemix/smx4/runtime/trunk/gshell/gshell-core/src/main/resources/org/apache/geronimo/gshell/spring/bin/servicemix
URL: http://svn.apache.org/viewvc/servicemix/smx4/runtime/trunk/gshell/gshell-core/src/main/resources/org/apache/geronimo/gshell/spring/bin/servicemix?rev=603079&view=auto
==============================================================================
--- servicemix/smx4/runtime/trunk/gshell/gshell-core/src/main/resources/org/apache/geronimo/gshell/spring/bin/servicemix (added)
+++ servicemix/smx4/runtime/trunk/gshell/gshell-core/src/main/resources/org/apache/geronimo/gshell/spring/bin/servicemix Mon Dec 10 14:36:41 2007
@@ -0,0 +1,25 @@
+#!/bin/sh
+################################################################################
+#
+#    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.
+#
+################################################################################
+
+SERVICEMIX_HOME=${servicemix.home}
+SERVICEMIX_BASE=${servicemix.base}
+
+export SERVICEMIX_BASE
+${SERVICEMIX_HOME}/bin/servicemix "$*"
\ No newline at end of file

Added: servicemix/smx4/runtime/trunk/gshell/gshell-core/src/main/resources/org/apache/geronimo/gshell/spring/bin/servicemix.bat
URL: http://svn.apache.org/viewvc/servicemix/smx4/runtime/trunk/gshell/gshell-core/src/main/resources/org/apache/geronimo/gshell/spring/bin/servicemix.bat?rev=603079&view=auto
==============================================================================
--- servicemix/smx4/runtime/trunk/gshell/gshell-core/src/main/resources/org/apache/geronimo/gshell/spring/bin/servicemix.bat (added)
+++ servicemix/smx4/runtime/trunk/gshell/gshell-core/src/main/resources/org/apache/geronimo/gshell/spring/bin/servicemix.bat Mon Dec 10 14:36:41 2007
@@ -0,0 +1,25 @@
+@ECHO OFF
+REM =========================================================================
+REM 
+REM Licensed to the Apache Software Foundation (ASF) under one or more
+REM contributor license agreements.  See the NOTICE file distributed with
+REM this work for additional information regarding copyright ownership.
+REM The ASF licenses this file to You under the Apache License, Version 2.0
+REM (the "License"); you may not use this file except in compliance with
+REM the License.  You may obtain a copy of the License at
+REM 
+REM    http://www.apache.org/licenses/LICENSE-2.0
+REM 
+REM Unless required by applicable law or agreed to in writing, software
+REM distributed under the License is distributed on an "AS IS" BASIS,
+REM WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+REM See the License for the specific language governing permissions and
+REM limitations under the License.
+REM 
+REM =========================================================================
+
+SET SERVICEMIX_BASE=${servicemix.base}
+SETLOCAL
+SET SERVICEMIX_HOME=${servicemix.home}
+
+%SERVICEMIX_HOME%\bin\servicemix.bat "$*"
\ No newline at end of file

Propchange: servicemix/smx4/runtime/trunk/gshell/gshell-core/src/main/resources/org/apache/geronimo/gshell/spring/bin/servicemix.bat
------------------------------------------------------------------------------
    svn:eol-style = native

Added: servicemix/smx4/runtime/trunk/gshell/gshell-core/src/main/resources/org/apache/geronimo/gshell/spring/etc/config.properties
URL: http://svn.apache.org/viewvc/servicemix/smx4/runtime/trunk/gshell/gshell-core/src/main/resources/org/apache/geronimo/gshell/spring/etc/config.properties?rev=603079&view=auto
==============================================================================
--- servicemix/smx4/runtime/trunk/gshell/gshell-core/src/main/resources/org/apache/geronimo/gshell/spring/etc/config.properties (added)
+++ servicemix/smx4/runtime/trunk/gshell/gshell-core/src/main/resources/org/apache/geronimo/gshell/spring/etc/config.properties Mon Dec 10 14:36:41 2007
@@ -0,0 +1,344 @@
+################################################################################
+#
+#    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.
+#
+################################################################################
+
+#
+# Framework config properties.
+#
+org.osgi.framework.system.packages=org.osgi.framework; version=1.3.0, \
+ org.osgi.service.packageadmin; version=1.2.0, \
+ org.osgi.service.startlevel; version=1.0.0, \
+ org.osgi.service.url; version=1.0.0, \
+ org.apache.servicemix.runtime.main.spi, \
+ ${jre-${java.specification.version}}
+#org.osgi.framework.bootdelegation=sun.*,com.sun.*
+
+# To enable the use of the startup.properties file to control the start level:
+#felix.auto.start=startup.properties
+felix.auto.start=all
+
+felix.startlevel.framework=100
+felix.startlevel.bundle=50
+felix.cache.profiledir=${servicemix.base}/data/cache
+#framework.service.urlhandlers=false
+
+#
+# Bundle config properties.
+#
+obr.repository.url=http://svn.apache.org/repos/asf/servicemix/smx4/obr-repo/repository.xml
+
+#
+# FileMonitor properties
+#
+org.apache.servicemix.filemonitor.configDir        = ${servicemix.base}/etc
+org.apache.servicemix.filemonitor.monitorDir       = ${servicemix.base}/deploy
+org.apache.servicemix.filemonitor.generatedJarDir  = ${servicemix.base}/data/generated-bundles
+org.apache.servicemix.filemonitor.scanInterval     = 500
+
+
+#
+# Java platform package export properties.
+#
+jre-1.5= \
+ javax.accessibility; \
+ javax.activity; \
+ javax.crypto; \
+ javax.crypto.interfaces; \
+ javax.crypto.spec; \
+ javax.imageio; \
+ javax.imageio.event; \
+ javax.imageio.metadata; \
+ javax.imageio.plugins.bmp; \
+ javax.imageio.plugins.jpeg; \
+ javax.imageio.spi; \
+ javax.imageio.stream; \
+ javax.management; \
+ javax.management.loading; \
+ javax.management.modelmbean; \
+ javax.management.monitor; \
+ javax.management.openmbean; \
+ javax.management.relation; \
+ javax.management.remote; \
+ javax.management.remote.rmi; \
+ javax.management.timer; \
+ javax.naming; \
+ javax.naming.directory; \
+ javax.naming.event; \
+ javax.naming.ldap; \
+ javax.naming.spi; \
+ javax.net; \
+ javax.net.ssl; \
+ javax.print; \
+ javax.print.attribute; \
+ javax.print.attribute.standard; \
+ javax.print.event; \
+ javax.rmi; \
+ javax.rmi.CORBA; \
+ javax.rmi.ssl; \
+ javax.security.auth; \
+ javax.security.auth.callback; \
+ javax.security.auth.kerberos; \
+ javax.security.auth.login; \
+ javax.security.auth.spi; \
+ javax.security.auth.x500; \
+ javax.security.cert; \
+ javax.security.sasl; \
+ javax.sound.midi; \
+ javax.sound.midi.spi; \
+ javax.sound.sampled; \
+ javax.sound.sampled.spi; \
+ javax.sql; \
+ javax.sql.rowset; \
+ javax.sql.rowset.serial; \
+ javax.sql.rowset.spi; \
+ javax.swing; \
+ javax.swing.border; \
+ javax.swing.colorchooser; \
+ javax.swing.event; \
+ javax.swing.filechooser; \
+ javax.swing.plaf; \
+ javax.swing.plaf.basic; \
+ javax.swing.plaf.metal; \
+ javax.swing.plaf.multi; \
+ javax.swing.plaf.synth; \
+ javax.swing.table; \
+ javax.swing.text; \
+ javax.swing.text.html; \
+ javax.swing.text.html.parser; \
+ javax.swing.text.rtf; \
+ javax.swing.tree; \
+ javax.swing.undo; \
+ javax.xml; \
+ javax.xml.datatype; \
+ javax.xml.namespace; \
+ javax.xml.parsers; \
+ javax.xml.transform; \
+ javax.xml.transform.dom; \
+ javax.xml.transform.sax; \
+ javax.xml.transform.stream; \
+ javax.xml.validation; \
+ javax.xml.xpath; \
+ org.ietf.jgss; \
+ org.omg.CORBA; \
+ org.omg.CORBA_2_3; \
+ org.omg.CORBA_2_3.portable; \
+ org.omg.CORBA.DynAnyPackage; \
+ org.omg.CORBA.ORBPackage; \
+ org.omg.CORBA.portable; \
+ org.omg.CORBA.TypeCodePackage; \
+ org.omg.CosNaming; \
+ org.omg.CosNaming.NamingContextExtPackage; \
+ org.omg.CosNaming.NamingContextPackage; \
+ org.omg.Dynamic; \
+ org.omg.DynamicAny; \
+ org.omg.DynamicAny.DynAnyFactoryPackage; \
+ org.omg.DynamicAny.DynAnyPackage; \
+ org.omg.IOP; \
+ org.omg.IOP.CodecFactoryPackage; \
+ org.omg.IOP.CodecPackage; \
+ org.omg.Messaging; \
+ org.omg.PortableInterceptor; \
+ org.omg.PortableInterceptor.ORBInitInfoPackage; \
+ org.omg.PortableServer; \
+ org.omg.PortableServer.CurrentPackage; \
+ org.omg.PortableServer.POAManagerPackage; \
+ org.omg.PortableServer.POAPackage; \
+ org.omg.PortableServer.portable; \
+ org.omg.PortableServer.ServantLocatorPackage; \
+ org.omg.SendingContext; \
+ org.omg.stub.java.rmi; \
+ org.omg.stub.javax.management.remote.rmi; \
+ org.w3c.dom; \
+ org.w3c.dom.bootstrap; \
+ org.w3c.dom.css; \
+ org.w3c.dom.events; \
+ org.w3c.dom.html; \
+ org.w3c.dom.ls; \
+ org.w3c.dom.ranges; \
+ org.w3c.dom.stylesheets; \
+ org.w3c.dom.traversal; \
+ org.w3c.dom.views; \
+ org.xml.sax; \
+ org.xml.sax.ext; \
+ org.xml.sax.helpers; \
+ sun.misc; \
+ sun.reflect; \
+ version="1.5.0"
+
+jre-1.6= \
+ javax.accessibility; \
+ javax.activation; \
+ javax.activity; \
+ javax.annotation; \
+ javax.annotation.processing; \
+ javax.crypto; \
+ javax.crypto.interfaces; \
+ javax.crypto.spec; \
+ javax.imageio; \
+ javax.imageio.event; \
+ javax.imageio.metadata; \
+ javax.imageio.plugins.bmp; \
+ javax.imageio.plugins.jpeg; \
+ javax.imageio.spi; \
+ javax.imageio.stream; \
+ javax.jws; \
+ javax.jws.soap; \
+ javax.lang; \
+ javax.lang.model; \
+ javax.lang.model.element; \
+ javax.lang.model.type; \
+ javax.lang.model.util; \
+ javax.management; \
+ javax.management.loading; \
+ javax.management.modelmbean; \
+ javax.management.monitor; \
+ javax.management.openmbean; \
+ javax.management.relation; \
+ javax.management.remote; \
+ javax.management.remote.rmi; \
+ javax.management.timer; \
+ javax.naming; \
+ javax.naming.directory; \
+ javax.naming.event; \
+ javax.naming.ldap; \
+ javax.naming.spi; \
+ javax.net; \
+ javax.net.ssl; \
+ javax.print; \
+ javax.print.attribute; \
+ javax.print.attribute.standard; \
+ javax.print.event; \
+ javax.rmi; \
+ javax.rmi.CORBA; \
+ javax.rmi.ssl; \
+ javax.script; \
+ javax.security.auth; \
+ javax.security.auth.callback; \
+ javax.security.auth.kerberos; \
+ javax.security.auth.login; \
+ javax.security.auth.spi; \
+ javax.security.auth.x500; \
+ javax.security.cert; \
+ javax.security.sasl; \
+ javax.sound.midi; \
+ javax.sound.midi.spi; \
+ javax.sound.sampled; \
+ javax.sound.sampled.spi; \
+ javax.sql; \
+ javax.sql.rowset; \
+ javax.sql.rowset.serial; \
+ javax.sql.rowset.spi; \
+ javax.swing; \
+ javax.swing.border; \
+ javax.swing.colorchooser; \
+ javax.swing.event; \
+ javax.swing.filechooser; \
+ javax.swing.plaf; \
+ javax.swing.plaf.basic; \
+ javax.swing.plaf.metal; \
+ javax.swing.plaf.multi; \
+ javax.swing.plaf.synth; \
+ javax.swing.table; \
+ javax.swing.text; \
+ javax.swing.text.html; \
+ javax.swing.text.html.parser; \
+ javax.swing.text.rtf; \
+ javax.swing.tree; \
+ javax.swing.undo; \
+ javax.tools; \
+ javax.xml; \
+ javax.xml.bind; \
+ javax.xml.bind.annotation; \
+ javax.xml.bind.annotation.adapters; \
+ javax.xml.bind.attachment; \
+ javax.xml.bind.helpers; \
+ javax.xml.bind.util; \
+ javax.xml.crypto; \
+ javax.xml.crypto.dom; \
+ javax.xml.crypto.dsig; \
+ javax.xml.crypto.dsig.dom; \
+ javax.xml.crypto.dsig.keyinfo; \
+ javax.xml.crypto.dsig.spec; \
+ javax.xml.datatype; \
+ javax.xml.namespace; \
+ javax.xml.parsers; \
+ javax.xml.soap; \
+ javax.xml.stream; \
+ javax.xml.stream.events; \
+ javax.xml.stream.util; \
+ javax.xml.transform; \
+ javax.xml.transform.dom; \
+ javax.xml.transform.sax; \
+ javax.xml.transform.stax; \
+ javax.xml.transform.stream; \
+ javax.xml.validation; \
+ javax.xml.ws; \
+ javax.xml.ws.handler; \
+ javax.xml.ws.handler.soap; \
+ javax.xml.ws.http; \
+ javax.xml.ws.soap; \
+ javax.xml.ws.spi; \
+ javax.xml.xpath; \
+ org.ietf.jgss; \
+ org.omg.CORBA; \
+ org.omg.CORBA_2_3; \
+ org.omg.CORBA_2_3.portable; \
+ org.omg.CORBA.DynAnyPackage; \
+ org.omg.CORBA.ORBPackage; \
+ org.omg.CORBA.portable; \
+ org.omg.CORBA.TypeCodePackage; \
+ org.omg.CosNaming; \
+ org.omg.CosNaming.NamingContextExtPackage; \
+ org.omg.CosNaming.NamingContextPackage; \
+ org.omg.Dynamic; \
+ org.omg.DynamicAny; \
+ org.omg.DynamicAny.DynAnyFactoryPackage; \
+ org.omg.DynamicAny.DynAnyPackage; \
+ org.omg.IOP; \
+ org.omg.IOP.CodecFactoryPackage; \
+ org.omg.IOP.CodecPackage; \
+ org.omg.Messaging; \
+ org.omg.PortableInterceptor; \
+ org.omg.PortableInterceptor.ORBInitInfoPackage; \
+ org.omg.PortableServer; \
+ org.omg.PortableServer.CurrentPackage; \
+ org.omg.PortableServer.POAManagerPackage; \
+ org.omg.PortableServer.POAPackage; \
+ org.omg.PortableServer.portable; \
+ org.omg.PortableServer.ServantLocatorPackage; \
+ org.omg.SendingContext; \
+ org.omg.stub.java.rmi; \
+ org.omg.stub.javax.management.remote.rmi; \
+ org.w3c.dom; \
+ org.w3c.dom.bootstrap; \
+ org.w3c.dom.css; \
+ org.w3c.dom.events; \
+ org.w3c.dom.html; \
+ org.w3c.dom.ls; \
+ org.w3c.dom.ranges; \
+ org.w3c.dom.stylesheets; \
+ org.w3c.dom.traversal; \
+ org.w3c.dom.views; \
+ org.w3c.dom.xpath; \
+ org.xml.sax; \
+ org.xml.sax.ext; \
+ org.xml.sax.helpers; \
+ sun.misc; \
+ sun.reflect; \
+ version="1.6.0"
+

Propchange: servicemix/smx4/runtime/trunk/gshell/gshell-core/src/main/resources/org/apache/geronimo/gshell/spring/etc/config.properties
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: servicemix/smx4/runtime/trunk/gshell/gshell-core/src/main/resources/org/apache/geronimo/gshell/spring/etc/config.properties
------------------------------------------------------------------------------
    svn:keywords = Rev Date

Propchange: servicemix/smx4/runtime/trunk/gshell/gshell-core/src/main/resources/org/apache/geronimo/gshell/spring/etc/config.properties
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: servicemix/smx4/runtime/trunk/gshell/gshell-core/src/main/resources/org/apache/geronimo/gshell/spring/etc/login.conf
URL: http://svn.apache.org/viewvc/servicemix/smx4/runtime/trunk/gshell/gshell-core/src/main/resources/org/apache/geronimo/gshell/spring/etc/login.conf?rev=603079&view=auto
==============================================================================
--- servicemix/smx4/runtime/trunk/gshell/gshell-core/src/main/resources/org/apache/geronimo/gshell/spring/etc/login.conf (added)
+++ servicemix/smx4/runtime/trunk/gshell/gshell-core/src/main/resources/org/apache/geronimo/gshell/spring/etc/login.conf Mon Dec 10 14:36:41 2007
@@ -0,0 +1,31 @@
+/*
+ * 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: 580717 $ $Date: 2007-09-30 14:47:55 +0200 (Sun, 30 Sep 2007) $
+//
+
+RshClient {
+    org.apache.geronimo.gshell.remote.client.auth.RemoteLoginModule required;
+};
+
+BogusLogin {
+    org.apache.geronimo.gshell.remote.server.auth.BogusLoginModule required;
+};
+

Added: servicemix/smx4/runtime/trunk/gshell/gshell-core/src/main/resources/org/apache/geronimo/gshell/spring/etc/org.apache.servicemix.management.cfg
URL: http://svn.apache.org/viewvc/servicemix/smx4/runtime/trunk/gshell/gshell-core/src/main/resources/org/apache/geronimo/gshell/spring/etc/org.apache.servicemix.management.cfg?rev=603079&view=auto
==============================================================================
--- servicemix/smx4/runtime/trunk/gshell/gshell-core/src/main/resources/org/apache/geronimo/gshell/spring/etc/org.apache.servicemix.management.cfg (added)
+++ servicemix/smx4/runtime/trunk/gshell/gshell-core/src/main/resources/org/apache/geronimo/gshell/spring/etc/org.apache.servicemix.management.cfg Mon Dec 10 14:36:41 2007
@@ -0,0 +1,27 @@
+################################################################################
+#
+#    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.
+#
+################################################################################
+
+#
+rmiRegistryPort = 1099
+jmxLogin        = smx
+jmxPassword     = smx
+serviceUrl      = service:jmx:rmi:///jndi/rmi://localhost:1099/jmxrmi
+daemon          = true
+threaded        = true
+objectName      = connector:name=rmi

Added: servicemix/smx4/runtime/trunk/gshell/gshell-core/src/main/resources/org/apache/geronimo/gshell/spring/etc/org.apache.servicemix.shell.cfg
URL: http://svn.apache.org/viewvc/servicemix/smx4/runtime/trunk/gshell/gshell-core/src/main/resources/org/apache/geronimo/gshell/spring/etc/org.apache.servicemix.shell.cfg?rev=603079&view=auto
==============================================================================
--- servicemix/smx4/runtime/trunk/gshell/gshell-core/src/main/resources/org/apache/geronimo/gshell/spring/etc/org.apache.servicemix.shell.cfg (added)
+++ servicemix/smx4/runtime/trunk/gshell/gshell-core/src/main/resources/org/apache/geronimo/gshell/spring/etc/org.apache.servicemix.shell.cfg Mon Dec 10 14:36:41 2007
@@ -0,0 +1,23 @@
+################################################################################
+#
+#    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.
+#
+################################################################################
+
+#
+startLocalConsole=true
+startRemoteShell=true
+remoteShellLocation=tcp://0.0.0.0:8101/

Added: servicemix/smx4/runtime/trunk/gshell/gshell-core/src/main/resources/org/apache/geronimo/gshell/spring/etc/org.ops4j.pax.logging.cfg
URL: http://svn.apache.org/viewvc/servicemix/smx4/runtime/trunk/gshell/gshell-core/src/main/resources/org/apache/geronimo/gshell/spring/etc/org.ops4j.pax.logging.cfg?rev=603079&view=auto
==============================================================================
--- servicemix/smx4/runtime/trunk/gshell/gshell-core/src/main/resources/org/apache/geronimo/gshell/spring/etc/org.ops4j.pax.logging.cfg (added)
+++ servicemix/smx4/runtime/trunk/gshell/gshell-core/src/main/resources/org/apache/geronimo/gshell/spring/etc/org.ops4j.pax.logging.cfg Mon Dec 10 14:36:41 2007
@@ -0,0 +1,33 @@
+################################################################################
+#
+#    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.
+#
+################################################################################
+
+#
+log4j.rootLogger=INFO, out
+
+# CONSOLE appender not used by default
+log4j.appender.stdout=org.apache.log4j.ConsoleAppender
+log4j.appender.stdout.layout=org.apache.log4j.PatternLayout
+log4j.appender.stdout.layout.ConversionPattern=%d{ABSOLUTE} | %-5.5p | %-16.16t | %-32.32c{1} | %-32.32C %4L | %m%n
+
+# File appender
+log4j.appender.out=org.apache.log4j.FileAppender
+log4j.appender.out.layout=org.apache.log4j.PatternLayout
+log4j.appender.out.layout.ConversionPattern=%d{ABSOLUTE} | %-5.5p | %-16.16t | %-32.32c{1} | %-32.32C %4L | %m%n
+log4j.appender.out.file=${servicemix.base}/data/log/servicemix.log
+log4j.appender.out.append=true

Added: servicemix/smx4/runtime/trunk/gshell/gshell-core/src/main/resources/org/apache/geronimo/gshell/spring/etc/system.properties
URL: http://svn.apache.org/viewvc/servicemix/smx4/runtime/trunk/gshell/gshell-core/src/main/resources/org/apache/geronimo/gshell/spring/etc/system.properties?rev=603079&view=auto
==============================================================================
--- servicemix/smx4/runtime/trunk/gshell/gshell-core/src/main/resources/org/apache/geronimo/gshell/spring/etc/system.properties (added)
+++ servicemix/smx4/runtime/trunk/gshell/gshell-core/src/main/resources/org/apache/geronimo/gshell/spring/etc/system.properties Mon Dec 10 14:36:41 2007
@@ -0,0 +1,21 @@
+################################################################################
+#
+#    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.
+#
+################################################################################
+
+java.security.auth.login.config=${servicemix.base}/etc/login.conf
+

Propchange: servicemix/smx4/runtime/trunk/gshell/gshell-core/src/main/resources/org/apache/geronimo/gshell/spring/etc/system.properties
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: servicemix/smx4/runtime/trunk/gshell/gshell-core/src/main/resources/org/apache/geronimo/gshell/spring/etc/system.properties
------------------------------------------------------------------------------
    svn:keywords = Rev Date

Propchange: servicemix/smx4/runtime/trunk/gshell/gshell-core/src/main/resources/org/apache/geronimo/gshell/spring/etc/system.properties
------------------------------------------------------------------------------
    svn:mime-type = text/plain