[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [p2-dev] Excluding based on execution environment


Hi Thomas,

This isn't currently possible. p2 does have a concept of the EE which is contained in a special IU called a.jre. However, it is currently hard-coded to be a Java 7 JRE. This is a tricky area because the JRE actually lives outside of the profile, and a user can easily switch JRE's at any time when using the same profile. The closest bug I could find that tracks this problem is:

https://bugs.eclipse.org/bugs/show_bug.cgi?id=219964

Note I believe those errors are only logged by the framework when in debug mode (-debug argument, or -Dosgi.debug=true).

John




Thomas Hallgren <thomas@xxxxxxx>
Sent by: p2-dev-bounces@xxxxxxxxxxx

06/16/2009 03:58 AM

Please respond to
P2 developer discussions <p2-dev@xxxxxxxxxxx>

To
P2 developer discussions <p2-dev@xxxxxxxxxxx>
cc
Subject
[p2-dev] Excluding based on execution environment





Hi,
I have a case where I'd like to exclude a bundle from the runtime based
on its execution environment. Apparently, there is no way of doing that.
The bundle is installed by P2 regardless of EE and OSGi will make an
attempt (and fail) to start it and thus print errors in the .log file.
Has anyone had similar problems?

Regards,
Thomas Hallgren
_______________________________________________
p2-dev mailing list
p2-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/p2-dev