You could create a BundleActivator that sets the property. I guess you could use lazy start policy so any class load will trigger the activator.
Kind regards,
Peter Kriens
> On 14 aug. 2016, at 19:37, [email protected] wrote:
>
> Hello.
>
> I'm about to make an attempt at producing an OSGi compatible bundle of
> the JOGL library:
>
> http://jogamp.org/jogl/www/
>
> Unfortunately, by default the library does classloader tricks to locate
> native libraries:
>
> https://jogamp.org/jogl/doc/userguide/#automatednativelibraryloading
>
> Thankfully, this can be turned off by setting the system property
> jogamp.gluegen.UseTempJarCache to "false".
>
> If this property is not set, the package will simply not work as an
> OSGi bundle at all, so it's not something that anyone will need to
> configure. It's also of no use whatsoever to anyone outside of the JOGL
> bundle, and certainly not something external code should even be
> observing, let alone depending on.
>
> Is there a way that I can embed this property into the bundle so that
> it's guaranteed to be set when the bundle is started?
>
> M
> _______________________________________________
> OSGi Developer Mail List
> [email protected]
> https://mail.osgi.org/mailman/listinfo/osgi-dev
smime.p7s
Description: S/MIME cryptographic signature
_______________________________________________ OSGi Developer Mail List [email protected] https://mail.osgi.org/mailman/listinfo/osgi-dev
