It seems the cache in BundleResources is the problem. I've created FELIX-4214 to track/fix this
Carsten 2013/8/30 Carsten Ziegeler <[email protected]> > Hi, > > I'm experiencing sporadic problems with the metatype service > implementation. In my case I'm using the scr plugin to generate the > metatype information and this generates an xml for each metadata with a > localization attribute set to the base of a custom properties file > containing i18n translations, so something like > localization=OSGI-INF/metatype/myservice > And I have a properties file at OSGI-INF/metatype/myservice.properties > > In most cases, it seems this properties file is not found/read - however, > after N updates of my bundle containing this, it starts to work and the > properties file is picked up. Restarting the framework makes it fail again, > until another couple of bundle updates. > If the default file OSGI-INF/metatype/metatype is specified in the > localization field, this file (metatype.properties) is always picked up. > > I tried both, released version 1.0.6 and latest trunk. > > Maybe this is some strange ordering bug somewhere? I haven't really > debugged into this, but at first glance, it seems if it fails it's never > looking for the OSGI-INF/metatype/myservice.properties entry in the bundle; > when it works its obviously doing that. > > Regards > Carsten > > -- > Carsten Ziegeler > [email protected] > -- Carsten Ziegeler [email protected]
