Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Equinox » Is os.version>=10.7 legal in osgi platform filter? (repost)
Is os.version>=10.7 legal in osgi platform filter? (repost) [message #772278] Thu, 29 December 2011 12:05 Go to next message
h1055071 is currently offline h1055071Friend
Messages: 335
Registered: July 2009
Senior Member
(Sorry for cross-posting but no replies on the Platform forum, so it's worth a shot here...)

I have a plug-in fragment that should only run on Mac OS X Lion version 10.7 or greater.

I have set the platform filter in the manifest as follows:

Eclipse-PlatformFilter: (&(osgi.ws=cocoa)(os.version>=10.7))

This certainly seems to work when launching on different platforms and OS versions. However, in the Launch configuration setup dialog when I click "Validate Plug-ins" on the "Plug-ins" tab there is a reported error:

The following problems were detected:
Platform filter did not match: (&(osgi.ws=cocoa)(os.version>=10.7))

I am running it on a Mac with the correct version. The offending part seems to be "os.version>=10.7". And yet in practice this works.

Is this the correct way to specify a minimum OS version for a filter?

Thanks in advance.
Re: Is os.version>=10.7 legal in osgi platform filter? (repost) [message #772371 is a reply to message #772278] Thu, 29 December 2011 16:14 Go to previous messageGo to next message
Gunnar Wagenknecht is currently offline Gunnar WagenknechtFriend
Messages: 486
Registered: July 2009
Location: San Francisco ✈ Germany
Senior Member

Am 29.12.2011 13:05, schrieb Phil Beauvoir:
> The following problems were detected:
> Platform filter did not match: (&(osgi.ws=cocoa)(os.version>=10.7))
>
> I am running it on a Mac with the correct version. The offending part seems to be "os.version>=10.7". And yet in practice this works.

When you say "in practics it works" do you mean the launched Equinox
framework instance? AFAIK the PDE launch dialog uses a different
implementation to verify the filter. I might be buggy. Can you open a
bug against PDE and report the incorrectly detected filter?

-Gunnar

--
Gunnar Wagenknecht
gunnar@wagenknecht.org
http://wagenknecht.org/
Re: Is os.version>=10.7 legal in osgi platform filter? (repost) [message #772389 is a reply to message #772371] Thu, 29 December 2011 16:53 Go to previous messageGo to next message
h1055071 is currently offline h1055071Friend
Messages: 335
Registered: July 2009
Senior Member
Gunnar,

thanks for the reply. I'll clarify - the application is an RCP application and the fragment is for Mac only, versions >= 10.7 (i.e. minimum is Mac OS X Lion). The fragment certainly gets instantiated only under this condition, so the line "os.version>=10.7" certainly works. My concern is within Eclipse itself, when I am developing, my Launch configuration complains about it being invalid. So my questions are:

1. Is "os.version>=10.7" a valid statement? (Seems to be OK)
2. If it is valid, then maybe it's a bug in Eclipse in the Launch Configuration dialog, and I'll file a bug.

Regards,

Phil
Re: Is os.version>=10.7 legal in osgi platform filter? (repost) [message #772644 is a reply to message #772389] Fri, 30 December 2011 09:19 Go to previous messageGo to next message
Gunnar Wagenknecht is currently offline Gunnar WagenknechtFriend
Messages: 486
Registered: July 2009
Location: San Francisco ✈ Germany
Senior Member

Am 29.12.2011 17:53, schrieb Phil Beauvoir:
> 1. Is "os.version>=10.7" a valid statement? (Seems to be OK)

Yes.

> 2. If it is valid, then maybe it's a bug in Eclipse in the Launch Configuration dialog, and I'll file a bug.

Likely. Please file a bug against PDE UI.

Thanks,
Gunnar


--
Gunnar Wagenknecht
gunnar@wagenknecht.org
http://wagenknecht.org/
Re: Is os.version>=10.7 legal in osgi platform filter? (repost) [message #772670 is a reply to message #772644] Fri, 30 December 2011 10:33 Go to previous message
h1055071 is currently offline h1055071Friend
Messages: 335
Registered: July 2009
Senior Member
https://bugs.eclipse.org/bugs/show_bug.cgi?id=367649
Previous Topic:P2: Headless update: Multiple P2 repos
Next Topic:Reading only the last modification timestamp of an updatesite
Goto Forum:
  


Current Time: Fri Apr 19 00:06:38 GMT 2024

Powered by FUDForum. Page generated in 0.01748 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top