Note that getResource always return null for fragments ...
2017-06-22 11:51 GMT+02:00 Dominik Marciniszyn <
marciniszyn.domi...@gmail.com>:
> Hi,
>
> I have two osgi bundles and I would like to get some resources files from
> one bundle to another. I've used BundleContext to get the second
Oftentimes you can avoid it entirely. What is your use case?
On Thu, Jun 22, 2017 at 6:07 AM Dominik Marciniszyn <
marciniszyn.domi...@gmail.com> wrote:
> Hi,
>
> I have two osgi bundles and I would like to get some resources files from
> one bundle to another. I've used BundleContext to get
Can you share your test project via github? It should work fine...
regards
Grzegorz Grzybek
2017-06-22 11:51 GMT+02:00 Dominik Marciniszyn <
marciniszyn.domi...@gmail.com>:
> Hi,
>
> I have two osgi bundles and I would like to get some resources files from
> one bundle to another. I've used
Hi,
I have two osgi bundles and I would like to get some resources files from
one bundle to another. I've used BundleContext to get the second bundle by
ID. Then I use getResource() method, pass the path parameter but always got
null.
Sample code I used:
BundleContext context =