You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@karaf.apache.org by jg...@apache.org on 2011/12/07 23:59:12 UTC
svn commit: r1211696 - in /karaf/trunk/demos: ./ command/ command/src/
command/src/main/ command/src/main/filtered-resources/
command/src/main/filtered-resources/resources/
command/src/main/filtered-resources/resources/demos/
command/src/main/filtered-...
Author: jgoodyear
Date: Wed Dec 7 22:59:11 2011
New Revision: 1211696
URL: http://svn.apache.org/viewvc?rev=1211696&view=rev
Log:
[KARAF-1096] Update Custom Command demo
Checking in restructured command demo.
Added:
karaf/trunk/demos/command/pom.xml (with props)
karaf/trunk/demos/command/src/
karaf/trunk/demos/command/src/main/
karaf/trunk/demos/command/src/main/filtered-resources/
karaf/trunk/demos/command/src/main/filtered-resources/resources/
karaf/trunk/demos/command/src/main/filtered-resources/resources/demos/
karaf/trunk/demos/command/src/main/filtered-resources/resources/demos/command/
karaf/trunk/demos/command/src/main/filtered-resources/resources/demos/command/README.txt (with props)
karaf/trunk/demos/command/src/main/resources/
karaf/trunk/demos/command/src/main/resources/resources/
karaf/trunk/demos/command/src/main/resources/resources/demos/
karaf/trunk/demos/command/src/main/resources/resources/demos/command/
karaf/trunk/demos/command/src/main/resources/resources/demos/command/NOTICE
karaf/trunk/demos/command/src/main/resources/resources/demos/command/pom.xml (with props)
Modified:
karaf/trunk/demos/pom.xml
Added: karaf/trunk/demos/command/pom.xml
URL: http://svn.apache.org/viewvc/karaf/trunk/demos/command/pom.xml?rev=1211696&view=auto
==============================================================================
--- karaf/trunk/demos/command/pom.xml (added)
+++ karaf/trunk/demos/command/pom.xml Wed Dec 7 22:59:11 2011
@@ -0,0 +1,105 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<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/xsd/maven-4.0.0.xsd">
+
+ <!--
+
+ 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.
+ -->
+
+ <modelVersion>4.0.0</modelVersion>
+
+ <parent>
+ <groupId>org.apache.karaf.demos</groupId>
+ <artifactId>demos</artifactId>
+ <version>3.0.0-SNAPSHOT</version>
+ </parent>
+
+ <artifactId>org.apache.karaf.demos.command.custom</artifactId>
+ <packaging>pom</packaging>
+ <name>Apache Karaf :: Demos :: Command </name>
+
+ <modules>
+ <module>src/main/resources/resources/demos/command</module>
+ <!--<module>branding-package</module>-->
+ </modules>
+ <build>
+ <resources>
+ <resource>
+ <directory>src/main/resources</directory>
+ <filtering>false</filtering>
+ <excludes>
+ <exclude>**/target/**</exclude>
+ </excludes>
+ </resource>
+ <resource>
+ <directory>src/main/filtered-resources</directory>
+ <filtering>true</filtering>
+ <includes>
+ <include>**/*</include>
+ </includes>
+ </resource>
+ </resources>
+ <plugins>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-resources-plugin</artifactId>
+ <!--<configuration>-->
+ <!--<resources>-->
+ <!--<resource>src/main/resources</resource>-->
+ <!--</resources>-->
+ <!--</configuration>-->
+ <executions>
+ <execution>
+ <id>process-resources</id>
+ <phase>process-resources</phase>
+ <goals>
+ <goal>resources</goal>
+ </goals>
+ </execution>
+ </executions>
+ </plugin>
+ <plugin>
+ <groupId>org.apache.karaf.tooling</groupId>
+ <artifactId>karaf-maven-plugin</artifactId>
+ <version>${project.version}</version>
+ <configuration>
+ <startLevel>60</startLevel>
+ <!--<checkDependencyChange>true</checkDependencyChange>-->
+ <!--<overwriteChangedDependencies>true</overwriteChangedDependencies>-->
+ <!--<warnOnDependencyChange>true</warnOnDependencyChange>-->
+ </configuration>
+ <executions>
+ <execution>
+ <id>compile</id>
+ <phase>compile</phase>
+ <goals>
+ <goal>features-generate-descriptor</goal>
+ </goals>
+ </execution>
+ <execution>
+ <id>package</id>
+ <goals>
+ <goal>features-create-kar</goal>
+ </goals>
+ </execution>
+ </executions>
+ </plugin>
+ </plugins>
+ </build>
+</project>
Propchange: karaf/trunk/demos/command/pom.xml
------------------------------------------------------------------------------
svn:eol-style = native
Added: karaf/trunk/demos/command/src/main/filtered-resources/resources/demos/command/README.txt
URL: http://svn.apache.org/viewvc/karaf/trunk/demos/command/src/main/filtered-resources/resources/demos/command/README.txt?rev=1211696&view=auto
==============================================================================
--- karaf/trunk/demos/command/src/main/filtered-resources/resources/demos/command/README.txt (added)
+++ karaf/trunk/demos/command/src/main/filtered-resources/resources/demos/command/README.txt Wed Dec 7 22:59:11 2011
@@ -0,0 +1,61 @@
+/*
+ * 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.
+ */
+
+EXTEND CONSOLE COMMAND EXAMPLE
+==============================
+
+Purpose
+-------
+Demonstrate how to extend a console command.
+
+
+Prerequisites for Running this Example
+--------------------------------------
+You must have the following installed on your machine:
+
+ - JDK 1.6 or higher.
+
+ - Apache Maven 3.0.3 or higher.
+
+
+Building and Deploying
+----------------------
+This example will produce a bundle, containing a custom command
+and its command completer.
+
+To build the demo console command invoke the following command:
+
+ mvn install
+
+To deploy the console command invoke the following command on the Karaf
+console:
+
+ karaf@root> bundle:install -s mvn:org.apache.karaf.demos/org.apache.karaf.demos.command/${pom.version}
+
+Upon successful installation the bundle ID will be presented.
+
+To test the custom command type the following on the Karaf console:
+
+ karaf@root> mycommand:hello
+ Executing My Command Demo
+ karaf@root>
+
+To test the command completer press tab after typing the first few
+characters of 'mycommand'.
+
+For more information on Extending Karaf Console Commands please visit:
+http://karaf.apache.org/manual/${pom.version}/developers-guide/extending-console.html
Propchange: karaf/trunk/demos/command/src/main/filtered-resources/resources/demos/command/README.txt
------------------------------------------------------------------------------
svn:eol-style = native
Added: karaf/trunk/demos/command/src/main/resources/resources/demos/command/NOTICE
URL: http://svn.apache.org/viewvc/karaf/trunk/demos/command/src/main/resources/resources/demos/command/NOTICE?rev=1211696&view=auto
==============================================================================
--- karaf/trunk/demos/command/src/main/resources/resources/demos/command/NOTICE (added)
+++ karaf/trunk/demos/command/src/main/resources/resources/demos/command/NOTICE Wed Dec 7 22:59:11 2011
@@ -0,0 +1,48 @@
+Apache Karaf
+Copyright 2010 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
Added: karaf/trunk/demos/command/src/main/resources/resources/demos/command/pom.xml
URL: http://svn.apache.org/viewvc/karaf/trunk/demos/command/src/main/resources/resources/demos/command/pom.xml?rev=1211696&view=auto
==============================================================================
--- karaf/trunk/demos/command/src/main/resources/resources/demos/command/pom.xml (added)
+++ karaf/trunk/demos/command/src/main/resources/resources/demos/command/pom.xml Wed Dec 7 22:59:11 2011
@@ -0,0 +1,70 @@
+<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">
+
+ <!--
+
+ 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.
+ -->
+
+ <modelVersion>4.0.0</modelVersion>
+
+ <parent>
+ <groupId>org.apache.karaf.demos</groupId>
+ <artifactId>demos</artifactId>
+ <version>3.0.0-SNAPSHOT</version>
+ <relativePath>../../../../../../../pom.xml</relativePath>
+ </parent>
+
+ <artifactId>org.apache.karaf.demos.command</artifactId>
+ <packaging>bundle</packaging>
+ <name>Apache Karaf :: Demos :: Command :: Extend Console</name>
+
+ <dependencies>
+ <dependency>
+ <groupId>org.apache.karaf.shell</groupId>
+ <artifactId>org.apache.karaf.shell.console</artifactId>
+ </dependency>
+ <dependency>
+ <groupId>junit</groupId>
+ <artifactId>junit</artifactId>
+ <version>3.8.1</version>
+ <scope>test</scope>
+ </dependency>
+ </dependencies>
+
+ <build>
+ <plugins>
+ <plugin>
+ <groupId>org.apache.felix</groupId>
+ <artifactId>maven-bundle-plugin</artifactId>
+ <version>2.3.4</version>
+ <configuration>
+ <instructions>
+ <Import-Package>
+ org.apache.felix.service.command,
+ org.apache.karaf.shell.commands,
+ org.apache.karaf.shell.console,
+ *
+ </Import-Package>
+ </instructions>
+ </configuration>
+ </plugin>
+ </plugins>
+ </build>
+
+</project>
Propchange: karaf/trunk/demos/command/src/main/resources/resources/demos/command/pom.xml
------------------------------------------------------------------------------
svn:eol-style = native
Modified: karaf/trunk/demos/pom.xml
URL: http://svn.apache.org/viewvc/karaf/trunk/demos/pom.xml?rev=1211696&r1=1211695&r2=1211696&view=diff
==============================================================================
--- karaf/trunk/demos/pom.xml (original)
+++ karaf/trunk/demos/pom.xml Wed Dec 7 22:59:11 2011
@@ -36,6 +36,7 @@
<modules>
<module>web</module>
<module>branding</module>
+ <module>command</module>
<module>dump</module>
<module>deployer</module>
</modules>