Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [epp-dev] Missing or wrong osgi.requiredJavaVersion

Hi Eike,

thanks for the reminder, I think we need to revisit this setting again. We've had a longer discussion during the Luna development cycle, and it wasn't possible to use the same requirements for all packages, but reasoning seems to have changed this year with Mars.

I've opened bug 464771 [1] for Mars.

AFAIK, the Eclipse Platform never required a certain Java level with osgi.requiredJavaVersion, and that is probably the correct decision because their deliverables are more targeted at the developer (and not at the end-use) who can be expected to have a good understanding of the internals.

Thanks,
Markus

On 16 April 2015 at 08:48, Eike Stepper <stepper@xxxxxxxxxx> wrote:
Hi,

It seems that the Platform has started to require Java 1.7 in some of the core bundles (e.g. core.contenttype), which implies that all Mars packages should ship with p2 touchpoint instructions that add -Dosgi.requiredJavaVersion=1.7 to the eclipse.ini files. But that doesn't seem to be the case. If I'm not mistaken the following packages still specify their products with a pre-1.7 Java requirement:

    - modeling
    - reporting
    - jee
    - java
    - dsl

BTW., the Platform itself doesn't seem to specify respective touchpoint instructions at all:

    <unit id='toolingorg.eclipse.sdk.ide.ini.win32.win32.x86_64' version='4.5.0.I20150320-0800' singleton='false'>
      <provides size='2'>
        <provided namespace='org.eclipse.equinox.p2.iu' name='toolingorg.eclipse.sdk.ide.ini.win32.win32.x86_64' version='4.5.0.I20150320-0800'/>
        <provided namespace='toolingorg.eclipse.sdk.ide' name='org.eclipse.sdk.ide.ini' version='4.5.0.I20150320-0800'/>
      </provides>
      <filter>
        (&amp;(osgi.arch=x86_64)(osgi.os=win32)(osgi.ws=win32))
      </filter>
      <touchpoint id='org.eclipse.equinox.p2.osgi' version='1.0.0'/>
      <touchpointData size='1'>
        <instructions size='2'>
          <instruction key='unconfigure'>
removeJvmArg(jvmArg:-Xms256m);removeJvmArg(jvmArg:-Xmx1024m);removeProgramArg(programArg:-showsplash);removeProgramArg(programArg:org.eclipse.platform);removeProgramArg(programArg:--launcher.XXMaxPermSize);removeProgramArg(programArg:256m);removeProgramArg(programArg:--launcher.defaultAction);removeProgramArg(programArg:openFile);removeProgramArg(programArg:--launcher.appendVmargs);
          </instruction>
          <instruction key='configure'>
addJvmArg(jvmArg:-Xms256m);addJvmArg(jvmArg:-Xmx1024m);addProgramArg(programArg:-showsplash);addProgramArg(programArg:org.eclipse.platform);addProgramArg(programArg:--launcher.XXMaxPermSize);addProgramArg(programArg:256m);addProgramArg(programArg:--launcher.defaultAction);addProgramArg(programArg:openFile);addProgramArg(programArg:--launcher.appendVmargs);
          </instruction>
        </instructions>
      </touchpointData>
    </unit>

Cheers
/Eike

----
http://www.esc-net.de
http://thegordian.blogspot.com
http://twitter.com/eikestepper


_______________________________________________
epp-dev mailing list
epp-dev@xxxxxxxxxxx
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://dev.eclipse.org/mailman/listinfo/epp-dev



Back to the top