add karaf feature

Project: http://git-wip-us.apache.org/repos/asf/camel/repo
Commit: http://git-wip-us.apache.org/repos/asf/camel/commit/f84f70db
Tree: http://git-wip-us.apache.org/repos/asf/camel/tree/f84f70db
Diff: http://git-wip-us.apache.org/repos/asf/camel/diff/f84f70db

Branch: refs/heads/master
Commit: f84f70dbf0687a1b5779403d674828b96e5131c0
Parents: f1aa9e1
Author: Fabrizio Spataro <fabrizio.spat...@bizmate.it>
Authored: Mon Oct 17 09:38:49 2016 +0200
Committer: Andrea Cosentino <anco...@gmail.com>
Committed: Mon Oct 17 13:11:29 2016 +0200

----------------------------------------------------------------------
 parent/pom.xml                                  |  1 +
 .../features/src/main/resources/features.xml    |  5 +++
 .../camel/itest/karaf/CamelDrillTest.java       | 33 ++++++++++++++++++++
 3 files changed, 39 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/camel/blob/f84f70db/parent/pom.xml
----------------------------------------------------------------------
diff --git a/parent/pom.xml b/parent/pom.xml
index 20d04de..e51cb56 100644
--- a/parent/pom.xml
+++ b/parent/pom.xml
@@ -44,6 +44,7 @@
     <aopalliance-bundle-version>1.0_6</aopalliance-bundle-version>
     <apacheds-version>2.0.0-M23</apacheds-version>
     <apache-drill-version>1.8.0</apache-drill-version>
+    <apache-drill-bundle-version>1.8.0</apache-drill-bundle-version>
     <apache-gora-version>0.6.1</apache-gora-version>
     <apache-mime4j-version>0.7.2</apache-mime4j-version>
     <aries-blueprint-api-version>1.0.1</aries-blueprint-api-version>

http://git-wip-us.apache.org/repos/asf/camel/blob/f84f70db/platforms/karaf/features/src/main/resources/features.xml
----------------------------------------------------------------------
diff --git a/platforms/karaf/features/src/main/resources/features.xml 
b/platforms/karaf/features/src/main/resources/features.xml
index d1034d7..dc40094 100644
--- a/platforms/karaf/features/src/main/resources/features.xml
+++ b/platforms/karaf/features/src/main/resources/features.xml
@@ -421,6 +421,11 @@
     <bundle 
dependency='true'>mvn:org.apache.servicemix.bundles/org.apache.servicemix.bundles.dnsjava/${dnsjava-bundle-version}</bundle>
     <bundle>mvn:org.apache.camel/camel-dns/${project.version}</bundle>
   </feature>
+  <feature name='camel-drill' version='${project.version}' resolver='(obr)' 
start-level='50'>
+    <feature version='${project.version}'>camel-core</feature>
+    <bundle 
dependency='true'>mvn:org.apache.servicemix.bundles/org.apache.servicemix.bundles.apachedrill/${apache-drill-bundle-version}</bundle>
+    <bundle>mvn:org.apache.camel/camel-drill/${project.version}</bundle>
+  </feature>
   <feature name='camel-dozer' version='${project.version}' resolver='(obr)' 
start-level='50'>
     <feature version='${project.version}'>camel-core</feature>
     <feature>war</feature>

http://git-wip-us.apache.org/repos/asf/camel/blob/f84f70db/tests/camel-itest-karaf/src/test/java/org/apache/camel/itest/karaf/CamelDrillTest.java
----------------------------------------------------------------------
diff --git 
a/tests/camel-itest-karaf/src/test/java/org/apache/camel/itest/karaf/CamelDrillTest.java
 
b/tests/camel-itest-karaf/src/test/java/org/apache/camel/itest/karaf/CamelDrillTest.java
new file mode 100644
index 0000000..39cc848
--- /dev/null
+++ 
b/tests/camel-itest-karaf/src/test/java/org/apache/camel/itest/karaf/CamelDrillTest.java
@@ -0,0 +1,33 @@
+/**
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ *
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package org.apache.camel.itest.karaf;
+
+import org.junit.Test;
+import org.junit.runner.RunWith;
+import org.ops4j.pax.exam.junit.PaxExam;
+
+@RunWith(PaxExam.class)
+public class CamelDrillTest extends BaseKarafTest {
+
+    public static final String COMPONENT = extractName(CamelDrillTest.class);
+
+    @Test
+    public void test() throws Exception {
+        testComponent(COMPONENT);
+    }
+
+}

Reply via email to