felix-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From gno...@apache.org
Subject svn commit: r789948 - in /felix/trunk/gogo: ./ gogo-console/ gogo-console/src/ gogo-console/src/main/ gogo-console/src/main/java/ gogo-console/src/main/java/org/ gogo-console/src/main/java/org/apache/ gogo-console/src/main/java/org/apache/felix/ gogo-c...
Date Tue, 30 Jun 2009 20:52:07 GMT
Author: gnodet
Date: Tue Jun 30 20:52:04 2009
New Revision: 789948

URL: http://svn.apache.org/viewvc?rev=789948&view=rev
Log:
FELIX-1266: maven build for gogo

Added:
    felix/trunk/gogo/gogo-console/
    felix/trunk/gogo/gogo-console/pom.xml
      - copied, changed from r789939, felix/trunk/gogo/pom.xml
    felix/trunk/gogo/gogo-console/src/
    felix/trunk/gogo/gogo-console/src/main/
    felix/trunk/gogo/gogo-console/src/main/java/
    felix/trunk/gogo/gogo-console/src/main/java/org/
    felix/trunk/gogo/gogo-console/src/main/java/org/apache/
    felix/trunk/gogo/gogo-console/src/main/java/org/apache/felix/
    felix/trunk/gogo/gogo-console/src/main/java/org/apache/felix/gogo/
    felix/trunk/gogo/gogo-console/src/main/java/org/apache/felix/gogo/console/
    felix/trunk/gogo/gogo-console/src/main/java/org/apache/felix/gogo/console/Activator.java
    felix/trunk/gogo/gogo-console/src/main/java/org/apache/felix/gogo/console/stdio/
    felix/trunk/gogo/gogo-console/src/main/java/org/apache/felix/gogo/console/stdio/Console.java
      - copied, changed from r789939, felix/trunk/gogo/src/main/java/org/apache/felix/gogo/shell/console/Console.java
    felix/trunk/gogo/gogo-console/src/main/java/org/apache/felix/gogo/console/stdio/StdioConsole.java
      - copied, changed from r789939, felix/trunk/gogo/src/main/java/org/apache/felix/gogo/shell/stdio/StdioConsole.java
    felix/trunk/gogo/gogo-console/src/main/java/org/apache/felix/gogo/console/telnet/
    felix/trunk/gogo/gogo-console/src/main/java/org/apache/felix/gogo/console/telnet/Handler.java
      - copied, changed from r789939, felix/trunk/gogo/src/main/java/org/apache/felix/gogo/shell/telnet/Handler.java
    felix/trunk/gogo/gogo-console/src/main/java/org/apache/felix/gogo/console/telnet/TelnetShell.java
      - copied, changed from r789939, felix/trunk/gogo/src/main/java/org/apache/felix/gogo/shell/telnet/TelnetShell.java
    felix/trunk/gogo/gogo-launcher/
    felix/trunk/gogo/gogo-launcher/pom.xml
      - copied, changed from r789939, felix/trunk/gogo/pom.xml
    felix/trunk/gogo/gogo-launcher/src/
    felix/trunk/gogo/gogo-launcher/src/main/
    felix/trunk/gogo/gogo-launcher/src/main/java/
    felix/trunk/gogo/gogo-launcher/src/main/java/org/
    felix/trunk/gogo/gogo-launcher/src/main/java/org/apache/
    felix/trunk/gogo/gogo-launcher/src/main/java/org/apache/felix/
    felix/trunk/gogo/gogo-launcher/src/main/java/org/apache/felix/gogo/
    felix/trunk/gogo/gogo-launcher/src/main/java/org/apache/felix/gogo/launcher/
    felix/trunk/gogo/gogo-launcher/src/main/java/org/apache/felix/gogo/launcher/Launcher.java
      - copied, changed from r789939, felix/trunk/gogo/src/main/java/org/apache/felix/gogo/launcher/Launcher.java
    felix/trunk/gogo/gogo-runtime/
    felix/trunk/gogo/gogo-runtime/pom.xml
      - copied, changed from r789939, felix/trunk/gogo/pom.xml
    felix/trunk/gogo/gogo-runtime/src/
    felix/trunk/gogo/gogo-runtime/src/main/
    felix/trunk/gogo/gogo-runtime/src/main/java/
    felix/trunk/gogo/gogo-runtime/src/main/java/org/
    felix/trunk/gogo/gogo-runtime/src/main/java/org/apache/
    felix/trunk/gogo/gogo-runtime/src/main/java/org/apache/felix/
    felix/trunk/gogo/gogo-runtime/src/main/java/org/apache/felix/gogo/
    felix/trunk/gogo/gogo-runtime/src/main/java/org/apache/felix/gogo/runtime/
    felix/trunk/gogo/gogo-runtime/src/main/java/org/apache/felix/gogo/runtime/Activator.java
    felix/trunk/gogo/gogo-runtime/src/main/java/org/apache/felix/gogo/runtime/cpeg/
    felix/trunk/gogo/gogo-runtime/src/main/java/org/apache/felix/gogo/runtime/cpeg/Procedural.java
      - copied, changed from r789939, felix/trunk/gogo/src/main/java/org/apache/felix/gogo/cpeg/Procedural.java
    felix/trunk/gogo/gogo-runtime/src/main/java/org/apache/felix/gogo/runtime/equinox/
    felix/trunk/gogo/gogo-runtime/src/main/java/org/apache/felix/gogo/runtime/equinox/Equinox.java
      - copied, changed from r789939, felix/trunk/gogo/src/main/java/org/apache/felix/gogo/shell/equinox/Equinox.java
    felix/trunk/gogo/gogo-runtime/src/main/java/org/apache/felix/gogo/runtime/lang/
    felix/trunk/gogo/gogo-runtime/src/main/java/org/apache/felix/gogo/runtime/lang/Support.java
      - copied, changed from r789939, felix/trunk/gogo/src/main/java/org/apache/felix/gogo/shell/lang/Support.java
    felix/trunk/gogo/gogo-runtime/src/main/java/org/apache/felix/gogo/runtime/osgi/
    felix/trunk/gogo/gogo-runtime/src/main/java/org/apache/felix/gogo/runtime/osgi/OSGiCommands.java
      - copied, changed from r789939, felix/trunk/gogo/src/main/java/org/apache/felix/gogo/shell/osgi/OSGiCommands.java
    felix/trunk/gogo/gogo-runtime/src/main/java/org/apache/felix/gogo/runtime/osgi/OSGiShell.java
      - copied, changed from r789939, felix/trunk/gogo/src/main/java/org/apache/felix/gogo/shell/osgi/OSGiShell.java
    felix/trunk/gogo/gogo-runtime/src/main/java/org/apache/felix/gogo/runtime/osgi/ServiceCommand.java
      - copied, changed from r789939, felix/trunk/gogo/src/main/java/org/apache/felix/gogo/shell/osgi/ServiceCommand.java
    felix/trunk/gogo/gogo-runtime/src/main/java/org/apache/felix/gogo/runtime/shell/
    felix/trunk/gogo/gogo-runtime/src/main/java/org/apache/felix/gogo/runtime/shell/Closure.java
      - copied, changed from r789939, felix/trunk/gogo/src/main/java/org/apache/felix/gogo/shell/runtime/Closure.java
    felix/trunk/gogo/gogo-runtime/src/main/java/org/apache/felix/gogo/runtime/shell/Command.java
      - copied, changed from r789939, felix/trunk/gogo/src/main/java/org/apache/felix/gogo/shell/runtime/Command.java
    felix/trunk/gogo/gogo-runtime/src/main/java/org/apache/felix/gogo/runtime/shell/CommandSessionImpl.java
      - copied, changed from r789939, felix/trunk/gogo/src/main/java/org/apache/felix/gogo/shell/runtime/CommandSessionImpl.java
    felix/trunk/gogo/gogo-runtime/src/main/java/org/apache/felix/gogo/runtime/shell/CommandShellImpl.java
      - copied, changed from r789939, felix/trunk/gogo/src/main/java/org/apache/felix/gogo/shell/runtime/CommandShellImpl.java
    felix/trunk/gogo/gogo-runtime/src/main/java/org/apache/felix/gogo/runtime/shell/Context.java
      - copied, changed from r789939, felix/trunk/gogo/src/test/java/org/apache/felix/gogo/shell/runtime/Context.java
    felix/trunk/gogo/gogo-runtime/src/main/java/org/apache/felix/gogo/runtime/shell/Parser.java
      - copied, changed from r789939, felix/trunk/gogo/src/main/java/org/apache/felix/gogo/shell/runtime/Parser.java
    felix/trunk/gogo/gogo-runtime/src/main/java/org/apache/felix/gogo/runtime/shell/Pipe.java
      - copied, changed from r789939, felix/trunk/gogo/src/main/java/org/apache/felix/gogo/shell/runtime/Pipe.java
    felix/trunk/gogo/gogo-runtime/src/main/java/org/apache/felix/gogo/runtime/shell/Reflective.java
      - copied, changed from r789939, felix/trunk/gogo/src/main/java/org/apache/felix/gogo/shell/runtime/Reflective.java
    felix/trunk/gogo/gogo-runtime/src/main/java/org/apache/felix/gogo/runtime/threadio/
    felix/trunk/gogo/gogo-runtime/src/main/java/org/apache/felix/gogo/runtime/threadio/Marker.java
      - copied, changed from r789939, felix/trunk/gogo/src/main/java/org/apache/felix/gogo/threadio/Marker.java
    felix/trunk/gogo/gogo-runtime/src/main/java/org/apache/felix/gogo/runtime/threadio/ThreadIOImpl.java
      - copied, changed from r789939, felix/trunk/gogo/src/main/java/org/apache/felix/gogo/threadio/ThreadIOImpl.java
    felix/trunk/gogo/gogo-runtime/src/main/java/org/apache/felix/gogo/runtime/threadio/ThreadInputStream.java
      - copied, changed from r789939, felix/trunk/gogo/src/main/java/org/apache/felix/gogo/threadio/ThreadInputStream.java
    felix/trunk/gogo/gogo-runtime/src/main/java/org/apache/felix/gogo/runtime/threadio/ThreadPrintStream.java
      - copied, changed from r789939, felix/trunk/gogo/src/main/java/org/apache/felix/gogo/threadio/ThreadPrintStream.java
    felix/trunk/gogo/gogo-runtime/src/main/java/org/osgi/
    felix/trunk/gogo/gogo-runtime/src/main/java/org/osgi/service/
    felix/trunk/gogo/gogo-runtime/src/main/java/org/osgi/service/command/
    felix/trunk/gogo/gogo-runtime/src/main/java/org/osgi/service/command/CommandProcessor.java
      - copied, changed from r789939, felix/trunk/gogo/src/main/java/org/osgi/service/command/CommandProcessor.java
    felix/trunk/gogo/gogo-runtime/src/main/java/org/osgi/service/command/CommandSession.java
      - copied, changed from r789939, felix/trunk/gogo/src/main/java/org/osgi/service/command/CommandSession.java
    felix/trunk/gogo/gogo-runtime/src/main/java/org/osgi/service/command/Converter.java
      - copied, changed from r789939, felix/trunk/gogo/src/main/java/org/osgi/service/command/Converter.java
    felix/trunk/gogo/gogo-runtime/src/main/java/org/osgi/service/command/Function.java
      - copied, changed from r789939, felix/trunk/gogo/src/main/java/org/osgi/service/command/Function.java
    felix/trunk/gogo/gogo-runtime/src/main/java/org/osgi/service/threadio/
    felix/trunk/gogo/gogo-runtime/src/main/java/org/osgi/service/threadio/ThreadIO.java
      - copied, changed from r789939, felix/trunk/gogo/src/main/java/org/osgi/service/threadio/ThreadIO.java
    felix/trunk/gogo/gogo-runtime/src/test/
    felix/trunk/gogo/gogo-runtime/src/test/java/
    felix/trunk/gogo/gogo-runtime/src/test/java/org/
    felix/trunk/gogo/gogo-runtime/src/test/java/org/apache/
    felix/trunk/gogo/gogo-runtime/src/test/java/org/apache/felix/
    felix/trunk/gogo/gogo-runtime/src/test/java/org/apache/felix/gogo/
    felix/trunk/gogo/gogo-runtime/src/test/java/org/apache/felix/gogo/runtime/
    felix/trunk/gogo/gogo-runtime/src/test/java/org/apache/felix/gogo/runtime/shell/
    felix/trunk/gogo/gogo-runtime/src/test/java/org/apache/felix/gogo/runtime/shell/TestParser.java
      - copied, changed from r789939, felix/trunk/gogo/src/test/java/org/apache/felix/gogo/shell/runtime/TestParser.java
    felix/trunk/gogo/gogo-runtime/src/test/java/org/apache/felix/gogo/runtime/threadio/
    felix/trunk/gogo/gogo-runtime/src/test/java/org/apache/felix/gogo/runtime/threadio/TestThreadIO.java
      - copied, changed from r789939, felix/trunk/gogo/src/test/java/org/apache/felix/gogo/threadio/TestThreadIO.java
Removed:
    felix/trunk/gogo/aQute.osgi.launcher.bnd
    felix/trunk/gogo/aQute.shell.equinox.bnd
    felix/trunk/gogo/aQute.shell.runtime.bnd
    felix/trunk/gogo/aQute.shell.stdio.bnd
    felix/trunk/gogo/aQute.shell.support.bnd
    felix/trunk/gogo/aQute.shell.telnet.bnd
    felix/trunk/gogo/aQute.threadio.bnd
    felix/trunk/gogo/default.bnd
    felix/trunk/gogo/proc.bnd
    felix/trunk/gogo/src/main/java/org/apache/felix/gogo/cpeg/Procedural.java
    felix/trunk/gogo/src/main/java/org/apache/felix/gogo/launcher/Launcher.java
    felix/trunk/gogo/src/main/java/org/apache/felix/gogo/shell/console/Console.java
    felix/trunk/gogo/src/main/java/org/apache/felix/gogo/shell/equinox/Equinox.java
    felix/trunk/gogo/src/main/java/org/apache/felix/gogo/shell/lang/Support.java
    felix/trunk/gogo/src/main/java/org/apache/felix/gogo/shell/osgi/OSGiCommands.java
    felix/trunk/gogo/src/main/java/org/apache/felix/gogo/shell/osgi/OSGiShell.java
    felix/trunk/gogo/src/main/java/org/apache/felix/gogo/shell/osgi/ServiceCommand.java
    felix/trunk/gogo/src/main/java/org/apache/felix/gogo/shell/runtime/Closure.java
    felix/trunk/gogo/src/main/java/org/apache/felix/gogo/shell/runtime/Command.java
    felix/trunk/gogo/src/main/java/org/apache/felix/gogo/shell/runtime/CommandSessionImpl.java
    felix/trunk/gogo/src/main/java/org/apache/felix/gogo/shell/runtime/CommandShellImpl.java
    felix/trunk/gogo/src/main/java/org/apache/felix/gogo/shell/runtime/Parser.java
    felix/trunk/gogo/src/main/java/org/apache/felix/gogo/shell/runtime/Pipe.java
    felix/trunk/gogo/src/main/java/org/apache/felix/gogo/shell/runtime/Reflective.java
    felix/trunk/gogo/src/main/java/org/apache/felix/gogo/shell/stdio/StdioConsole.java
    felix/trunk/gogo/src/main/java/org/apache/felix/gogo/shell/telnet/Handler.java
    felix/trunk/gogo/src/main/java/org/apache/felix/gogo/shell/telnet/TelnetShell.java
    felix/trunk/gogo/src/main/java/org/apache/felix/gogo/threadio/Marker.java
    felix/trunk/gogo/src/main/java/org/apache/felix/gogo/threadio/ThreadIOImpl.java
    felix/trunk/gogo/src/main/java/org/apache/felix/gogo/threadio/ThreadInputStream.java
    felix/trunk/gogo/src/main/java/org/apache/felix/gogo/threadio/ThreadPrintStream.java
    felix/trunk/gogo/src/main/java/org/osgi/service/command/CommandProcessor.java
    felix/trunk/gogo/src/main/java/org/osgi/service/command/CommandSession.java
    felix/trunk/gogo/src/main/java/org/osgi/service/command/Converter.java
    felix/trunk/gogo/src/main/java/org/osgi/service/command/Function.java
    felix/trunk/gogo/src/main/java/org/osgi/service/threadio/ThreadIO.java
    felix/trunk/gogo/src/test/java/org/apache/felix/gogo/shell/runtime/Context.java
    felix/trunk/gogo/src/test/java/org/apache/felix/gogo/shell/runtime/TestParser.java
    felix/trunk/gogo/src/test/java/org/apache/felix/gogo/threadio/TestThreadIO.java
Modified:
    felix/trunk/gogo/pom.xml

Copied: felix/trunk/gogo/gogo-console/pom.xml (from r789939, felix/trunk/gogo/pom.xml)
URL: http://svn.apache.org/viewvc/felix/trunk/gogo/gogo-console/pom.xml?p2=felix/trunk/gogo/gogo-console/pom.xml&p1=felix/trunk/gogo/pom.xml&r1=789939&r2=789948&rev=789948&view=diff
==============================================================================
--- felix/trunk/gogo/pom.xml (original)
+++ felix/trunk/gogo/gogo-console/pom.xml Tue Jun 30 20:52:04 2009
@@ -19,34 +19,29 @@
 <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">
     <parent>
-        <groupId>org.apache.felix</groupId>
-        <artifactId>felix-parent</artifactId>
-        <version>1.2.0</version>
-        <relativePath>../pom/pom.xml</relativePath>
+        <groupId>org.apache.felix.gogo</groupId>
+        <artifactId>gogo</artifactId>
+        <version>1.0.0-SNAPSHOT</version>
     </parent>
     <modelVersion>4.0.0</modelVersion>
     <packaging>bundle</packaging>
-    <name>Apache Felix Gogo Shell</name>
-    <artifactId>org.apache.felix.gogo</artifactId>
+    <name>Apache Felix Gogo Shell Console</name>
+    <artifactId>org.apache.felix.gogo.console</artifactId>
     <version>1.0.0-SNAPSHOT</version>
     <dependencies>
         <dependency>
-            <groupId>${pom.groupId}</groupId>
+            <groupId>org.apache.felix</groupId>
             <artifactId>org.osgi.core</artifactId>
-            <version>1.2.0</version>
             <scope>provided</scope>
         </dependency>
         <dependency>
-            <groupId>${pom.groupId}</groupId>
+            <groupId>org.apache.felix</groupId>
             <artifactId>org.osgi.compendium</artifactId>
-            <version>1.2.0</version>
             <scope>provided</scope>
         </dependency>
         <dependency>
-            <groupId>junit</groupId>
-            <artifactId>junit</artifactId>
-            <version>4.5</version>
-            <scope>test</scope>
+            <groupId>org.apache.felix.gogo</groupId>
+            <artifactId>org.apache.felix.gogo.runtime</artifactId>
         </dependency>
     </dependencies>
     <build>
@@ -58,10 +53,19 @@
                 <extensions>true</extensions>
                 <configuration>
                     <instructions>
-                        <Export-Package>org.osgi.service.command; version=1.0.0</Export-Package>
+                        <Export-Package>
+                        </Export-Package>
+                        <Import-Package>
+                            org.osgi.service.component*; resolution:=optional,
+                            org.osgi.service.log*; resolution:=optional,
+                            org.osgi.service.packageadmin*; resolution:=optional,
+                            org.osgi.service.startlevel*; resolution:=optional,
+                            *
+                        </Import-Package>
                         <Private-Package>org.apache.felix.gogo.*</Private-Package>
                         <Bundle-SymbolicName>${pom.artifactId}</Bundle-SymbolicName>
                         <Bundle-Vendor>The Apache Software Foundation</Bundle-Vendor>
+                        <Bundle-Activator>org.apache.felix.gogo.console.Activator</Bundle-Activator>
                     </instructions>
                 </configuration>
             </plugin>

Added: felix/trunk/gogo/gogo-console/src/main/java/org/apache/felix/gogo/console/Activator.java
URL: http://svn.apache.org/viewvc/felix/trunk/gogo/gogo-console/src/main/java/org/apache/felix/gogo/console/Activator.java?rev=789948&view=auto
==============================================================================
--- felix/trunk/gogo/gogo-console/src/main/java/org/apache/felix/gogo/console/Activator.java (added)
+++ felix/trunk/gogo/gogo-console/src/main/java/org/apache/felix/gogo/console/Activator.java Tue Jun 30 20:52:04 2009
@@ -0,0 +1,72 @@
+/*
+ * 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.felix.gogo.console;
+
+import org.apache.felix.gogo.console.stdio.StdioConsole;
+import org.osgi.framework.BundleActivator;
+import org.osgi.framework.BundleContext;
+import org.osgi.framework.ServiceReference;
+import org.osgi.service.command.CommandProcessor;
+import org.osgi.util.tracker.ServiceTracker;
+
+public class Activator implements BundleActivator
+{
+
+    private ServiceTracker commandProcessorTracker;
+    private StdioConsole console;
+
+    public void start(final BundleContext context) throws Exception
+    {
+        commandProcessorTracker = new ServiceTracker(context, CommandProcessor.class.getName(), null) {
+            @Override
+            public Object addingService(ServiceReference reference)
+            {
+                CommandProcessor processor = (CommandProcessor) super.addingService(reference);
+                startConsole(processor);
+                return processor;
+            }
+
+            @Override
+            public void removedService(ServiceReference reference, Object service)
+            {
+                if (console != null) {
+                    console.close();
+                    console = null;
+                }
+                super.removedService(reference, service);
+            }
+        };
+        commandProcessorTracker.open();
+    }
+
+    protected void startConsole(final CommandProcessor processor) {
+        console = new StdioConsole();
+        console.setProcessor(processor);
+        console.start();
+    }
+
+    public void stop(BundleContext context) throws Exception
+    {
+        if (console != null) {
+            console.close();
+        }
+        commandProcessorTracker.close();
+    }
+
+}

Copied: felix/trunk/gogo/gogo-console/src/main/java/org/apache/felix/gogo/console/stdio/Console.java (from r789939, felix/trunk/gogo/src/main/java/org/apache/felix/gogo/shell/console/Console.java)
URL: http://svn.apache.org/viewvc/felix/trunk/gogo/gogo-console/src/main/java/org/apache/felix/gogo/console/stdio/Console.java?p2=felix/trunk/gogo/gogo-console/src/main/java/org/apache/felix/gogo/console/stdio/Console.java&p1=felix/trunk/gogo/src/main/java/org/apache/felix/gogo/shell/console/Console.java&r1=789939&r2=789948&rev=789948&view=diff
==============================================================================
--- felix/trunk/gogo/src/main/java/org/apache/felix/gogo/shell/console/Console.java (original)
+++ felix/trunk/gogo/gogo-console/src/main/java/org/apache/felix/gogo/console/stdio/Console.java Tue Jun 30 20:52:04 2009
@@ -17,7 +17,7 @@
  * under the License.
  */
 
-package org.apache.felix.gogo.shell.console;
+package org.apache.felix.gogo.console.stdio;
 
 import org.osgi.service.command.CommandSession;
 import org.osgi.service.command.Converter;

Copied: felix/trunk/gogo/gogo-console/src/main/java/org/apache/felix/gogo/console/stdio/StdioConsole.java (from r789939, felix/trunk/gogo/src/main/java/org/apache/felix/gogo/shell/stdio/StdioConsole.java)
URL: http://svn.apache.org/viewvc/felix/trunk/gogo/gogo-console/src/main/java/org/apache/felix/gogo/console/stdio/StdioConsole.java?p2=felix/trunk/gogo/gogo-console/src/main/java/org/apache/felix/gogo/console/stdio/StdioConsole.java&p1=felix/trunk/gogo/src/main/java/org/apache/felix/gogo/shell/stdio/StdioConsole.java&r1=789939&r2=789948&rev=789948&view=diff
==============================================================================
--- felix/trunk/gogo/src/main/java/org/apache/felix/gogo/shell/stdio/StdioConsole.java (original)
+++ felix/trunk/gogo/gogo-console/src/main/java/org/apache/felix/gogo/console/stdio/StdioConsole.java Tue Jun 30 20:52:04 2009
@@ -16,9 +16,8 @@
  * specific language governing permissions and limitations
  * under the License.
  */
-package org.apache.felix.gogo.shell.stdio;
+package org.apache.felix.gogo.console.stdio;
 
-import org.apache.felix.gogo.shell.console.Console;
 import org.osgi.service.command.CommandProcessor;
 import org.osgi.service.component.ComponentContext;
 
@@ -31,12 +30,7 @@
         super("StdioConsole");
     }
 
-    protected void activate(ComponentContext context)
-    {
-        start();
-    }
-
-    protected void deactivate(ComponentContext context)
+    public void close()
     {
         console.close();
         interrupt();
@@ -51,5 +45,4 @@
     {
         console.run();
     }
-}
-
+}
\ No newline at end of file

Copied: felix/trunk/gogo/gogo-console/src/main/java/org/apache/felix/gogo/console/telnet/Handler.java (from r789939, felix/trunk/gogo/src/main/java/org/apache/felix/gogo/shell/telnet/Handler.java)
URL: http://svn.apache.org/viewvc/felix/trunk/gogo/gogo-console/src/main/java/org/apache/felix/gogo/console/telnet/Handler.java?p2=felix/trunk/gogo/gogo-console/src/main/java/org/apache/felix/gogo/console/telnet/Handler.java&p1=felix/trunk/gogo/src/main/java/org/apache/felix/gogo/shell/telnet/Handler.java&r1=789939&r2=789948&rev=789948&view=diff
==============================================================================
--- felix/trunk/gogo/src/main/java/org/apache/felix/gogo/shell/telnet/Handler.java (original)
+++ felix/trunk/gogo/gogo-console/src/main/java/org/apache/felix/gogo/console/telnet/Handler.java Tue Jun 30 20:52:04 2009
@@ -16,9 +16,9 @@
  * specific language governing permissions and limitations
  * under the License.
  */
-package org.apache.felix.gogo.shell.telnet;
+package org.apache.felix.gogo.console.telnet;
 
-import org.apache.felix.gogo.shell.console.Console;
+import org.apache.felix.gogo.console.stdio.Console;
 import org.osgi.service.command.CommandSession;
 
 import java.io.IOException;

Copied: felix/trunk/gogo/gogo-console/src/main/java/org/apache/felix/gogo/console/telnet/TelnetShell.java (from r789939, felix/trunk/gogo/src/main/java/org/apache/felix/gogo/shell/telnet/TelnetShell.java)
URL: http://svn.apache.org/viewvc/felix/trunk/gogo/gogo-console/src/main/java/org/apache/felix/gogo/console/telnet/TelnetShell.java?p2=felix/trunk/gogo/gogo-console/src/main/java/org/apache/felix/gogo/console/telnet/TelnetShell.java&p1=felix/trunk/gogo/src/main/java/org/apache/felix/gogo/shell/telnet/TelnetShell.java&r1=789939&r2=789948&rev=789948&view=diff
==============================================================================
--- felix/trunk/gogo/src/main/java/org/apache/felix/gogo/shell/telnet/TelnetShell.java (original)
+++ felix/trunk/gogo/gogo-console/src/main/java/org/apache/felix/gogo/console/telnet/TelnetShell.java Tue Jun 30 20:52:04 2009
@@ -16,7 +16,7 @@
  * specific language governing permissions and limitations
  * under the License.
  */
-package org.apache.felix.gogo.shell.telnet;
+package org.apache.felix.gogo.console.telnet;
 
 import org.osgi.service.command.CommandProcessor;
 import org.osgi.service.command.CommandSession;

Copied: felix/trunk/gogo/gogo-launcher/pom.xml (from r789939, felix/trunk/gogo/pom.xml)
URL: http://svn.apache.org/viewvc/felix/trunk/gogo/gogo-launcher/pom.xml?p2=felix/trunk/gogo/gogo-launcher/pom.xml&p1=felix/trunk/gogo/pom.xml&r1=789939&r2=789948&rev=789948&view=diff
==============================================================================
--- felix/trunk/gogo/pom.xml (original)
+++ felix/trunk/gogo/gogo-launcher/pom.xml Tue Jun 30 20:52:04 2009
@@ -19,33 +19,28 @@
 <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">
     <parent>
-        <groupId>org.apache.felix</groupId>
-        <artifactId>felix-parent</artifactId>
-        <version>1.2.0</version>
-        <relativePath>../pom/pom.xml</relativePath>
+        <groupId>org.apache.felix.gogo</groupId>
+        <artifactId>gogo</artifactId>
+        <version>1.0.0-SNAPSHOT</version>
     </parent>
     <modelVersion>4.0.0</modelVersion>
     <packaging>bundle</packaging>
-    <name>Apache Felix Gogo Shell</name>
-    <artifactId>org.apache.felix.gogo</artifactId>
+    <name>Apache Felix Gogo Shell Launcher</name>
+    <artifactId>org.apache.felix.gogo.launcher</artifactId>
     <version>1.0.0-SNAPSHOT</version>
     <dependencies>
         <dependency>
-            <groupId>${pom.groupId}</groupId>
+            <groupId>org.apache.felix</groupId>
             <artifactId>org.osgi.core</artifactId>
-            <version>1.2.0</version>
             <scope>provided</scope>
         </dependency>
         <dependency>
-            <groupId>${pom.groupId}</groupId>
-            <artifactId>org.osgi.compendium</artifactId>
-            <version>1.2.0</version>
-            <scope>provided</scope>
+            <groupId>org.apache.felix.gogo</groupId>
+            <artifactId>org.apache.felix.gogo.console</artifactId>
         </dependency>
         <dependency>
             <groupId>junit</groupId>
             <artifactId>junit</artifactId>
-            <version>4.5</version>
             <scope>test</scope>
         </dependency>
     </dependencies>
@@ -58,10 +53,22 @@
                 <extensions>true</extensions>
                 <configuration>
                     <instructions>
-                        <Export-Package>org.osgi.service.command; version=1.0.0</Export-Package>
+                        <Export-Package>
+                            org.osgi.service.command; version=1.0.0,
+                            org.osgi.service.threadio; version=1.0.0,
+                            org.apache.felix.gogo.commands; version=${project.version}
+                        </Export-Package>
+                        <Import-Package>
+                            org.osgi.service.component*; resolution:=optional,
+                            org.osgi.service.log*; resolution:=optional,
+                            org.osgi.service.packageadmin*; resolution:=optional,
+                            org.osgi.service.startlevel*; resolution:=optional,
+                            *
+                        </Import-Package>
                         <Private-Package>org.apache.felix.gogo.*</Private-Package>
                         <Bundle-SymbolicName>${pom.artifactId}</Bundle-SymbolicName>
                         <Bundle-Vendor>The Apache Software Foundation</Bundle-Vendor>
+                        <Bundle-Activator>org.apache.felix.gogo.runtime.Activator</Bundle-Activator>
                     </instructions>
                 </configuration>
             </plugin>

Copied: felix/trunk/gogo/gogo-launcher/src/main/java/org/apache/felix/gogo/launcher/Launcher.java (from r789939, felix/trunk/gogo/src/main/java/org/apache/felix/gogo/launcher/Launcher.java)
URL: http://svn.apache.org/viewvc/felix/trunk/gogo/gogo-launcher/src/main/java/org/apache/felix/gogo/launcher/Launcher.java?p2=felix/trunk/gogo/gogo-launcher/src/main/java/org/apache/felix/gogo/launcher/Launcher.java&p1=felix/trunk/gogo/src/main/java/org/apache/felix/gogo/launcher/Launcher.java&r1=789939&r2=789948&rev=789948&view=diff
==============================================================================
--- felix/trunk/gogo/src/main/java/org/apache/felix/gogo/launcher/Launcher.java (original)
+++ felix/trunk/gogo/gogo-launcher/src/main/java/org/apache/felix/gogo/launcher/Launcher.java Tue Jun 30 20:52:04 2009
@@ -18,9 +18,9 @@
  */
 package org.apache.felix.gogo.launcher;
 
-import org.apache.felix.gogo.shell.console.Console;
-import org.apache.felix.gogo.shell.osgi.OSGiShell;
-import org.apache.felix.gogo.threadio.ThreadIOImpl;
+import org.apache.felix.gogo.runtime.osgi.OSGiShell;
+import org.apache.felix.gogo.runtime.threadio.ThreadIOImpl;
+import org.apache.felix.gogo.console.stdio.Console;
 import org.osgi.framework.Bundle;
 import org.osgi.service.command.CommandProcessor;
 import org.osgi.service.command.CommandSession;

Copied: felix/trunk/gogo/gogo-runtime/pom.xml (from r789939, felix/trunk/gogo/pom.xml)
URL: http://svn.apache.org/viewvc/felix/trunk/gogo/gogo-runtime/pom.xml?p2=felix/trunk/gogo/gogo-runtime/pom.xml&p1=felix/trunk/gogo/pom.xml&r1=789939&r2=789948&rev=789948&view=diff
==============================================================================
--- felix/trunk/gogo/pom.xml (original)
+++ felix/trunk/gogo/gogo-runtime/pom.xml Tue Jun 30 20:52:04 2009
@@ -19,33 +19,29 @@
 <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">
     <parent>
-        <groupId>org.apache.felix</groupId>
-        <artifactId>felix-parent</artifactId>
-        <version>1.2.0</version>
-        <relativePath>../pom/pom.xml</relativePath>
+        <groupId>org.apache.felix.gogo</groupId>
+        <artifactId>gogo</artifactId>
+        <version>1.0.0-SNAPSHOT</version>
     </parent>
     <modelVersion>4.0.0</modelVersion>
     <packaging>bundle</packaging>
-    <name>Apache Felix Gogo Shell</name>
-    <artifactId>org.apache.felix.gogo</artifactId>
+    <name>Apache Felix Gogo Shell Runtime</name>
+    <artifactId>org.apache.felix.gogo.runtime</artifactId>
     <version>1.0.0-SNAPSHOT</version>
     <dependencies>
         <dependency>
-            <groupId>${pom.groupId}</groupId>
+            <groupId>org.apache.felix</groupId>
             <artifactId>org.osgi.core</artifactId>
-            <version>1.2.0</version>
             <scope>provided</scope>
         </dependency>
         <dependency>
-            <groupId>${pom.groupId}</groupId>
+            <groupId>org.apache.felix</groupId>
             <artifactId>org.osgi.compendium</artifactId>
-            <version>1.2.0</version>
             <scope>provided</scope>
         </dependency>
         <dependency>
             <groupId>junit</groupId>
             <artifactId>junit</artifactId>
-            <version>4.5</version>
             <scope>test</scope>
         </dependency>
     </dependencies>
@@ -58,35 +54,24 @@
                 <extensions>true</extensions>
                 <configuration>
                     <instructions>
-                        <Export-Package>org.osgi.service.command; version=1.0.0</Export-Package>
+                        <Export-Package>
+                            org.osgi.service.command; version=1.0.0,
+                            org.osgi.service.threadio; version=1.0.0
+                        </Export-Package>
+                        <Import-Package>
+                            org.osgi.service.component*; resolution:=optional,
+                            org.osgi.service.log*; resolution:=optional,
+                            org.osgi.service.packageadmin*; resolution:=optional,
+                            org.osgi.service.startlevel*; resolution:=optional,
+                            *
+                        </Import-Package>
                         <Private-Package>org.apache.felix.gogo.*</Private-Package>
                         <Bundle-SymbolicName>${pom.artifactId}</Bundle-SymbolicName>
                         <Bundle-Vendor>The Apache Software Foundation</Bundle-Vendor>
+                        <Bundle-Activator>org.apache.felix.gogo.runtime.Activator</Bundle-Activator>
                     </instructions>
                 </configuration>
             </plugin>
-            <plugin>
-                <groupId>org.codehaus.mojo</groupId>
-                <artifactId>rat-maven-plugin</artifactId>
-                <configuration>
-                    <excludeSubProjects>false</excludeSubProjects>
-                    <useEclipseDefaultExcludes>true</useEclipseDefaultExcludes>
-                    <useMavenDefaultExcludes>true</useMavenDefaultExcludes>
-                    <excludes>
-                        <param>doc/*</param>
-                        <param>maven-eclipse.xml</param>
-                        <param>.checkstyle</param>
-                        <param>.externalToolBuilders/*</param>
-                    </excludes>
-                </configuration>
-            </plugin>
-            <plugin>
-                <artifactId>maven-compiler-plugin</artifactId>
-                <configuration>
-                    <source>1.5</source>
-                    <target>1.5</target>
-                </configuration>
-            </plugin>
         </plugins>
     </build>
 </project>

Added: felix/trunk/gogo/gogo-runtime/src/main/java/org/apache/felix/gogo/runtime/Activator.java
URL: http://svn.apache.org/viewvc/felix/trunk/gogo/gogo-runtime/src/main/java/org/apache/felix/gogo/runtime/Activator.java?rev=789948&view=auto
==============================================================================
--- felix/trunk/gogo/gogo-runtime/src/main/java/org/apache/felix/gogo/runtime/Activator.java (added)
+++ felix/trunk/gogo/gogo-runtime/src/main/java/org/apache/felix/gogo/runtime/Activator.java Tue Jun 30 20:52:04 2009
@@ -0,0 +1,127 @@
+/*
+ * 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.felix.gogo.runtime;
+
+import org.apache.felix.gogo.runtime.lang.Support;
+import org.apache.felix.gogo.runtime.osgi.OSGiShell;
+import org.apache.felix.gogo.runtime.threadio.ThreadIOImpl;
+import org.osgi.framework.BundleActivator;
+import org.osgi.framework.BundleContext;
+import org.osgi.framework.ServiceReference;
+import org.osgi.framework.ServiceRegistration;
+import org.osgi.service.command.CommandProcessor;
+import org.osgi.service.command.Converter;
+import org.osgi.service.threadio.ThreadIO;
+import org.osgi.util.tracker.ServiceTracker;
+
+import java.util.Hashtable;
+
+public class Activator implements BundleActivator
+{
+
+    private OSGiShell shell;
+    private ThreadIOImpl threadio;
+    private ServiceRegistration shellRegistration;
+    private ServiceRegistration threadioRegistration;
+    private ServiceTracker converterTracker;
+    private ServiceTracker commandTracker;
+
+    public void start(final BundleContext context) throws Exception
+    {
+        Hashtable props = new Hashtable();
+        props.put("osgi.command.scope", "log");
+        props.put("osgi.command.function", "display");
+
+        threadio = new ThreadIOImpl();
+        threadio.start();
+        shell = new OSGiShell();
+        shell.setBundle(context.getBundle());
+        shell.setThreadio(threadio);
+        shell.setConverter(new Support());
+        shell.start();
+        converterTracker = new ServiceTracker(context, Converter.class.getName(), null) {
+            @Override
+            public Object addingService(ServiceReference reference)
+            {
+                Converter converter = (Converter) super.addingService(reference);
+                shell.setConverter(converter);
+                return converter;
+            }
+
+            @Override
+            public void removedService(ServiceReference reference, Object service)
+            {
+                shell.unsetConverter((Converter) service);
+                super.removedService(reference, service);
+            }
+        };
+        converterTracker.open();
+        commandTracker = new ServiceTracker(context, context.createFilter("(&(osgi.command.scope=*)(osgi.command.function=*))"), null) {
+            @Override
+            public Object addingService(ServiceReference reference)
+            {
+                Object scope = reference.getProperty("osgi.command.scope");
+                Object function = reference.getProperty("osgi.command.function");
+                if(scope != null && function != null)
+                {
+                    Object target = context.getService(reference);
+                    if (function.getClass().isArray())
+                    {
+                        for (Object f : ((Object[]) function))
+                        {
+                            shell.addCommand(scope.toString(), target, f.toString());
+                        }
+                    }
+                    else
+                    {
+                        shell.addCommand(scope.toString(), target, function.toString());
+                    }
+                    return target;
+                }
+                return null;
+            }
+
+            @Override
+            public void removedService(ServiceReference reference, Object service)
+            {
+                super.removedService(reference, service);
+            }
+        };
+        commandTracker.open();
+        threadioRegistration = context.registerService(ThreadIO.class.getName(), threadio, new Hashtable());
+        shellRegistration = context.registerService(CommandProcessor.class.getName(), shell, new Hashtable());
+    }
+
+    private String getProperty(BundleContext context, String name, String def) {
+        String v = context.getProperty(name);
+        if (v == null) {
+            v = def;
+        }
+        return v;
+    }
+
+    public void stop(BundleContext context) throws Exception
+    {
+        shellRegistration.unregister();
+        threadioRegistration.unregister();
+        threadio.stop();
+        converterTracker.close();
+        commandTracker.close();
+    }
+}

Copied: felix/trunk/gogo/gogo-runtime/src/main/java/org/apache/felix/gogo/runtime/cpeg/Procedural.java (from r789939, felix/trunk/gogo/src/main/java/org/apache/felix/gogo/cpeg/Procedural.java)
URL: http://svn.apache.org/viewvc/felix/trunk/gogo/gogo-runtime/src/main/java/org/apache/felix/gogo/runtime/cpeg/Procedural.java?p2=felix/trunk/gogo/gogo-runtime/src/main/java/org/apache/felix/gogo/runtime/cpeg/Procedural.java&p1=felix/trunk/gogo/src/main/java/org/apache/felix/gogo/cpeg/Procedural.java&r1=789939&r2=789948&rev=789948&view=diff
==============================================================================
--- felix/trunk/gogo/src/main/java/org/apache/felix/gogo/cpeg/Procedural.java (original)
+++ felix/trunk/gogo/gogo-runtime/src/main/java/org/apache/felix/gogo/runtime/cpeg/Procedural.java Tue Jun 30 20:52:04 2009
@@ -16,7 +16,7 @@
  * specific language governing permissions and limitations
  * under the License.
  */
-package org.apache.felix.gogo.cpeg;
+package org.apache.felix.gogo.runtime.cpeg;
 
 
 import org.osgi.framework.Bundle;

Copied: felix/trunk/gogo/gogo-runtime/src/main/java/org/apache/felix/gogo/runtime/equinox/Equinox.java (from r789939, felix/trunk/gogo/src/main/java/org/apache/felix/gogo/shell/equinox/Equinox.java)
URL: http://svn.apache.org/viewvc/felix/trunk/gogo/gogo-runtime/src/main/java/org/apache/felix/gogo/runtime/equinox/Equinox.java?p2=felix/trunk/gogo/gogo-runtime/src/main/java/org/apache/felix/gogo/runtime/equinox/Equinox.java&p1=felix/trunk/gogo/src/main/java/org/apache/felix/gogo/shell/equinox/Equinox.java&r1=789939&r2=789948&rev=789948&view=diff
==============================================================================
--- felix/trunk/gogo/src/main/java/org/apache/felix/gogo/shell/equinox/Equinox.java (original)
+++ felix/trunk/gogo/gogo-runtime/src/main/java/org/apache/felix/gogo/runtime/equinox/Equinox.java Tue Jun 30 20:52:04 2009
@@ -1,4 +1,4 @@
-package org.apache.felix.gogo.shell.equinox;
+package org.apache.felix.gogo.runtime.equinox;
 
 import org.osgi.framework.Bundle;
 import org.osgi.framework.BundleContext;

Copied: felix/trunk/gogo/gogo-runtime/src/main/java/org/apache/felix/gogo/runtime/lang/Support.java (from r789939, felix/trunk/gogo/src/main/java/org/apache/felix/gogo/shell/lang/Support.java)
URL: http://svn.apache.org/viewvc/felix/trunk/gogo/gogo-runtime/src/main/java/org/apache/felix/gogo/runtime/lang/Support.java?p2=felix/trunk/gogo/gogo-runtime/src/main/java/org/apache/felix/gogo/runtime/lang/Support.java&p1=felix/trunk/gogo/src/main/java/org/apache/felix/gogo/shell/lang/Support.java&r1=789939&r2=789948&rev=789948&view=diff
==============================================================================
--- felix/trunk/gogo/src/main/java/org/apache/felix/gogo/shell/lang/Support.java (original)
+++ felix/trunk/gogo/gogo-runtime/src/main/java/org/apache/felix/gogo/runtime/lang/Support.java Tue Jun 30 20:52:04 2009
@@ -16,7 +16,7 @@
  * specific language governing permissions and limitations
  * under the License.
  */
-package org.apache.felix.gogo.shell.lang;
+package org.apache.felix.gogo.runtime.lang;
 
 import org.osgi.service.command.Converter;
 import org.osgi.service.command.Function;

Copied: felix/trunk/gogo/gogo-runtime/src/main/java/org/apache/felix/gogo/runtime/osgi/OSGiCommands.java (from r789939, felix/trunk/gogo/src/main/java/org/apache/felix/gogo/shell/osgi/OSGiCommands.java)
URL: http://svn.apache.org/viewvc/felix/trunk/gogo/gogo-runtime/src/main/java/org/apache/felix/gogo/runtime/osgi/OSGiCommands.java?p2=felix/trunk/gogo/gogo-runtime/src/main/java/org/apache/felix/gogo/runtime/osgi/OSGiCommands.java&p1=felix/trunk/gogo/src/main/java/org/apache/felix/gogo/shell/osgi/OSGiCommands.java&r1=789939&r2=789948&rev=789948&view=diff
==============================================================================
--- felix/trunk/gogo/src/main/java/org/apache/felix/gogo/shell/osgi/OSGiCommands.java (original)
+++ felix/trunk/gogo/gogo-runtime/src/main/java/org/apache/felix/gogo/runtime/osgi/OSGiCommands.java Tue Jun 30 20:52:04 2009
@@ -18,7 +18,7 @@
  */
 // DWB1: osgi:each too verbose (formats reults to System.out)
 // DWB2: ClassNotFoundException should be caught in convert() method
-package org.apache.felix.gogo.shell.osgi;
+package org.apache.felix.gogo.runtime.osgi;
 
 import org.osgi.framework.*;
 import org.osgi.service.command.CommandSession;

Copied: felix/trunk/gogo/gogo-runtime/src/main/java/org/apache/felix/gogo/runtime/osgi/OSGiShell.java (from r789939, felix/trunk/gogo/src/main/java/org/apache/felix/gogo/shell/osgi/OSGiShell.java)
URL: http://svn.apache.org/viewvc/felix/trunk/gogo/gogo-runtime/src/main/java/org/apache/felix/gogo/runtime/osgi/OSGiShell.java?p2=felix/trunk/gogo/gogo-runtime/src/main/java/org/apache/felix/gogo/runtime/osgi/OSGiShell.java&p1=felix/trunk/gogo/src/main/java/org/apache/felix/gogo/shell/osgi/OSGiShell.java&r1=789939&r2=789948&rev=789948&view=diff
==============================================================================
--- felix/trunk/gogo/src/main/java/org/apache/felix/gogo/shell/osgi/OSGiShell.java (original)
+++ felix/trunk/gogo/gogo-runtime/src/main/java/org/apache/felix/gogo/runtime/osgi/OSGiShell.java Tue Jun 30 20:52:04 2009
@@ -18,9 +18,9 @@
  */
 // DWB3: dynamically load optional framework components to reduce dependencies
 // DWB4: get() with trailing colon causes org.osgi.framework.InvalidSyntaxException
-package org.apache.felix.gogo.shell.osgi;
+package org.apache.felix.gogo.runtime.osgi;
 
-import org.apache.felix.gogo.shell.runtime.CommandShellImpl;
+import org.apache.felix.gogo.runtime.shell.CommandShellImpl;
 import org.osgi.framework.Bundle;
 import org.osgi.framework.BundleContext;
 import org.osgi.framework.InvalidSyntaxException;

Copied: felix/trunk/gogo/gogo-runtime/src/main/java/org/apache/felix/gogo/runtime/osgi/ServiceCommand.java (from r789939, felix/trunk/gogo/src/main/java/org/apache/felix/gogo/shell/osgi/ServiceCommand.java)
URL: http://svn.apache.org/viewvc/felix/trunk/gogo/gogo-runtime/src/main/java/org/apache/felix/gogo/runtime/osgi/ServiceCommand.java?p2=felix/trunk/gogo/gogo-runtime/src/main/java/org/apache/felix/gogo/runtime/osgi/ServiceCommand.java&p1=felix/trunk/gogo/src/main/java/org/apache/felix/gogo/shell/osgi/ServiceCommand.java&r1=789939&r2=789948&rev=789948&view=diff
==============================================================================
--- felix/trunk/gogo/src/main/java/org/apache/felix/gogo/shell/osgi/ServiceCommand.java (original)
+++ felix/trunk/gogo/gogo-runtime/src/main/java/org/apache/felix/gogo/runtime/osgi/ServiceCommand.java Tue Jun 30 20:52:04 2009
@@ -16,10 +16,10 @@
  * specific language governing permissions and limitations
  * under the License.
  */
-package org.apache.felix.gogo.shell.osgi;
+package org.apache.felix.gogo.runtime.osgi;
 
-import org.apache.felix.gogo.shell.runtime.CommandShellImpl;
-import org.apache.felix.gogo.shell.runtime.Reflective;
+import org.apache.felix.gogo.runtime.shell.CommandShellImpl;
+import org.apache.felix.gogo.runtime.shell.Reflective;
 import org.osgi.framework.ServiceReference;
 import org.osgi.service.command.CommandSession;
 import org.osgi.service.command.Function;

Copied: felix/trunk/gogo/gogo-runtime/src/main/java/org/apache/felix/gogo/runtime/shell/Closure.java (from r789939, felix/trunk/gogo/src/main/java/org/apache/felix/gogo/shell/runtime/Closure.java)
URL: http://svn.apache.org/viewvc/felix/trunk/gogo/gogo-runtime/src/main/java/org/apache/felix/gogo/runtime/shell/Closure.java?p2=felix/trunk/gogo/gogo-runtime/src/main/java/org/apache/felix/gogo/runtime/shell/Closure.java&p1=felix/trunk/gogo/src/main/java/org/apache/felix/gogo/shell/runtime/Closure.java&r1=789939&r2=789948&rev=789948&view=diff
==============================================================================
--- felix/trunk/gogo/src/main/java/org/apache/felix/gogo/shell/runtime/Closure.java (original)
+++ felix/trunk/gogo/gogo-runtime/src/main/java/org/apache/felix/gogo/runtime/shell/Closure.java Tue Jun 30 20:52:04 2009
@@ -19,7 +19,7 @@
 // DWB5: session.err is not redirected when creating pipeline
 // DWB6: add 'set -x' trace feature if echo is set
 // DWB7: removing variable via 'execute("name=") throws OutOfBoundsException
-package org.apache.felix.gogo.shell.runtime;
+package org.apache.felix.gogo.runtime.shell;
 
 import org.osgi.service.command.CommandSession;
 import org.osgi.service.command.Function;

Copied: felix/trunk/gogo/gogo-runtime/src/main/java/org/apache/felix/gogo/runtime/shell/Command.java (from r789939, felix/trunk/gogo/src/main/java/org/apache/felix/gogo/shell/runtime/Command.java)
URL: http://svn.apache.org/viewvc/felix/trunk/gogo/gogo-runtime/src/main/java/org/apache/felix/gogo/runtime/shell/Command.java?p2=felix/trunk/gogo/gogo-runtime/src/main/java/org/apache/felix/gogo/runtime/shell/Command.java&p1=felix/trunk/gogo/src/main/java/org/apache/felix/gogo/shell/runtime/Command.java&r1=789939&r2=789948&rev=789948&view=diff
==============================================================================
--- felix/trunk/gogo/src/main/java/org/apache/felix/gogo/shell/runtime/Command.java (original)
+++ felix/trunk/gogo/gogo-runtime/src/main/java/org/apache/felix/gogo/runtime/shell/Command.java Tue Jun 30 20:52:04 2009
@@ -16,7 +16,7 @@
  * specific language governing permissions and limitations
  * under the License.
  */
-package org.apache.felix.gogo.shell.runtime;
+package org.apache.felix.gogo.runtime.shell;
 
 import org.osgi.service.command.CommandSession;
 import org.osgi.service.command.Function;

Copied: felix/trunk/gogo/gogo-runtime/src/main/java/org/apache/felix/gogo/runtime/shell/CommandSessionImpl.java (from r789939, felix/trunk/gogo/src/main/java/org/apache/felix/gogo/shell/runtime/CommandSessionImpl.java)
URL: http://svn.apache.org/viewvc/felix/trunk/gogo/gogo-runtime/src/main/java/org/apache/felix/gogo/runtime/shell/CommandSessionImpl.java?p2=felix/trunk/gogo/gogo-runtime/src/main/java/org/apache/felix/gogo/runtime/shell/CommandSessionImpl.java&p1=felix/trunk/gogo/src/main/java/org/apache/felix/gogo/shell/runtime/CommandSessionImpl.java&r1=789939&r2=789948&rev=789948&view=diff
==============================================================================
--- felix/trunk/gogo/src/main/java/org/apache/felix/gogo/shell/runtime/CommandSessionImpl.java (original)
+++ felix/trunk/gogo/gogo-runtime/src/main/java/org/apache/felix/gogo/runtime/shell/CommandSessionImpl.java Tue Jun 30 20:52:04 2009
@@ -19,7 +19,7 @@
 // DWB8: throw IllegatlStateException if session used after closed (as per rfc132)
 // DWB9: there is no API to list all variables: https://www.osgi.org/bugzilla/show_bug.cgi?id=49
 // DWB10: add SCOPE support: https://www.osgi.org/bugzilla/show_bug.cgi?id=51
-package org.apache.felix.gogo.shell.runtime;
+package org.apache.felix.gogo.runtime.shell;
 
 import org.osgi.service.command.CommandSession;
 import org.osgi.service.command.Converter;

Copied: felix/trunk/gogo/gogo-runtime/src/main/java/org/apache/felix/gogo/runtime/shell/CommandShellImpl.java (from r789939, felix/trunk/gogo/src/main/java/org/apache/felix/gogo/shell/runtime/CommandShellImpl.java)
URL: http://svn.apache.org/viewvc/felix/trunk/gogo/gogo-runtime/src/main/java/org/apache/felix/gogo/runtime/shell/CommandShellImpl.java?p2=felix/trunk/gogo/gogo-runtime/src/main/java/org/apache/felix/gogo/runtime/shell/CommandShellImpl.java&p1=felix/trunk/gogo/src/main/java/org/apache/felix/gogo/shell/runtime/CommandShellImpl.java&r1=789939&r2=789948&rev=789948&view=diff
==============================================================================
--- felix/trunk/gogo/src/main/java/org/apache/felix/gogo/shell/runtime/CommandShellImpl.java (original)
+++ felix/trunk/gogo/gogo-runtime/src/main/java/org/apache/felix/gogo/runtime/shell/CommandShellImpl.java Tue Jun 30 20:52:04 2009
@@ -19,7 +19,7 @@
 // DWB11: add removeCommand: https://www.osgi.org/bugzilla/show_bug.cgi?id=49
 // DWB12: there is no API to list commands: https://www.osgi.org/bugzilla/show_bug.cgi?id=49
 // DWB13: addCommand() fails to add static methods (if target is Class)
-package org.apache.felix.gogo.shell.runtime;
+package org.apache.felix.gogo.runtime.shell;
 
 import org.osgi.service.command.CommandProcessor;
 import org.osgi.service.command.CommandSession;

Copied: felix/trunk/gogo/gogo-runtime/src/main/java/org/apache/felix/gogo/runtime/shell/Context.java (from r789939, felix/trunk/gogo/src/test/java/org/apache/felix/gogo/shell/runtime/Context.java)
URL: http://svn.apache.org/viewvc/felix/trunk/gogo/gogo-runtime/src/main/java/org/apache/felix/gogo/runtime/shell/Context.java?p2=felix/trunk/gogo/gogo-runtime/src/main/java/org/apache/felix/gogo/runtime/shell/Context.java&p1=felix/trunk/gogo/src/test/java/org/apache/felix/gogo/shell/runtime/Context.java&r1=789939&r2=789948&rev=789948&view=diff
==============================================================================
--- felix/trunk/gogo/src/test/java/org/apache/felix/gogo/shell/runtime/Context.java (original)
+++ felix/trunk/gogo/gogo-runtime/src/main/java/org/apache/felix/gogo/runtime/shell/Context.java Tue Jun 30 20:52:04 2009
@@ -16,9 +16,9 @@
  * specific language governing permissions and limitations
  * under the License.
  */
-package org.apache.felix.gogo.shell.runtime;
+package org.apache.felix.gogo.runtime.shell;
 
-import org.apache.felix.gogo.threadio.ThreadIOImpl;
+import org.apache.felix.gogo.runtime.threadio.ThreadIOImpl;
 
 public class Context extends CommandShellImpl
 {

Copied: felix/trunk/gogo/gogo-runtime/src/main/java/org/apache/felix/gogo/runtime/shell/Parser.java (from r789939, felix/trunk/gogo/src/main/java/org/apache/felix/gogo/shell/runtime/Parser.java)
URL: http://svn.apache.org/viewvc/felix/trunk/gogo/gogo-runtime/src/main/java/org/apache/felix/gogo/runtime/shell/Parser.java?p2=felix/trunk/gogo/gogo-runtime/src/main/java/org/apache/felix/gogo/runtime/shell/Parser.java&p1=felix/trunk/gogo/src/main/java/org/apache/felix/gogo/shell/runtime/Parser.java&r1=789939&r2=789948&rev=789948&view=diff
==============================================================================
--- felix/trunk/gogo/src/main/java/org/apache/felix/gogo/shell/runtime/Parser.java (original)
+++ felix/trunk/gogo/gogo-runtime/src/main/java/org/apache/felix/gogo/runtime/shell/Parser.java Tue Jun 30 20:52:04 2009
@@ -18,7 +18,7 @@
  */
 // DWB14: parser loops if // comment at start of program
 // DWB15: allow program to have trailing ';'
-package org.apache.felix.gogo.shell.runtime;
+package org.apache.felix.gogo.runtime.shell;
 
 import java.util.ArrayList;
 import java.util.List;

Copied: felix/trunk/gogo/gogo-runtime/src/main/java/org/apache/felix/gogo/runtime/shell/Pipe.java (from r789939, felix/trunk/gogo/src/main/java/org/apache/felix/gogo/shell/runtime/Pipe.java)
URL: http://svn.apache.org/viewvc/felix/trunk/gogo/gogo-runtime/src/main/java/org/apache/felix/gogo/runtime/shell/Pipe.java?p2=felix/trunk/gogo/gogo-runtime/src/main/java/org/apache/felix/gogo/runtime/shell/Pipe.java&p1=felix/trunk/gogo/src/main/java/org/apache/felix/gogo/shell/runtime/Pipe.java&r1=789939&r2=789948&rev=789948&view=diff
==============================================================================
--- felix/trunk/gogo/src/main/java/org/apache/felix/gogo/shell/runtime/Pipe.java (original)
+++ felix/trunk/gogo/gogo-runtime/src/main/java/org/apache/felix/gogo/runtime/shell/Pipe.java Tue Jun 30 20:52:04 2009
@@ -17,7 +17,7 @@
  * under the License.
  */
 // DWB16: redirect System.err when creating pipe
-package org.apache.felix.gogo.shell.runtime;
+package org.apache.felix.gogo.runtime.shell;
 
 import org.osgi.service.command.Converter;
 
@@ -60,6 +60,7 @@
     public Pipe connect(Pipe next) throws IOException
     {
         next.setOut(out);
+        next.setErr(err);
         pout = new PipedOutputStream();
         next.setIn(new PipedInputStream(pout));
         out = new PrintStream(pout);

Copied: felix/trunk/gogo/gogo-runtime/src/main/java/org/apache/felix/gogo/runtime/shell/Reflective.java (from r789939, felix/trunk/gogo/src/main/java/org/apache/felix/gogo/shell/runtime/Reflective.java)
URL: http://svn.apache.org/viewvc/felix/trunk/gogo/gogo-runtime/src/main/java/org/apache/felix/gogo/runtime/shell/Reflective.java?p2=felix/trunk/gogo/gogo-runtime/src/main/java/org/apache/felix/gogo/runtime/shell/Reflective.java&p1=felix/trunk/gogo/src/main/java/org/apache/felix/gogo/shell/runtime/Reflective.java&r1=789939&r2=789948&rev=789948&view=diff
==============================================================================
--- felix/trunk/gogo/src/main/java/org/apache/felix/gogo/shell/runtime/Reflective.java (original)
+++ felix/trunk/gogo/gogo-runtime/src/main/java/org/apache/felix/gogo/runtime/shell/Reflective.java Tue Jun 30 20:52:04 2009
@@ -20,7 +20,7 @@
 // DWB17: coerce() doesn't support static void main(String[]) in rfc132
 // DWB18: coerce() doesn't extract cause from InvocationTargetException
 // DWB19: coerce() won't add empty array to satisfy Object[] argument
-package org.apache.felix.gogo.shell.runtime;
+package org.apache.felix.gogo.runtime.shell;
 
 import org.osgi.service.command.CommandSession;
 

Copied: felix/trunk/gogo/gogo-runtime/src/main/java/org/apache/felix/gogo/runtime/threadio/Marker.java (from r789939, felix/trunk/gogo/src/main/java/org/apache/felix/gogo/threadio/Marker.java)
URL: http://svn.apache.org/viewvc/felix/trunk/gogo/gogo-runtime/src/main/java/org/apache/felix/gogo/runtime/threadio/Marker.java?p2=felix/trunk/gogo/gogo-runtime/src/main/java/org/apache/felix/gogo/runtime/threadio/Marker.java&p1=felix/trunk/gogo/src/main/java/org/apache/felix/gogo/threadio/Marker.java&r1=789939&r2=789948&rev=789948&view=diff
==============================================================================
--- felix/trunk/gogo/src/main/java/org/apache/felix/gogo/threadio/Marker.java (original)
+++ felix/trunk/gogo/gogo-runtime/src/main/java/org/apache/felix/gogo/runtime/threadio/Marker.java Tue Jun 30 20:52:04 2009
@@ -16,7 +16,7 @@
  * specific language governing permissions and limitations
  * under the License.
  */
-package org.apache.felix.gogo.threadio;
+package org.apache.felix.gogo.runtime.threadio;
 
 import java.io.InputStream;
 import java.io.PrintStream;

Copied: felix/trunk/gogo/gogo-runtime/src/main/java/org/apache/felix/gogo/runtime/threadio/ThreadIOImpl.java (from r789939, felix/trunk/gogo/src/main/java/org/apache/felix/gogo/threadio/ThreadIOImpl.java)
URL: http://svn.apache.org/viewvc/felix/trunk/gogo/gogo-runtime/src/main/java/org/apache/felix/gogo/runtime/threadio/ThreadIOImpl.java?p2=felix/trunk/gogo/gogo-runtime/src/main/java/org/apache/felix/gogo/runtime/threadio/ThreadIOImpl.java&p1=felix/trunk/gogo/src/main/java/org/apache/felix/gogo/threadio/ThreadIOImpl.java&r1=789939&r2=789948&rev=789948&view=diff
==============================================================================
--- felix/trunk/gogo/src/main/java/org/apache/felix/gogo/threadio/ThreadIOImpl.java (original)
+++ felix/trunk/gogo/gogo-runtime/src/main/java/org/apache/felix/gogo/runtime/threadio/ThreadIOImpl.java Tue Jun 30 20:52:04 2009
@@ -17,7 +17,7 @@
  * under the License.
  */
 // DWB20: ThreadIO should check and reset IO if something (e.g. jetty) overrides
-package org.apache.felix.gogo.threadio;
+package org.apache.felix.gogo.runtime.threadio;
 
 import org.osgi.service.component.ComponentContext;
 import org.osgi.service.threadio.ThreadIO;

Copied: felix/trunk/gogo/gogo-runtime/src/main/java/org/apache/felix/gogo/runtime/threadio/ThreadInputStream.java (from r789939, felix/trunk/gogo/src/main/java/org/apache/felix/gogo/threadio/ThreadInputStream.java)
URL: http://svn.apache.org/viewvc/felix/trunk/gogo/gogo-runtime/src/main/java/org/apache/felix/gogo/runtime/threadio/ThreadInputStream.java?p2=felix/trunk/gogo/gogo-runtime/src/main/java/org/apache/felix/gogo/runtime/threadio/ThreadInputStream.java&p1=felix/trunk/gogo/src/main/java/org/apache/felix/gogo/threadio/ThreadInputStream.java&r1=789939&r2=789948&rev=789948&view=diff
==============================================================================
--- felix/trunk/gogo/src/main/java/org/apache/felix/gogo/threadio/ThreadInputStream.java (original)
+++ felix/trunk/gogo/gogo-runtime/src/main/java/org/apache/felix/gogo/runtime/threadio/ThreadInputStream.java Tue Jun 30 20:52:04 2009
@@ -16,7 +16,7 @@
  * specific language governing permissions and limitations
  * under the License.
  */
-package org.apache.felix.gogo.threadio;
+package org.apache.felix.gogo.runtime.threadio;
 
 import java.io.IOException;
 import java.io.InputStream;
@@ -73,8 +73,14 @@
         map.remove();
     }
 
-    InputStream getRoot()
+    /**
+     * Access to the root stream through reflection
+     *
+     * @return
+     */
+    public InputStream getRoot()
     {
         return dflt;
     }
+
 }

Copied: felix/trunk/gogo/gogo-runtime/src/main/java/org/apache/felix/gogo/runtime/threadio/ThreadPrintStream.java (from r789939, felix/trunk/gogo/src/main/java/org/apache/felix/gogo/threadio/ThreadPrintStream.java)
URL: http://svn.apache.org/viewvc/felix/trunk/gogo/gogo-runtime/src/main/java/org/apache/felix/gogo/runtime/threadio/ThreadPrintStream.java?p2=felix/trunk/gogo/gogo-runtime/src/main/java/org/apache/felix/gogo/runtime/threadio/ThreadPrintStream.java&p1=felix/trunk/gogo/src/main/java/org/apache/felix/gogo/threadio/ThreadPrintStream.java&r1=789939&r2=789948&rev=789948&view=diff
==============================================================================
--- felix/trunk/gogo/src/main/java/org/apache/felix/gogo/threadio/ThreadPrintStream.java (original)
+++ felix/trunk/gogo/gogo-runtime/src/main/java/org/apache/felix/gogo/runtime/threadio/ThreadPrintStream.java Tue Jun 30 20:52:04 2009
@@ -16,10 +16,11 @@
  * specific language governing permissions and limitations
  * under the License.
  */
-package org.apache.felix.gogo.threadio;
+package org.apache.felix.gogo.runtime.threadio;
 
 import java.io.IOException;
 import java.io.PrintStream;
+import java.io.InputStream;
 
 public class ThreadPrintStream extends PrintStream
 {
@@ -74,5 +75,14 @@
         map.remove();
     }
 
+    /**
+     * Access to the root stream through reflection
+     * 
+     * @return
+     */
+    public PrintStream getRoot()
+    {
+        return dflt;
+    }
 
 }

Copied: felix/trunk/gogo/gogo-runtime/src/main/java/org/osgi/service/command/CommandProcessor.java (from r789939, felix/trunk/gogo/src/main/java/org/osgi/service/command/CommandProcessor.java)
URL: http://svn.apache.org/viewvc/felix/trunk/gogo/gogo-runtime/src/main/java/org/osgi/service/command/CommandProcessor.java?p2=felix/trunk/gogo/gogo-runtime/src/main/java/org/osgi/service/command/CommandProcessor.java&p1=felix/trunk/gogo/src/main/java/org/osgi/service/command/CommandProcessor.java&r1=789939&r2=789948&rev=789948&view=diff
==============================================================================
    (empty)

Copied: felix/trunk/gogo/gogo-runtime/src/main/java/org/osgi/service/command/CommandSession.java (from r789939, felix/trunk/gogo/src/main/java/org/osgi/service/command/CommandSession.java)
URL: http://svn.apache.org/viewvc/felix/trunk/gogo/gogo-runtime/src/main/java/org/osgi/service/command/CommandSession.java?p2=felix/trunk/gogo/gogo-runtime/src/main/java/org/osgi/service/command/CommandSession.java&p1=felix/trunk/gogo/src/main/java/org/osgi/service/command/CommandSession.java&r1=789939&r2=789948&rev=789948&view=diff
==============================================================================
    (empty)

Copied: felix/trunk/gogo/gogo-runtime/src/main/java/org/osgi/service/command/Converter.java (from r789939, felix/trunk/gogo/src/main/java/org/osgi/service/command/Converter.java)
URL: http://svn.apache.org/viewvc/felix/trunk/gogo/gogo-runtime/src/main/java/org/osgi/service/command/Converter.java?p2=felix/trunk/gogo/gogo-runtime/src/main/java/org/osgi/service/command/Converter.java&p1=felix/trunk/gogo/src/main/java/org/osgi/service/command/Converter.java&r1=789939&r2=789948&rev=789948&view=diff
==============================================================================
    (empty)

Copied: felix/trunk/gogo/gogo-runtime/src/main/java/org/osgi/service/command/Function.java (from r789939, felix/trunk/gogo/src/main/java/org/osgi/service/command/Function.java)
URL: http://svn.apache.org/viewvc/felix/trunk/gogo/gogo-runtime/src/main/java/org/osgi/service/command/Function.java?p2=felix/trunk/gogo/gogo-runtime/src/main/java/org/osgi/service/command/Function.java&p1=felix/trunk/gogo/src/main/java/org/osgi/service/command/Function.java&r1=789939&r2=789948&rev=789948&view=diff
==============================================================================
    (empty)

Copied: felix/trunk/gogo/gogo-runtime/src/main/java/org/osgi/service/threadio/ThreadIO.java (from r789939, felix/trunk/gogo/src/main/java/org/osgi/service/threadio/ThreadIO.java)
URL: http://svn.apache.org/viewvc/felix/trunk/gogo/gogo-runtime/src/main/java/org/osgi/service/threadio/ThreadIO.java?p2=felix/trunk/gogo/gogo-runtime/src/main/java/org/osgi/service/threadio/ThreadIO.java&p1=felix/trunk/gogo/src/main/java/org/osgi/service/threadio/ThreadIO.java&r1=789939&r2=789948&rev=789948&view=diff
==============================================================================
    (empty)

Copied: felix/trunk/gogo/gogo-runtime/src/test/java/org/apache/felix/gogo/runtime/shell/TestParser.java (from r789939, felix/trunk/gogo/src/test/java/org/apache/felix/gogo/shell/runtime/TestParser.java)
URL: http://svn.apache.org/viewvc/felix/trunk/gogo/gogo-runtime/src/test/java/org/apache/felix/gogo/runtime/shell/TestParser.java?p2=felix/trunk/gogo/gogo-runtime/src/test/java/org/apache/felix/gogo/runtime/shell/TestParser.java&p1=felix/trunk/gogo/src/test/java/org/apache/felix/gogo/shell/runtime/TestParser.java&r1=789939&r2=789948&rev=789948&view=diff
==============================================================================
--- felix/trunk/gogo/src/test/java/org/apache/felix/gogo/shell/runtime/TestParser.java (original)
+++ felix/trunk/gogo/gogo-runtime/src/test/java/org/apache/felix/gogo/runtime/shell/TestParser.java Tue Jun 30 20:52:04 2009
@@ -16,7 +16,7 @@
  * specific language governing permissions and limitations
  * under the License.
  */
-package org.apache.felix.gogo.shell.runtime;
+package org.apache.felix.gogo.runtime.shell;
 
 import junit.framework.TestCase;
 import org.osgi.service.command.CommandSession;
@@ -153,7 +153,7 @@
         c.addCommand("echo", this);
 
         assertEquals("", c.execute("echo ${very.likely.that.this.does.not.exist}").toString());
-        assertNotNull(c.execute("echo ${java.runtime.name}"));
+        assertNotNull(c.execute("echo ${java.shell.name}"));
     }
 
     public void testFunny() throws Exception

Copied: felix/trunk/gogo/gogo-runtime/src/test/java/org/apache/felix/gogo/runtime/threadio/TestThreadIO.java (from r789939, felix/trunk/gogo/src/test/java/org/apache/felix/gogo/threadio/TestThreadIO.java)
URL: http://svn.apache.org/viewvc/felix/trunk/gogo/gogo-runtime/src/test/java/org/apache/felix/gogo/runtime/threadio/TestThreadIO.java?p2=felix/trunk/gogo/gogo-runtime/src/test/java/org/apache/felix/gogo/runtime/threadio/TestThreadIO.java&p1=felix/trunk/gogo/src/test/java/org/apache/felix/gogo/threadio/TestThreadIO.java&r1=789939&r2=789948&rev=789948&view=diff
==============================================================================
--- felix/trunk/gogo/src/test/java/org/apache/felix/gogo/threadio/TestThreadIO.java (original)
+++ felix/trunk/gogo/gogo-runtime/src/test/java/org/apache/felix/gogo/runtime/threadio/TestThreadIO.java Tue Jun 30 20:52:04 2009
@@ -16,7 +16,7 @@
  * specific language governing permissions and limitations
  * under the License.
  */
-package org.apache.felix.gogo.threadio;
+package org.apache.felix.gogo.runtime.threadio;
 
 import junit.framework.TestCase;
 

Modified: felix/trunk/gogo/pom.xml
URL: http://svn.apache.org/viewvc/felix/trunk/gogo/pom.xml?rev=789948&r1=789947&r2=789948&view=diff
==============================================================================
--- felix/trunk/gogo/pom.xml (original)
+++ felix/trunk/gogo/pom.xml Tue Jun 30 20:52:04 2009
@@ -25,62 +25,59 @@
         <relativePath>../pom/pom.xml</relativePath>
     </parent>
     <modelVersion>4.0.0</modelVersion>
-    <packaging>bundle</packaging>
+    <packaging>pom</packaging>
     <name>Apache Felix Gogo Shell</name>
-    <artifactId>org.apache.felix.gogo</artifactId>
+    <groupId>org.apache.felix.gogo</groupId>
+    <artifactId>gogo</artifactId>
     <version>1.0.0-SNAPSHOT</version>
-    <dependencies>
-        <dependency>
-            <groupId>${pom.groupId}</groupId>
-            <artifactId>org.osgi.core</artifactId>
-            <version>1.2.0</version>
-            <scope>provided</scope>
-        </dependency>
-        <dependency>
-            <groupId>${pom.groupId}</groupId>
-            <artifactId>org.osgi.compendium</artifactId>
-            <version>1.2.0</version>
-            <scope>provided</scope>
-        </dependency>
-        <dependency>
-            <groupId>junit</groupId>
-            <artifactId>junit</artifactId>
-            <version>4.5</version>
-            <scope>test</scope>
-        </dependency>
-    </dependencies>
+
+    <modules>
+        <module>gogo-runtime</module>
+        <module>gogo-launcher</module>
+        <module>gogo-console</module>
+    </modules>
+
+    <dependencyManagement>
+        <dependencies>
+            <dependency>
+                <groupId>org.apache.felix</groupId>
+                <artifactId>org.osgi.core</artifactId>
+                <version>1.2.0</version>
+                <scope>provided</scope>
+            </dependency>
+            <dependency>
+                <groupId>org.apache.felix</groupId>
+                <artifactId>org.osgi.compendium</artifactId>
+                <version>1.2.0</version>
+                <scope>provided</scope>
+            </dependency>
+            <dependency>
+                <groupId>junit</groupId>
+                <artifactId>junit</artifactId>
+                <version>4.5</version>
+                <scope>test</scope>
+            </dependency>
+            <dependency>
+                <groupId>org.apache.felix.gogo</groupId>
+                <artifactId>org.apache.felix.gogo.runtime</artifactId>
+                <version>${pom.version}</version>
+            </dependency>
+            <dependency>
+                <groupId>org.apache.felix.gogo</groupId>
+                <artifactId>org.apache.felix.gogo.console</artifactId>
+                <version>${pom.version}</version>
+            </dependency>
+            <dependency>
+                <groupId>org.apache.felix.gogo</groupId>
+                <artifactId>org.apache.felix.gogo.launcher</artifactId>
+                <version>${pom.version}</version>
+            </dependency>
+        </dependencies>
+    </dependencyManagement>
+
     <build>
         <plugins>
             <plugin>
-                <groupId>org.apache.felix</groupId>
-                <artifactId>maven-bundle-plugin</artifactId>
-                <version>2.0.0</version>
-                <extensions>true</extensions>
-                <configuration>
-                    <instructions>
-                        <Export-Package>org.osgi.service.command; version=1.0.0</Export-Package>
-                        <Private-Package>org.apache.felix.gogo.*</Private-Package>
-                        <Bundle-SymbolicName>${pom.artifactId}</Bundle-SymbolicName>
-                        <Bundle-Vendor>The Apache Software Foundation</Bundle-Vendor>
-                    </instructions>
-                </configuration>
-            </plugin>
-            <plugin>
-                <groupId>org.codehaus.mojo</groupId>
-                <artifactId>rat-maven-plugin</artifactId>
-                <configuration>
-                    <excludeSubProjects>false</excludeSubProjects>
-                    <useEclipseDefaultExcludes>true</useEclipseDefaultExcludes>
-                    <useMavenDefaultExcludes>true</useMavenDefaultExcludes>
-                    <excludes>
-                        <param>doc/*</param>
-                        <param>maven-eclipse.xml</param>
-                        <param>.checkstyle</param>
-                        <param>.externalToolBuilders/*</param>
-                    </excludes>
-                </configuration>
-            </plugin>
-            <plugin>
                 <artifactId>maven-compiler-plugin</artifactId>
                 <configuration>
                     <source>1.5</source>



Mime
View raw message