[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [equinox-dev] ExtensionBundle-Activator initialization problem

Ah, now I got it working...

great...

thanks Tom


2014/1/13 Thomas Watson <tjwatson@xxxxxxxxxx>

You need to be a fragment of the system.bundle in order to be an extension bundle:

Fragment-Host: system.bundle

Tom




Inactive hide details for Cristiano GaviÃo ---01/13/2014 11:23:16 AM---Hello, I'm trying to experiment with Extension Bundle AcCristiano GaviÃo ---01/13/2014 11:23:16 AM---Hello, I'm trying to experiment with Extension Bundle Activator but couldn't

From: Cristiano GaviÃo <cvgaviao@xxxxxxxxx>
To: Equinox development mailing list <equinox-dev@xxxxxxxxxxx>,
Date: 01/13/2014 11:23 AM
Subject: [equinox-dev] ExtensionBundle-Activator initialization problem
Sent by: equinox-dev-bounces@xxxxxxxxxxx





Hello,

I'm trying to experiment with Extension Bundle Activator but couldn't
make my simple example to work.
I can't see any message in the console...

could someone point me what I'm missing?


below are my artifacts:


Manifest-Version: 1.0
Bundle-ManifestVersion: 2
Bundle-Name: SystemBundleTest
Bundle-SymbolicName: SystemBundleTest
Bundle-Version: 1.0.0.qualifier
Bundle-RequiredExecutionEnvironment: JavaSE-1.7
ExtensionBundle-Activator: org.system.bundle.test.Activator
Import-Package: org.osgi.framework;version="1.3.0"
Bundle-ActivationPolicy: lazy

---------------------------------------------

public class Activator implements BundleActivator {

  /*
  Â* (non-Javadoc)
  Â* @see
org.osgi.framework.BundleActivator#start(org.osgi.framework.BundleContext)
  Â*/
  public void start(BundleContext context) throws Exception {
    System.out.println("Hello World!!");
  }

  /*
  Â* (non-Javadoc)
  Â* @see
org.osgi.framework.BundleActivator#stop(org.osgi.framework.BundleContext)
  Â*/
  public void stop(BundleContext context) throws Exception {
    System.out.println("Goodbye World!!");
  }

}


thanks,

Cristiano
_______________________________________________
equinox-dev mailing list
equinox-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/equinox-dev



_______________________________________________
equinox-dev mailing list
equinox-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/equinox-dev




--
"Tudo vale a pena se a alma nÃo à pequena..."

GIF image