[jboss-osgi-commits] JBoss-OSGI SVN: r90468 - in projects/jboss-osgi/trunk/testsuite/functional: src/test/java/org/jboss/test/osgi/jbosgi108 and 3 other directories.

jboss-osgi-commits at lists.jboss.org jboss-osgi-commits at lists.jboss.org
Fri Jun 19 07:16:47 EDT 2009


Author: thomas.diesler at jboss.com
Date: 2009-06-19 07:16:46 -0400 (Fri, 19 Jun 2009)
New Revision: 90468

Added:
   projects/jboss-osgi/trunk/testsuite/functional/src/test/java/org/jboss/test/osgi/jbosgi108/bundleA/
   projects/jboss-osgi/trunk/testsuite/functional/src/test/java/org/jboss/test/osgi/jbosgi108/bundleA/ActivatorBundleA.java
   projects/jboss-osgi/trunk/testsuite/functional/src/test/java/org/jboss/test/osgi/jbosgi108/bundleA/SomeBean.java
   projects/jboss-osgi/trunk/testsuite/functional/src/test/java/org/jboss/test/osgi/jbosgi108/bundleA/SomeBeanMBean.java
   projects/jboss-osgi/trunk/testsuite/functional/src/test/java/org/jboss/test/osgi/jbosgi108/bundleB/
   projects/jboss-osgi/trunk/testsuite/functional/src/test/java/org/jboss/test/osgi/jbosgi108/bundleB/ActivatorBundleB.java
   projects/jboss-osgi/trunk/testsuite/functional/src/test/resources/jbosgi108/jbosgi108-bundleA.bnd
   projects/jboss-osgi/trunk/testsuite/functional/src/test/resources/jbosgi108/jbosgi108-bundleB.bnd
Removed:
   projects/jboss-osgi/trunk/testsuite/functional/src/test/java/org/jboss/test/osgi/jbosgi108/bundle/
   projects/jboss-osgi/trunk/testsuite/functional/src/test/java/org/jboss/test/osgi/jbosgi108/bundleA/ServiceActivator.java
   projects/jboss-osgi/trunk/testsuite/functional/src/test/resources/jbosgi108/jbosgi108-bundle.bnd
Modified:
   projects/jboss-osgi/trunk/testsuite/functional/scripts/antrun-test-jars.xml
   projects/jboss-osgi/trunk/testsuite/functional/src/test/java/org/jboss/test/osgi/jbosgi108/OSGI108TestCase.java
Log:
JBOSGI-108 - Investigate statics on PackageAdmin.refresh

Modified: projects/jboss-osgi/trunk/testsuite/functional/scripts/antrun-test-jars.xml
===================================================================
--- projects/jboss-osgi/trunk/testsuite/functional/scripts/antrun-test-jars.xml	2009-06-19 10:02:07 UTC (rev 90467)
+++ projects/jboss-osgi/trunk/testsuite/functional/scripts/antrun-test-jars.xml	2009-06-19 11:16:46 UTC (rev 90468)
@@ -79,7 +79,8 @@
     <bnd classpath="${tests.classes.dir}" output="${tests.output.dir}/test-libs/jbosgi41-bundleA.jar" files="${tests.resources.dir}/jbosgi41/jbosgi41-bundleA.bnd" />
   	
     <!-- jbosgi108 -->
-    <bnd classpath="${tests.classes.dir}" output="${tests.output.dir}/test-libs/jbosgi108-bundle.jar" files="${tests.resources.dir}/jbosgi108/jbosgi108-bundle.bnd" />
+    <bnd classpath="${tests.classes.dir}" output="${tests.output.dir}/test-libs/jbosgi108-bundleA.jar" files="${tests.resources.dir}/jbosgi108/jbosgi108-bundleA.bnd" />
+    <bnd classpath="${tests.classes.dir}" output="${tests.output.dir}/test-libs/jbosgi108-bundleB.jar" files="${tests.resources.dir}/jbosgi108/jbosgi108-bundleB.bnd" />
     
     <!-- startlevel -->
     <bnd classpath="${tests.classes.dir}" output="${tests.output.dir}/test-libs/service/startlevel.jar" files="${tests.resources.dir}/service/startlevel/startlevel.bnd" />

Modified: projects/jboss-osgi/trunk/testsuite/functional/src/test/java/org/jboss/test/osgi/jbosgi108/OSGI108TestCase.java
===================================================================
--- projects/jboss-osgi/trunk/testsuite/functional/src/test/java/org/jboss/test/osgi/jbosgi108/OSGI108TestCase.java	2009-06-19 10:02:07 UTC (rev 90467)
+++ projects/jboss-osgi/trunk/testsuite/functional/src/test/java/org/jboss/test/osgi/jbosgi108/OSGI108TestCase.java	2009-06-19 11:16:46 UTC (rev 90468)
@@ -23,11 +23,20 @@
 
 //$Id: OSGI39TestCase.java 87103 2009-04-09 22:18:31Z thomas.diesler at jboss.com $
 
+
+import static org.junit.Assert.assertEquals;
+
+import java.util.List;
+
+import org.jboss.osgi.spi.capability.JMXCapability;
+import org.jboss.osgi.spi.management.MBeanProxy;
 import org.jboss.osgi.spi.testing.OSGiBundle;
 import org.jboss.osgi.spi.testing.OSGiPackageAdmin;
 import org.jboss.osgi.spi.testing.OSGiRuntime;
 import org.jboss.osgi.spi.testing.OSGiTestHelper;
+import org.jboss.test.osgi.jbosgi108.bundleA.SomeBeanMBean;
 import org.junit.AfterClass;
+import org.junit.Before;
 import org.junit.BeforeClass;
 import org.junit.Test;
 import org.osgi.framework.BundleException;
@@ -48,9 +57,7 @@
    public static void beforeClass() throws BundleException
    {
       runtime = new OSGiTestHelper().getDefaultRuntime();
-      
-      OSGiBundle bundle = runtime.installBundle("jbosgi108-bundle.jar");
-      bundle.start();
+      runtime.addCapability(new JMXCapability());
    }
 
    @AfterClass
@@ -60,12 +67,113 @@
          runtime.shutdown();
    }
 
+   @Before
+   public void setUp()
+   {
+      OSGiPackageAdmin packageAdmin = runtime.getPackageAdmin();
+      packageAdmin.refreshPackages(null);
+   }
+   
    @Test
-   public void testRefresh() throws Exception
+   public void testRedeploySingle() throws Exception
    {
+      OSGiBundle bundleA = runtime.installBundle("jbosgi108-bundleA.jar");
+      
+      bundleA.start();
+
+      SomeBeanMBean someBean = MBeanProxy.get(SomeBeanMBean.class, SomeBeanMBean.MBEAN_NAME, runtime.getMBeanServer());
+      List<String> messages = report(someBean.getMessages());
+      assertEquals("Start messages", 1, messages.size());
+
+      bundleA.uninstall();
+      
+      // Reinstall bundleA
+      bundleA = runtime.installBundle("jbosgi108-bundleA.jar");
+      bundleA.start();
+
+      // The static in bundleA.SomeBean is expected to be recreated 
+      
+      messages = report(someBean.getMessages());
+      assertEquals("Start messages", 1, messages.size());
+      
+      bundleA.uninstall();
+   }
+   
+   @Test
+   public void testRedeployWithReference() throws Exception
+   {
+      OSGiBundle bundleA = runtime.installBundle("jbosgi108-bundleA.jar");
+      OSGiBundle bundleB = runtime.installBundle("jbosgi108-bundleB.jar");
+      
+      bundleA.start();
+      bundleB.start();
+
+      SomeBeanMBean someBean = MBeanProxy.get(SomeBeanMBean.class, SomeBeanMBean.MBEAN_NAME, runtime.getMBeanServer());
+      List<String> messages = report(someBean.getMessages());
+      assertEquals("Start messages", 2, messages.size());
+
+      bundleA.uninstall();
+      
+      // After uninstall bundleA, bundleB still holds a reference on bundleA.SomeBean
+
+      // Reinstall bundleA
+      bundleA = runtime.installBundle("jbosgi108-bundleA.jar");
+      bundleA.start();
+
+      // The static in bundleA.SomeBean is expected to be reused
+      
+      messages = report(someBean.getMessages());
+      assertEquals("Start messages", 4, messages.size());
+      
+      bundleB.uninstall();
+      bundleA.uninstall();
+   }
+   
+   @Test
+   public void testRedeployWithReferenceAndRefresh() throws Exception
+   {
+      OSGiBundle bundleA = runtime.installBundle("jbosgi108-bundleA.jar");
+      OSGiBundle bundleB = runtime.installBundle("jbosgi108-bundleB.jar");
+      
+      bundleA.start();
+      bundleB.start();
+
+      SomeBeanMBean someBean = MBeanProxy.get(SomeBeanMBean.class, SomeBeanMBean.MBEAN_NAME, runtime.getMBeanServer());
+      List<String> messages = report(someBean.getMessages());
+      assertEquals("Start messages", 2, messages.size());
+
+      bundleA.uninstall();
+      
+      // After uninstall bundleA, bundleB still holds a reference on bundleA.SomeBean
+
+      // Refresh all packages
       OSGiPackageAdmin packageAdmin = runtime.getPackageAdmin();
       packageAdmin.refreshPackages(null);
       
-      Thread.sleep(1000);
+      // Reinstall bundleA
+      bundleA = runtime.installBundle("jbosgi108-bundleA.jar");
+      bundleA.start();
+
+      // The static in bundleA.SomeBean is expected to be recreated 
+      
+      messages = report(someBean.getMessages());
+      assertEquals("Start messages", 1, messages.size());
+      
+      bundleB.uninstall();
+      bundleA.uninstall();
    }
+   
+   private List<String> report(List<String> messages)
+   {
+      if (false)
+      {
+         System.out.println(">>>>>>>>>>>>");
+         for (String aux : messages)
+         {
+            System.out.println(aux);
+         }
+         System.out.println("<<<<<<<<<<<");
+      }
+      return messages;
+   }
 }
\ No newline at end of file

Copied: projects/jboss-osgi/trunk/testsuite/functional/src/test/java/org/jboss/test/osgi/jbosgi108/bundleA (from rev 90467, projects/jboss-osgi/trunk/testsuite/functional/src/test/java/org/jboss/test/osgi/jbosgi108/bundle)

Copied: projects/jboss-osgi/trunk/testsuite/functional/src/test/java/org/jboss/test/osgi/jbosgi108/bundleA/ActivatorBundleA.java (from rev 90467, projects/jboss-osgi/trunk/testsuite/functional/src/test/java/org/jboss/test/osgi/jbosgi108/bundle/ServiceActivator.java)
===================================================================
--- projects/jboss-osgi/trunk/testsuite/functional/src/test/java/org/jboss/test/osgi/jbosgi108/bundleA/ActivatorBundleA.java	                        (rev 0)
+++ projects/jboss-osgi/trunk/testsuite/functional/src/test/java/org/jboss/test/osgi/jbosgi108/bundleA/ActivatorBundleA.java	2009-06-19 11:16:46 UTC (rev 90468)
@@ -0,0 +1,75 @@
+/*
+ * JBoss, Home of Professional Open Source
+ * Copyright 2005, JBoss Inc., and individual contributors as indicated
+ * by the @authors tag. See the copyright.txt in the distribution for a
+ * full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
+package org.jboss.test.osgi.jbosgi108.bundleA;
+
+//$Id: ServiceActivator.java 87064 2009-04-09 11:08:56Z thomas.diesler at jboss.com $
+
+import javax.management.MBeanServer;
+
+import org.osgi.framework.BundleActivator;
+import org.osgi.framework.BundleContext;
+import org.osgi.framework.ServiceReference;
+
+public class ActivatorBundleA implements BundleActivator
+{
+   private SomeBean bean;
+   
+   public void start(BundleContext context)
+   {
+      bean = new SomeBean();
+      
+      // Register the MBean
+      try
+      {
+         ServiceReference sref = context.getServiceReference(MBeanServer.class.getName());
+         MBeanServer service = (MBeanServer)context.getService(sref);
+         service.registerMBean(bean, SomeBean.MBEAN_NAME);
+      }
+      catch (Exception ex)
+      {
+         throw new IllegalStateException(ex);
+      }
+      
+      ClassLoader cl = getClass().getClassLoader();
+      String msg = "start with " + cl + " - hashCode: " + cl.hashCode();
+      bean.addMessage(msg);
+   }
+
+   public void stop(BundleContext context)
+   {
+      ClassLoader cl = getClass().getClassLoader();
+      String msg = "stop with " + cl + " - hashCode: " + cl.hashCode();
+      bean.addMessage(msg);
+
+      // Register the MBean
+      try
+      {
+         ServiceReference sref = context.getServiceReference(MBeanServer.class.getName());
+         MBeanServer service = (MBeanServer)context.getService(sref);
+         service.unregisterMBean(SomeBean.MBEAN_NAME);
+      }
+      catch (Exception ex)
+      {
+         throw new IllegalStateException(ex);
+      }
+   }
+}
\ No newline at end of file

Deleted: projects/jboss-osgi/trunk/testsuite/functional/src/test/java/org/jboss/test/osgi/jbosgi108/bundleA/ServiceActivator.java
===================================================================
--- projects/jboss-osgi/trunk/testsuite/functional/src/test/java/org/jboss/test/osgi/jbosgi108/bundle/ServiceActivator.java	2009-06-19 10:02:07 UTC (rev 90467)
+++ projects/jboss-osgi/trunk/testsuite/functional/src/test/java/org/jboss/test/osgi/jbosgi108/bundleA/ServiceActivator.java	2009-06-19 11:16:46 UTC (rev 90468)
@@ -1,62 +0,0 @@
-/*
- * JBoss, Home of Professional Open Source
- * Copyright 2005, JBoss Inc., and individual contributors as indicated
- * by the @authors tag. See the copyright.txt in the distribution for a
- * full listing of individual contributors.
- *
- * This is free software; you can redistribute it and/or modify it
- * under the terms of the GNU Lesser General Public License as
- * published by the Free Software Foundation; either version 2.1 of
- * the License, or (at your option) any later version.
- *
- * This software is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this software; if not, write to the Free
- * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
- * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
- */
-package org.jboss.test.osgi.jbosgi108.bundle;
-
-//$Id: ServiceActivator.java 87064 2009-04-09 11:08:56Z thomas.diesler at jboss.com $
-
-import java.util.ArrayList;
-import java.util.List;
-
-import org.osgi.framework.BundleActivator;
-import org.osgi.framework.BundleContext;
-
-public class ServiceActivator implements BundleActivator
-{
-   private static List<String> messages = new ArrayList<String>(); 
-      
-   public void start(BundleContext context)
-   {
-      ClassLoader cl = getClass().getClassLoader();
-      String msg = "start with " + cl + " - hashCode: " + cl.hashCode();
-      messages.add(msg);
-      report(messages);
-   }
-
-   public void stop(BundleContext context)
-   {
-      ClassLoader cl = getClass().getClassLoader();
-      String msg = "stop with " + cl + " - hashCode: " + cl.hashCode();
-      messages.add(msg);
-      report(messages);
-   }
-
-   private void report(List<String> messages)
-   {
-      System.out.println(">>>>>>>>>>>>");
-      for (String aux : messages)
-      {
-         System.out.println(aux);
-      }
-      System.out.println("<<<<<<<<<<<");
-   }
-
-}
\ No newline at end of file

Added: projects/jboss-osgi/trunk/testsuite/functional/src/test/java/org/jboss/test/osgi/jbosgi108/bundleA/SomeBean.java
===================================================================
--- projects/jboss-osgi/trunk/testsuite/functional/src/test/java/org/jboss/test/osgi/jbosgi108/bundleA/SomeBean.java	                        (rev 0)
+++ projects/jboss-osgi/trunk/testsuite/functional/src/test/java/org/jboss/test/osgi/jbosgi108/bundleA/SomeBean.java	2009-06-19 11:16:46 UTC (rev 90468)
@@ -0,0 +1,43 @@
+/*
+ * JBoss, Home of Professional Open Source
+ * Copyright 2005, JBoss Inc., and individual contributors as indicated
+ * by the @authors tag. See the copyright.txt in the distribution for a
+ * full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
+package org.jboss.test.osgi.jbosgi108.bundleA;
+
+//$Id$
+
+import java.util.ArrayList;
+import java.util.Collections;
+import java.util.List;
+
+public class SomeBean implements SomeBeanMBean
+{
+   private static List<String> messages = new ArrayList<String>();
+   
+   public void addMessage(String msg)
+   {
+      messages.add(msg);
+   }
+   
+   public List<String> getMessages()
+   {
+      return Collections.unmodifiableList(messages);
+   }
+}


Property changes on: projects/jboss-osgi/trunk/testsuite/functional/src/test/java/org/jboss/test/osgi/jbosgi108/bundleA/SomeBean.java
___________________________________________________________________
Name: svn:keywords
   + Id Revision
Name: svn:eol-style
   + LF

Added: projects/jboss-osgi/trunk/testsuite/functional/src/test/java/org/jboss/test/osgi/jbosgi108/bundleA/SomeBeanMBean.java
===================================================================
--- projects/jboss-osgi/trunk/testsuite/functional/src/test/java/org/jboss/test/osgi/jbosgi108/bundleA/SomeBeanMBean.java	                        (rev 0)
+++ projects/jboss-osgi/trunk/testsuite/functional/src/test/java/org/jboss/test/osgi/jbosgi108/bundleA/SomeBeanMBean.java	2009-06-19 11:16:46 UTC (rev 90468)
@@ -0,0 +1,37 @@
+/*
+ * JBoss, Home of Professional Open Source
+ * Copyright 2005, JBoss Inc., and individual contributors as indicated
+ * by the @authors tag. See the copyright.txt in the distribution for a
+ * full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
+package org.jboss.test.osgi.jbosgi108.bundleA;
+
+import java.util.List;
+
+import javax.management.ObjectName;
+
+import org.jboss.osgi.spi.management.ObjectNameFactory;
+
+//$Id$
+
+public interface SomeBeanMBean
+{
+   ObjectName MBEAN_NAME = ObjectNameFactory.create("jboss.osgi:bean=SomeBean");
+   
+   List<String> getMessages();
+}


Property changes on: projects/jboss-osgi/trunk/testsuite/functional/src/test/java/org/jboss/test/osgi/jbosgi108/bundleA/SomeBeanMBean.java
___________________________________________________________________
Name: svn:keywords
   + Id Revision
Name: svn:eol-style
   + LF

Added: projects/jboss-osgi/trunk/testsuite/functional/src/test/java/org/jboss/test/osgi/jbosgi108/bundleB/ActivatorBundleB.java
===================================================================
--- projects/jboss-osgi/trunk/testsuite/functional/src/test/java/org/jboss/test/osgi/jbosgi108/bundleB/ActivatorBundleB.java	                        (rev 0)
+++ projects/jboss-osgi/trunk/testsuite/functional/src/test/java/org/jboss/test/osgi/jbosgi108/bundleB/ActivatorBundleB.java	2009-06-19 11:16:46 UTC (rev 90468)
@@ -0,0 +1,47 @@
+/*
+ * JBoss, Home of Professional Open Source
+ * Copyright 2005, JBoss Inc., and individual contributors as indicated
+ * by the @authors tag. See the copyright.txt in the distribution for a
+ * full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
+package org.jboss.test.osgi.jbosgi108.bundleB;
+
+//$Id$
+
+import org.jboss.test.osgi.jbosgi108.bundleA.SomeBean;
+import org.osgi.framework.BundleActivator;
+import org.osgi.framework.BundleContext;
+
+public class ActivatorBundleB implements BundleActivator
+{
+   private SomeBean bean = new SomeBean();
+   
+   public void start(BundleContext context)
+   {
+      ClassLoader cl = getClass().getClassLoader();
+      String msg = "start with " + cl + " - hashCode: " + cl.hashCode();
+      bean.addMessage(msg);
+   }
+
+   public void stop(BundleContext context)
+   {
+      ClassLoader cl = getClass().getClassLoader();
+      String msg = "stop with " + cl + " - hashCode: " + cl.hashCode();
+      bean.addMessage(msg);
+   }
+}
\ No newline at end of file


Property changes on: projects/jboss-osgi/trunk/testsuite/functional/src/test/java/org/jboss/test/osgi/jbosgi108/bundleB/ActivatorBundleB.java
___________________________________________________________________
Name: svn:keywords
   + Id Revision
Name: svn:eol-style
   + LF

Deleted: projects/jboss-osgi/trunk/testsuite/functional/src/test/resources/jbosgi108/jbosgi108-bundle.bnd
===================================================================
--- projects/jboss-osgi/trunk/testsuite/functional/src/test/resources/jbosgi108/jbosgi108-bundle.bnd	2009-06-19 10:02:07 UTC (rev 90467)
+++ projects/jboss-osgi/trunk/testsuite/functional/src/test/resources/jbosgi108/jbosgi108-bundle.bnd	2009-06-19 11:16:46 UTC (rev 90468)
@@ -1,6 +0,0 @@
-# bnd build -classpath target/test-classes -output target/test-libs/jbosgi108-bundle.jar src/test/resources/jbosgi108/bundle.bnd
-
-Bundle-SymbolicName: jbosgi108-bundle
-Bundle-Activator: org.jboss.test.osgi.jbosgi108.bundle.ServiceActivator
-Export-Package: org.jboss.test.osgi.jbosgi108.bundle
-

Copied: projects/jboss-osgi/trunk/testsuite/functional/src/test/resources/jbosgi108/jbosgi108-bundleA.bnd (from rev 90467, projects/jboss-osgi/trunk/testsuite/functional/src/test/resources/jbosgi108/jbosgi108-bundle.bnd)
===================================================================
--- projects/jboss-osgi/trunk/testsuite/functional/src/test/resources/jbosgi108/jbosgi108-bundleA.bnd	                        (rev 0)
+++ projects/jboss-osgi/trunk/testsuite/functional/src/test/resources/jbosgi108/jbosgi108-bundleA.bnd	2009-06-19 11:16:46 UTC (rev 90468)
@@ -0,0 +1,6 @@
+# bnd build -classpath target/test-classes -output target/test-libs/jbosgi108-bundleA.jar src/test/resources/jbosgi108/jbosgi108-bundleA.bnd
+
+Bundle-SymbolicName: jbosgi108-bundleA
+Bundle-Activator: org.jboss.test.osgi.jbosgi108.bundleA.ActivatorBundleA
+Export-Package: org.jboss.test.osgi.jbosgi108.bundleA
+

Added: projects/jboss-osgi/trunk/testsuite/functional/src/test/resources/jbosgi108/jbosgi108-bundleB.bnd
===================================================================
--- projects/jboss-osgi/trunk/testsuite/functional/src/test/resources/jbosgi108/jbosgi108-bundleB.bnd	                        (rev 0)
+++ projects/jboss-osgi/trunk/testsuite/functional/src/test/resources/jbosgi108/jbosgi108-bundleB.bnd	2009-06-19 11:16:46 UTC (rev 90468)
@@ -0,0 +1,7 @@
+# bnd build -classpath target/test-classes -output target/test-libs/jbosgi108-bundleB.jar src/test/resources/jbosgi108/jbosgi108-bundleB.bnd
+
+Bundle-SymbolicName: jbosgi108-bundleB
+Bundle-Activator: org.jboss.test.osgi.jbosgi108.bundleB.ActivatorBundleB
+Export-Package: org.jboss.test.osgi.jbosgi108.bundleB
+Import-Package: org.osgi.framework, org.jboss.test.osgi.jbosgi108.bundleA
+




More information about the jboss-osgi-commits mailing list