[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:


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


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>

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

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?

Thomas Hallgren
p2-dev mailing list