Hi Rodrigo,

On 26/09/2007, Rodrigo Madera <[EMAIL PROTECTED]> 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

Reply via email to