Marcel Offermans wrote:
On Oct 9, 2007, at 12:29 , Felix Meschberger wrote:
One single problem remains, when having to compile for older platforms:
Even though the class file comes out as compatible, the class may refer
to classes/methods not available on the older platform. But this is for
this other thread discussing about the possibilities to compile using
one of the OSGi provided packages instead of the default rt.jar.
Exactly, we need to be able to specify execution environments as targets
for the Java compiler. In fact, we might even want to specifically be
able to target different execution environments simultaneously (but
that's another issue). [...]
I really think that is important to force maven to build Felix core
artifacts using only a specific execution environment.
If I recall correctly we've already discussed it in some thread and we
decided to use the org.osgi.foundation artifact as bootclasspath for the
Java compiler. As far as I know none has tested it out.
My concern is on using the org.osgi.foundation artifact is that we
should split the org.osgi.foundation into two artifact one for each
execution environment defined by OSGi Allience in order to avoid the
mixing among JavaSE and JavaME execution environment.
Also I would like to ask to the Eclipse expert how does Eclipse
implements Execution Environment, because in the properties of a Java
Project it's possible to define the Execution Environment both for
execution and compilation.
Greetings, Marcel