You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@felix.apache.org by Rodrigo Madera <ro...@gmail.com> on 2007/09/26 03:23:30 UTC
Fragment Bundles with maven-bundle-plugin
Hello,
Does anyone have an example of how to create fragment bundles with
maven-bundle-plugin?
I have a bundle called Greeter-1.0.jar that needs some .properties files
that will be read using Java standard ResourceBundles.
I read that this can be accomplished by using fragment bundles to add the
properties files into the classloader.
Thanks for any input,
Rodrigo
Re: Fragment Bundles with maven-bundle-plugin
Posted by Rodrigo Madera <ro...@gmail.com>.
Thanks for the answer.
But I'm really in love with Apache Felix. If fragment bundles
are not yet implemented, I'll wait and figure out myself in
another way.
Right now I'm struggling with Apache libraries, but every other
aspect is working nicely. Apache Felix is a very nice project.
Thanks once again,
Rodrigo
On 9/27/07, Stuart McCulloch <st...@jayway.net> wrote:
>
> Hi Rodrigo,
>
> On 26/09/2007, Rodrigo Madera <ro...@gmail.com> wrote:
> >
> > Hello,
> >
> > Does anyone have an example of how to create fragment bundles with
> > maven-bundle-plugin?
> >
> > I have a bundle called Greeter-1.0.jar that needs some .properties files
> > that will be read using Java standard ResourceBundles.
> > I read that this can be accomplished by using fragment bundles to add
> the
> > properties files into the classloader.
>
>
> it should be just a matter of adding the Fragment-Host header using this
> syntax:
>
> Fragment-Host ::= bundle-description
> bundle-description ::= symbolic-name (';' parameter ) *
>
> for example:
>
> Fragment-Host: com.greeter.text;version=1.0
>
> maven resources (src/main/resources) should already be automatically
> included
> in the bundle - if not then you can use Include-Resource to explicitly add
> missing
> resources, or relocate resources as necessary.
>
> note - afaik fragment bundles are not fully supported in the Felix
> framework, but
> the resulting bundle should work on Equinox or Knopflerfish...
>
> Thanks for any input,
> > Rodrigo
> >
>
>
>
> --
> Cheers, Stuart
>
Re: Fragment Bundles with maven-bundle-plugin
Posted by Stuart McCulloch <st...@jayway.net>.
Hi Rodrigo,
On 26/09/2007, Rodrigo Madera <ro...@gmail.com> wrote:
>
> Hello,
>
> Does anyone have an example of how to create fragment bundles with
> maven-bundle-plugin?
>
> I have a bundle called Greeter-1.0.jar that needs some .properties files
> that will be read using Java standard ResourceBundles.
> I read that this can be accomplished by using fragment bundles to add the
> properties files into the classloader.
it should be just a matter of adding the Fragment-Host header using this
syntax:
Fragment-Host ::= bundle-description
bundle-description ::= symbolic-name (';' parameter ) *
for example:
Fragment-Host: com.greeter.text;version=1.0
maven resources (src/main/resources) should already be automatically
included
in the bundle - if not then you can use Include-Resource to explicitly add
missing
resources, or relocate resources as necessary.
note - afaik fragment bundles are not fully supported in the Felix
framework, but
the resulting bundle should work on Equinox or Knopflerfish...
Thanks for any input,
> Rodrigo
>
--
Cheers, Stuart