Well your bundle requirement looks very wrong since you require the source
bundles that IMHO are not part of the runtime and of course you should
never require sources! That is why your bundle does not start.

Gayan Perera <gayan...@gmail.com> schrieb am So., 25. Okt. 2020, 18:13:

> Hi Dirk,
> Yes PDE annotation are enabled.
> The xml generated inside OSGI-INF looks like this
>
> *<?xml version="1.0" encoding="UTF-8"?>*
>
> *<**scr:component* *xmlns:scr=**"http://www.osgi.org/xmlns/scr/v1.1.0
> <http://www.osgi.org/xmlns/scr/v1.1.0>"* *immediate=**"true"* *name=*
> *"org.gap.eclipse.plugins.eclipseiconpacks.core.IconPackWeavingHook"**>*
>
>    *<service>*
>
>       *<provide* *interface=*
> *"org.osgi.framework.hooks.weaving.WeavingHook"**/>*
>
>    *</service>*
>
>    *<implementation* *class=*
> *"org.gap.eclipse.plugins.eclipseiconpacks.core.IconPackWeavingHook"**/>*
>
> *</scr:component>*
>
>
> My build.properties looks like this
>
>
> source.. = src/main/java/
>
> output.. = target/classes/
>
> bin.includes = plugin.xml,\
>
>                META-INF/,\
>
>                .,\
>
>                icons/,\
>
>                OSGI-INF/
>
> Manifest looks like this
>
> *Manifest-Version**:** 1.0*
>
> *Bundle-ManifestVersion**:** 2*
>
> *Bundle-Name**:** eclipse-icon-packs Core Plugin*
>
> *Bundle-SymbolicName**:** eclipse-icon-packs.core;**singleton**:=**true*
>
> *Bundle-Version**:** 0.0.1.qualifier*
>
> *Bundle-Activator**:**
> org.gap.eclipse.plugins.eclipseiconpacks.core.Activator*
>
> *Require-Bundle**:** org.eclipse.core.runtime,*
>
> * org.eclipse.osgi.services,*
>
> * org.eclipse.equinox.region.source,*
>
> * org.eclipse.equinox.weaving.hook.source*
>
> *Bundle-RequiredExecutionEnvironment**:** JavaSE-1.8*
>
> *Bundle-ActivationPolicy**:** lazy*
>
> *Service-Component**:**
> OSGI-INF/org.gap.eclipse.plugins.eclipseiconpacks.core.IconPackWeavingHook.xml*
>
> *Export-Package**:** org.gap.eclipse.plugins.eclipseiconpacks.core*
>
> Gayan
>
>
>
> On Sun, Oct 25, 2020 at 6:02 PM Dirk Fauth <dirk.fa...@googlemail.com>
> wrote:
>
>> Do you have pde ds annotations enabled? Because then the bundle
>> activation policy should be lazy by default. And also the @Component
>> annotation is processed correctly.
>>
>> Gayan Perera <gayan...@gmail.com> schrieb am So., 25. Okt. 2020, 17:59:
>>
>>> Hi Wim,
>>>
>>> No the bundle is not getting started, i thought exposing the service
>>> descriptor should start the bundle. But its not getting started, i put a
>>> break point in BundleActivator start method to see. It doesn't get hit.
>>>
>>> Gayan.
>>>
>>> On Sun, Oct 25, 2020 at 4:49 PM Wim Jongman <wim.jong...@gmail.com>
>>> wrote:
>>>
>>>> Hi,
>>>>
>>>> Is the bundle started?
>>>>
>>>> Cheers,
>>>>
>>>> Wim
>>>>
>>>> On Sun, Oct 25, 2020 at 1:58 PM Gayan Perera <gayan...@gmail.com>
>>>> wrote:
>>>>
>>>>> Hi,
>>>>>
>>>>> I’m trying to register a weavinghook using services descriptors. I
>>>>> annotated my weavinghook class with component annotation and inhave the
>>>>> osgi folder with the service descriptor xml in place. The osgi folder is
>>>>> included in build.properties as well. But the weavinghook is not getting
>>>>> called. Can someone guide me how to get this working.
>>>>>
>>>>> My endgoal is to weave ImageDescriptor class to support override
>>>>> bundle images.
>>>>>
>>>>> Best regards,
>>>>> Gayan.
>>>>> _______________________________________________
>>>>> platform-dev mailing list
>>>>> platform-dev@eclipse.org
>>>>> To unsubscribe from this list, visit
>>>>> https://www.eclipse.org/mailman/listinfo/platform-dev
>>>>>
>>>> _______________________________________________
>>>> platform-dev mailing list
>>>> platform-dev@eclipse.org
>>>> To unsubscribe from this list, visit
>>>> https://www.eclipse.org/mailman/listinfo/platform-dev
>>>>
>>> _______________________________________________
>>> platform-dev mailing list
>>> platform-dev@eclipse.org
>>> To unsubscribe from this list, visit
>>> https://www.eclipse.org/mailman/listinfo/platform-dev
>>>
>> _______________________________________________
>> platform-dev mailing list
>> platform-dev@eclipse.org
>> To unsubscribe from this list, visit
>> https://www.eclipse.org/mailman/listinfo/platform-dev
>>
> _______________________________________________
> platform-dev mailing list
> platform-dev@eclipse.org
> To unsubscribe from this list, visit
> https://www.eclipse.org/mailman/listinfo/platform-dev
>
_______________________________________________
platform-dev mailing list
platform-dev@eclipse.org
To unsubscribe from this list, visit 
https://www.eclipse.org/mailman/listinfo/platform-dev

Reply via email to