Twitter github

%#@*ing JVMs and Bundles

In case people are curious, Equinox is pretty smart (like that Tom Watson character) and has the ability to restrict a bundle to load via the Eclipse-PlatformFilter manifest attribute (btw, this functionality would be nice if it was standardized, any OSGi guys listening?). A long time ago, this was limited to OSGi specific properties, just recently Equinox allows for arbitrary and system properties. Now you can do something like this if your bundle only loved VMs from IBM (and by loved, I mean only worked on)

Eclipse-PlatformFilter: (java.vm.vendor=IBM Corporation)

  • Bob Balfe

    Is there a way to do negative logic? Like:

    Eclipse-PlatformFilter: (java.vm.vendor!=SUN Corporation)

  • Bob Balfe

    Is there a way to do negative logic? Like: Eclipse-PlatformFilter: (java.vm.vendor!=SUN Corporation)

  • BJ Hargrave

    Assuming it is using LDAP filter syntax, the answer is yes.

    (!(java.vm.vendor=Sun))

  • BJ Hargrave

    Assuming it is using LDAP filter syntax, the answer is yes.(!(java.vm.vendor=Sun))

  • Chris Aniszczyk (zx)

    I think Bob was trying to be funny BJ 🙂

    btw, is anything planned for post R4.1 for Eclipse-PlatformFilter type functionality in the spec?

  • Chris Aniszczyk (zx)

    I think Bob was trying to be funny BJ :)btw, is anything planned for post R4.1 for Eclipse-PlatformFilter type functionality in the spec?