From 6df5df0919949bf348953697ceb5f47741f279f7 Mon Sep 17 00:00:00 2001 From: Nick Burch Date: Sat, 25 Apr 2015 02:18:06 +0000 Subject: [PATCH] Little bit more OSGi, not yet working #57857 git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1675991 13f79535-47bb-0310-9956-ffa450edef68 --- build.xml | 2 +- osgi/pom.xml | 9 ++++-- .../java/org/apache/poi/osgi/Activator.java | 28 +++++++++++++++++++ 3 files changed, 35 insertions(+), 4 deletions(-) create mode 100644 osgi/src/main/java/org/apache/poi/osgi/Activator.java diff --git a/build.xml b/build.xml index 90d1cdc068..7e7db88fa3 100644 --- a/build.xml +++ b/build.xml @@ -1595,7 +1595,7 @@ under the License. - + diff --git a/osgi/pom.xml b/osgi/pom.xml index 9b33aa84fd..2849467a98 100644 --- a/osgi/pom.xml +++ b/osgi/pom.xml @@ -37,6 +37,10 @@ http://poi.apache.org/ ${poi.version} + 1.6 @@ -107,7 +111,7 @@ org.osgi org.osgi.core 5.0.0 - test + provided @@ -134,7 +138,6 @@ org.apache.poi.* - diff --git a/osgi/src/main/java/org/apache/poi/osgi/Activator.java b/osgi/src/main/java/org/apache/poi/osgi/Activator.java new file mode 100644 index 0000000000..2f0212bd4e --- /dev/null +++ b/osgi/src/main/java/org/apache/poi/osgi/Activator.java @@ -0,0 +1,28 @@ +/* ==================================================================== + 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.poi.osgi; + +import org.osgi.framework.BundleActivator; +import org.osgi.framework.BundleContext; + +public class Activator implements BundleActivator { + public void start(BundleContext context) throws Exception { + } + public void stop(BundleContext context) throws Exception { + } +} -- 2.39.5