Skip to content

Commit

Permalink
KARAF-1446 Moving help and table to individual modules
Browse files Browse the repository at this point in the history
git-svn-id: https://svn.apache.org/repos/asf/karaf/trunk@1335501 13f79535-47bb-0310-9956-ffa450edef68
  • Loading branch information
cschneider committed May 8, 2012
1 parent 9f8a5d3 commit 0229ee7
Show file tree
Hide file tree
Showing 29 changed files with 410 additions and 160 deletions.
9 changes: 9 additions & 0 deletions assemblies/features/framework/pom.xml
Expand Up @@ -151,6 +151,15 @@
<groupId>org.apache.karaf.shell</groupId>
<artifactId>org.apache.karaf.shell.console</artifactId>
</dependency>
<dependency>
<groupId>org.apache.karaf.shell</groupId>
<artifactId>org.apache.karaf.shell.help</artifactId>
</dependency>
<dependency>
<groupId>org.apache.karaf.shell</groupId>
<artifactId>org.apache.karaf.shell.table</artifactId>
</dependency>

<dependency>
<groupId>org.apache.karaf.system</groupId>
<artifactId>org.apache.karaf.system.core</artifactId>
Expand Down
4 changes: 4 additions & 0 deletions http/command/pom.xml
Expand Up @@ -38,6 +38,10 @@
</properties>

<dependencies>
<dependency>
<groupId>org.apache.karaf.shell</groupId>
<artifactId>org.apache.karaf.shell.table</artifactId>
</dependency>
<dependency>
<groupId>org.apache.karaf.shell</groupId>
<artifactId>org.apache.karaf.shell.console</artifactId>
Expand Down
Expand Up @@ -22,8 +22,8 @@
import org.apache.karaf.http.core.ServletService;
import org.apache.karaf.shell.commands.Command;
import org.apache.karaf.shell.console.OsgiCommandSupport;
import org.apache.karaf.shell.console.table.Col;
import org.apache.karaf.shell.console.table.ShellTable;
import org.apache.karaf.shell.table.Col;
import org.apache.karaf.shell.table.ShellTable;

@Command(scope = "http", name = "list", description = "Lists details for servlets.")
public class ServletListCommand extends OsgiCommandSupport {
Expand Down
4 changes: 4 additions & 0 deletions package/command/pom.xml
Expand Up @@ -42,6 +42,10 @@
<groupId>org.apache.karaf.shell</groupId>
<artifactId>org.apache.karaf.shell.console</artifactId>
</dependency>
<dependency>
<groupId>org.apache.karaf.shell</groupId>
<artifactId>org.apache.karaf.shell.table</artifactId>
</dependency>
<dependency>
<groupId>org.apache.karaf.package</groupId>
<artifactId>org.apache.karaf.package.core</artifactId>
Expand Down
Expand Up @@ -22,8 +22,8 @@
import org.apache.karaf.packages.core.PackageVersion;
import org.apache.karaf.shell.commands.Command;
import org.apache.karaf.shell.console.OsgiCommandSupport;
import org.apache.karaf.shell.console.table.Col;
import org.apache.karaf.shell.console.table.ShellTable;
import org.apache.karaf.shell.table.Col;
import org.apache.karaf.shell.table.ShellTable;
import org.osgi.framework.Bundle;

@Command(scope = "package", name = "exports", description = "Lists exported packages and the bundles that export them")
Expand Down
Expand Up @@ -23,8 +23,8 @@
import org.apache.karaf.shell.commands.Command;
import org.apache.karaf.shell.commands.Option;
import org.apache.karaf.shell.console.OsgiCommandSupport;
import org.apache.karaf.shell.console.table.Col;
import org.apache.karaf.shell.console.table.ShellTable;
import org.apache.karaf.shell.table.Col;
import org.apache.karaf.shell.table.ShellTable;
import org.osgi.framework.Bundle;

@Command(scope = "package", name = "imports", description = "Lists imported packages and the bundles that import them")
Expand Down
9 changes: 4 additions & 5 deletions pom.xml
Expand Up @@ -567,25 +567,24 @@
<artifactId>org.apache.karaf.shell.console</artifactId>
<version>${project.version}</version>
</dependency>

<dependency>
<groupId>org.apache.karaf.shell</groupId>
<artifactId>org.apache.karaf.shell.log</artifactId>
<artifactId>org.apache.karaf.shell.ssh</artifactId>
<version>${project.version}</version>
</dependency>
<dependency>
<groupId>org.apache.karaf.shell</groupId>
<artifactId>org.apache.karaf.shell.packages</artifactId>
<artifactId>org.apache.karaf.shell.commands</artifactId>
<version>${project.version}</version>
</dependency>
<dependency>
<groupId>org.apache.karaf.shell</groupId>
<artifactId>org.apache.karaf.shell.ssh</artifactId>
<artifactId>org.apache.karaf.shell.help</artifactId>
<version>${project.version}</version>
</dependency>
<dependency>
<groupId>org.apache.karaf.shell</groupId>
<artifactId>org.apache.karaf.shell.commands</artifactId>
<artifactId>org.apache.karaf.shell.table</artifactId>
<version>${project.version}</version>
</dependency>

Expand Down
1 change: 1 addition & 0 deletions shell/commands/pom.xml
Expand Up @@ -106,6 +106,7 @@
</Export-Package>
<Private-Package>
org.apache.karaf.util.process;-split-package:=merge-first,
org.apache.karaf.util;-split-package:=merge-first,
org.apache.karaf.shell.commands.impl*
</Private-Package>
</instructions>
Expand Down
6 changes: 1 addition & 5 deletions shell/console/pom.xml
Expand Up @@ -77,11 +77,7 @@
<groupId>org.apache.karaf.jaas</groupId>
<artifactId>org.apache.karaf.jaas.boot</artifactId>
</dependency>
<dependency>
<groupId>org.apache.karaf</groupId>
<artifactId>org.apache.karaf.util</artifactId>
<scope>provided</scope>
</dependency>

<dependency>
<groupId>org.apache.aries.blueprint</groupId>
<artifactId>org.apache.aries.blueprint.api</artifactId>
Expand Down

This file was deleted.

Expand Up @@ -26,12 +26,7 @@
</ext:default-properties>
</ext:property-placeholder>

<reference id="commandProcessor" interface="org.apache.felix.service.command.CommandProcessor">
<!-- <reference-listener ref="consoleFactory"
bind-method="registerCommandProcessor"
unbind-method="unregisterCommandProcessor"/>
-->
</reference>
<reference id="commandProcessor" interface="org.apache.felix.service.command.CommandProcessor" />

<bean id="consoleFactoryService" class="org.apache.karaf.shell.console.impl.jline.ConsoleFactoryService">
</bean>
Expand All @@ -52,58 +47,5 @@

<bean id="terminalFactory" class="org.apache.karaf.shell.console.impl.jline.TerminalFactory"
destroy-method="destroy"/>
<service>
<interfaces>
<value>org.apache.felix.service.command.Function</value>
<value>org.apache.karaf.shell.console.CompletableFunction</value>
</interfaces>
<service-properties>
<entry key="osgi.command.scope" value="*"/>
<entry key="osgi.command.function" value="help"/>
</service-properties>
<bean class="org.apache.karaf.shell.console.commands.BlueprintCommand">
<property name="blueprintContainer" ref="blueprintContainer"/>
<property name="blueprintConverter" ref="blueprintConverter"/>
<property name="actionId" value="help"/>
<property name="completers">
<list>
<bean class="org.apache.karaf.shell.console.completer.CommandNamesCompleter"/>
</list>
</property>
</bean>
</service>

<bean id="help" class="org.apache.karaf.shell.console.impl.help.HelpAction" activation="lazy" scope="prototype">
<property name="provider" ref="helpSystem"/>
</bean>

<bean id="helpSystem" class="org.apache.karaf.shell.console.impl.help.HelpSystem" destroy-method="stop">
<property name="context" ref="blueprintBundleContext"/>
</bean>

<service auto-export="interfaces" ranking="-20">
<bean class="org.apache.karaf.shell.console.impl.help.CommandListHelpProvider" />
</service>
<service auto-export="interfaces" ranking="-10">
<bean class="org.apache.karaf.shell.console.impl.help.SingleCommandHelpProvider">
<property name="io">
<reference interface="org.apache.felix.service.threadio.ThreadIO"/>
</property>
</bean>
</service>
<service auto-export="interfaces" ref="subShellHelpProvider" ranking="-10"/>
<bean id="subShellHelpProvider" class="org.apache.karaf.shell.console.impl.help.SubShellHelpProvider" init-method="start" destroy-method="stop">
<property name="context" ref="blueprintBundleContext"/>
</bean>
<service auto-export="interfaces" ranking="-5">
<bean class="org.apache.karaf.shell.console.impl.help.SimpleHelpProvider">
<property name="help">
<map>
<entry key="%root%"><value><![CDATA[${command-list|}]]></value></entry>
<entry key="all"><value><![CDATA[${command-list|}]]></value></entry>
</map>
</property>
</bean>
</service>

</blueprint>
48 changes: 48 additions & 0 deletions shell/help/NOTICE
@@ -0,0 +1,48 @@
Apache Karaf
Copyright 2010-2012 The Apache Software Foundation


I. Included Software

This product includes software developed at
The Apache Software Foundation (http://www.apache.org/).
Licensed under the Apache License 2.0.

This product includes software written by
Antony Lesuisse.
Licensed under Public Domain.


II. Used Software

This product uses software developed at
The OSGi Alliance (http://www.osgi.org/).
Copyright (c) OSGi Alliance (2000, 2010).
Licensed under the Apache License 2.0.

This product uses software developed at
OPS4J (http://www.ops4j.org/).
Licensed under the Apache License 2.0.

This product uses software developed at
FUSE Source (http://www.fusesource.org/).
Licensed under the Apache License 2.0.

This product uses software developed at
Tanuki Software (http://www.tanukisoftware.com/).
Licensed under the Apache License 2.0.

This product uses software developed at
JLine (http://jline.sourceforge.net).
Licensed under the BSD License.

This product uses software developed at
SLF4J (http://www.slf4j.org/).
Licensed under the MIT License.

This product includes software from http://www.json.org.
Copyright (c) 2002 JSON.org


III. License Summary
- Apache License 2.0

0 comments on commit 0229ee7

Please sign in to comment.