You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@felix.apache.org by Cristiano Gavião <cv...@gmail.com> on 2014/12/10 17:40:06 UTC
maven-bundle-plugin with default behaviour and
Bundle.getEntry ?
Hello all,
I have a bundle with myresource.xml resource file inside the
src/main/resources/configuration directory.
When trying to get this resource using
bundle.getEntry("/configuration/myresource.xml") I'm getting a null value
(running an eclipse OSGi debug).
Then I tried to search for this resource using bundle.findEntries("/",
"myresource.xml", true);
and surprisingly this was the result:
[src/main/resources/configuration/myresource.xml,
target/classes/configuration/myresource.xml]
could someone explain me this behaviour and help me to configure such a way
I can use getEntry properly ?
many thanks,
Cristiano
Re: maven-bundle-plugin with default behaviour and
Bundle.getEntry ?
Posted by Cristiano Gavião <cv...@gmail.com>.
Ok, I found where the problem is...
it is an issue related to m2e and a configuration that I have done in order
to remove the "out of sync" error in eclipse PDE.
I changed the place where the manifest file is being generated:
> <manifestLocation>${basedir}/META-INF</manifestLocation>
>
and introduced an ant task in order to copy the OSGI-INF directory and xmls
being generated by maven-scr-plugin to the project's root.
I've contacted the m2e guys.
thanks
2014-12-10 13:40 GMT-03:00 Cristiano Gavião <cv...@gmail.com>:
> Hello all,
>
> I have a bundle with myresource.xml resource file inside the
> src/main/resources/configuration directory.
>
> When trying to get this resource using
> bundle.getEntry("/configuration/myresource.xml") I'm getting a null value
> (running an eclipse OSGi debug).
>
> Then I tried to search for this resource using bundle.findEntries("/",
> "myresource.xml", true);
>
> and surprisingly this was the result:
>
> [src/main/resources/configuration/myresource.xml,
> target/classes/configuration/myresource.xml]
>
> could someone explain me this behaviour and help me to configure such a
> way I can use getEntry properly ?
>
> many thanks,
>
> Cristiano
>
>
--
"Tudo vale a pena se a alma não é pequena..."