Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Equinox » [P2] Problem creating repository with .product when exporting for multiple platforms
[P2] Problem creating repository with .product when exporting for multiple platforms [message #117016] Wed, 03 September 2008 11:54 Go to next message
Thomas Schindl is currently offline Thomas SchindlFriend
Messages: 6651
Registered: July 2009
Senior Member
[Sent to multiple newsgroups because I don't know which component owns
the export feature]

Hi,

I'm not sure whether I'm doing something .product-Export from within
eclipse is not designed or there's a bug.

Let's start from the beginning:

I've setup a target with RCP-SDK, Delta-Pack, EMF, CDO, ... . Then I try
to export my .product for multiple platforms using the Wizard and Check
the "Generate metadata repository". Everything is fine until this point.

I get a content.xml and with filters for different platforms the only
problem is that filters for os-x tooling* are not added in the <unit
"at.bestsolution.soccer.app.product">

This is the original one:
-------------- >8 --------------
<unit id='at.bestsolution.soccer.app.product' version='1.0.0'>

<!-- obmitted to show the interesting things -->

<required namespace='org.eclipse.equinox.p2.iu'
name='toolingorg.eclipse.core.filesystem.macosx'
range='[1.0.0.v20080604-1400,1.0.0.v20080604-1400]'/>

<!-- ... -->

<required namespace='org.eclipse.equinox.p2.iu'
name='toolingorg.eclipse.swt.win32.win32.x86'
range='[3.4.0.v3448f,3.4.0.v3448f]'/>
-------------- 8< --------------

This makes troubles when trying to install with the p2 agent poping up
errors. If I correct these problems manually changing it to something
like this:
-------------- >8 --------------
<unit id='at.bestsolution.soccer.app.product' version='1.0.0'>

<!-- obmitted to show the interesting things -->
<required namespace='org.eclipse.equinox.p2.iu'
name='toolingorg.eclipse.core.filesystem.macosx'
range='[1.0.0.v20080604-1400,1.0.0.v20080604-1400]'>
<filter>
(&amp; (osgi.os=macosx) (|(osgi.arch=x86) (osgi.arch=ppc)))
</filter>
</required>

<!-- ... -->

<required namespace='org.eclipse.equinox.p2.iu'
name='toolingorg.eclipse.swt.win32.win32.x86'
range='[3.4.0.v3448f,3.4.0.v3448f]'>
<filter>
(&amp; (osgi.ws=win32) (osgi.os=win32) (osgi.arch=x86))
</filter>
</required>
-------------- 8< --------------

Is this now a bug in the metadata repository generator or am I expecting
too much from the whole repository?

Tom

--
B e s t S o l u t i o n . at
------------------------------------------------------------ --------
Tom Schindl JFace-Committer
------------------------------------------------------------ --------
Re: [P2] Problem creating repository with .product when exporting for multiple platforms [message #117040 is a reply to message #117016] Wed, 03 September 2008 13:47 Go to previous messageGo to next message
Thomas Schindl is currently offline Thomas SchindlFriend
Messages: 6651
Registered: July 2009
Senior Member
Ok. Some more information on this.

The plugins making problems are:
- org.eclipse.core.filesystem.*
- org.eclipse.ui.carbon.*
- org.eclipse.swt.*

But it works appropriately for (e.g.):
- org.eclipse.equinox.launcher.*


Comparing the Platform-Filter of the 2

org.eclipse.core.filesystem.macosx (NOT WORKING):
-------------------------------------------------
Eclipse-PlatformFilter: (& (osgi.ws=carbon) (osgi.os=macosx) (|(osgi.a
rch=x86)(osgi.arch=ppc)) )

org.eclipse.equinox.launcher.carbon.macosx (WORKING):
-----------------------------------------------------
Eclipse-PlatformFilter: (& (osgi.os=macosx) (|(osgi.arch=x86) (osgi.ar
ch=ppc)))


Another difference between those two is that:
---------------------------------------------
- org.eclipse.core.filesystem.macosx is packaged as a jar
- org.eclipse.equinox.launcher.carbon.macosx is a directory

Is it possible that the meta data generator has problems extracting
filter informations from bundles packaged as a jar?

Tom

Tom Schindl schrieb:
> [Sent to multiple newsgroups because I don't know which component owns
> the export feature]
>
> Hi,
>
> I'm not sure whether I'm doing something .product-Export from within
> eclipse is not designed or there's a bug.
>
> Let's start from the beginning:
>
> I've setup a target with RCP-SDK, Delta-Pack, EMF, CDO, ... . Then I try
> to export my .product for multiple platforms using the Wizard and Check
> the "Generate metadata repository". Everything is fine until this point.
>
> I get a content.xml and with filters for different platforms the only
> problem is that filters for os-x tooling* are not added in the <unit
> "at.bestsolution.soccer.app.product">
>
> This is the original one:
> -------------- >8 --------------
> <unit id='at.bestsolution.soccer.app.product' version='1.0.0'>
>
> <!-- obmitted to show the interesting things -->
>
> <required namespace='org.eclipse.equinox.p2.iu'
> name='toolingorg.eclipse.core.filesystem.macosx'
> range='[1.0.0.v20080604-1400,1.0.0.v20080604-1400]'/>
>
> <!-- ... -->
>
> <required namespace='org.eclipse.equinox.p2.iu'
> name='toolingorg.eclipse.swt.win32.win32.x86'
> range='[3.4.0.v3448f,3.4.0.v3448f]'/>
> -------------- 8< --------------
>
> This makes troubles when trying to install with the p2 agent poping up
> errors. If I correct these problems manually changing it to something
> like this:
> -------------- >8 --------------
> <unit id='at.bestsolution.soccer.app.product' version='1.0.0'>
>
> <!-- obmitted to show the interesting things -->
> <required namespace='org.eclipse.equinox.p2.iu'
> name='toolingorg.eclipse.core.filesystem.macosx'
> range='[1.0.0.v20080604-1400,1.0.0.v20080604-1400]'>
> <filter>
> (&amp; (osgi.os=macosx) (|(osgi.arch=x86) (osgi.arch=ppc)))
> </filter>
> </required>
>
> <!-- ... -->
>
> <required namespace='org.eclipse.equinox.p2.iu'
> name='toolingorg.eclipse.swt.win32.win32.x86'
> range='[3.4.0.v3448f,3.4.0.v3448f]'>
> <filter>
> (&amp; (osgi.ws=win32) (osgi.os=win32) (osgi.arch=x86))
> </filter>
> </required>
> -------------- 8< --------------
>
> Is this now a bug in the metadata repository generator or am I expecting
> too much from the whole repository?
>
> Tom
>


--
B e s t S o l u t i o n . at
------------------------------------------------------------ --------
Tom Schindl JFace-Committer
------------------------------------------------------------ --------
Re: [P2] Problem creating repository with .product when exporting for multiple platforms [message #117142 is a reply to message #117040] Fri, 05 September 2008 15:29 Go to previous messageGo to next message
Thomas Schindl is currently offline Thomas SchindlFriend
Messages: 6651
Registered: July 2009
Senior Member
So no one an idea?

Tom

Tom Schindl schrieb:
> Ok. Some more information on this.
>
> The plugins making problems are:
> - org.eclipse.core.filesystem.*
> - org.eclipse.ui.carbon.*
> - org.eclipse.swt.*
>
> But it works appropriately for (e.g.):
> - org.eclipse.equinox.launcher.*
>
>
> Comparing the Platform-Filter of the 2
>
> org.eclipse.core.filesystem.macosx (NOT WORKING):
> -------------------------------------------------
> Eclipse-PlatformFilter: (& (osgi.ws=carbon) (osgi.os=macosx) (|(osgi.a
> rch=x86)(osgi.arch=ppc)) )
>
> org.eclipse.equinox.launcher.carbon.macosx (WORKING):
> -----------------------------------------------------
> Eclipse-PlatformFilter: (& (osgi.os=macosx) (|(osgi.arch=x86) (osgi.ar
> ch=ppc)))
>
>
> Another difference between those two is that:
> ---------------------------------------------
> - org.eclipse.core.filesystem.macosx is packaged as a jar
> - org.eclipse.equinox.launcher.carbon.macosx is a directory
>
> Is it possible that the meta data generator has problems extracting
> filter informations from bundles packaged as a jar?
>
> Tom
>
> Tom Schindl schrieb:
>> [Sent to multiple newsgroups because I don't know which component owns
>> the export feature]
>>
>> Hi,
>>
>> I'm not sure whether I'm doing something .product-Export from within
>> eclipse is not designed or there's a bug.
>>
>> Let's start from the beginning:
>>
>> I've setup a target with RCP-SDK, Delta-Pack, EMF, CDO, ... . Then I try
>> to export my .product for multiple platforms using the Wizard and Check
>> the "Generate metadata repository". Everything is fine until this point.
>>
>> I get a content.xml and with filters for different platforms the only
>> problem is that filters for os-x tooling* are not added in the <unit
>> "at.bestsolution.soccer.app.product">
>>
>> This is the original one:
>> -------------- >8 --------------
>> <unit id='at.bestsolution.soccer.app.product' version='1.0.0'>
>>
>> <!-- obmitted to show the interesting things -->
>>
>> <required namespace='org.eclipse.equinox.p2.iu'
>> name='toolingorg.eclipse.core.filesystem.macosx'
>> range='[1.0.0.v20080604-1400,1.0.0.v20080604-1400]'/>
>>
>> <!-- ... -->
>>
>> <required namespace='org.eclipse.equinox.p2.iu'
>> name='toolingorg.eclipse.swt.win32.win32.x86'
>> range='[3.4.0.v3448f,3.4.0.v3448f]'/>
>> -------------- 8< --------------
>>
>> This makes troubles when trying to install with the p2 agent poping up
>> errors. If I correct these problems manually changing it to something
>> like this:
>> -------------- >8 --------------
>> <unit id='at.bestsolution.soccer.app.product' version='1.0.0'>
>>
>> <!-- obmitted to show the interesting things -->
>> <required namespace='org.eclipse.equinox.p2.iu'
>> name='toolingorg.eclipse.core.filesystem.macosx'
>> range='[1.0.0.v20080604-1400,1.0.0.v20080604-1400]'>
>> <filter>
>> (&amp; (osgi.os=macosx) (|(osgi.arch=x86) (osgi.arch=ppc)))
>> </filter>
>> </required>
>>
>> <!-- ... -->
>>
>> <required namespace='org.eclipse.equinox.p2.iu'
>> name='toolingorg.eclipse.swt.win32.win32.x86'
>> range='[3.4.0.v3448f,3.4.0.v3448f]'>
>> <filter>
>> (&amp; (osgi.ws=win32) (osgi.os=win32) (osgi.arch=x86))
>> </filter>
>> </required>
>> -------------- 8< --------------
>>
>> Is this now a bug in the metadata repository generator or am I expecting
>> too much from the whole repository?
>>
>> Tom
>>
>
>


--
B e s t S o l u t i o n . at
------------------------------------------------------------ --------
Tom Schindl JFace-Committer
------------------------------------------------------------ --------
Re: [P2] Problem creating repository with .product when exporting for multiple platforms [message #117165 is a reply to message #117142] Fri, 05 September 2008 20:36 Go to previous messageGo to next message
Andrew Niefer is currently offline Andrew NieferFriend
Messages: 990
Registered: July 2009
Senior Member
There is a bug here. A workaround would be to export to an archive
instead of a folder.

See https://bugs.eclipse.org/bugs/show_bug.cgi?id=246430 for details.

-Andrew

Tom Schindl wrote:
> So no one an idea?
>
> Tom
>
> Tom Schindl schrieb:
>> Ok. Some more information on this.
>>
>> The plugins making problems are:
>> - org.eclipse.core.filesystem.*
>> - org.eclipse.ui.carbon.*
>> - org.eclipse.swt.*
>>
>> But it works appropriately for (e.g.):
>> - org.eclipse.equinox.launcher.*
>>
>>
>> Comparing the Platform-Filter of the 2
>>
>> org.eclipse.core.filesystem.macosx (NOT WORKING):
>> -------------------------------------------------
>> Eclipse-PlatformFilter: (& (osgi.ws=carbon) (osgi.os=macosx) (|(osgi.a
>> rch=x86)(osgi.arch=ppc)) )
>>
>> org.eclipse.equinox.launcher.carbon.macosx (WORKING):
>> -----------------------------------------------------
>> Eclipse-PlatformFilter: (& (osgi.os=macosx) (|(osgi.arch=x86) (osgi.ar
>> ch=ppc)))
>>
>>
>> Another difference between those two is that:
>> ---------------------------------------------
>> - org.eclipse.core.filesystem.macosx is packaged as a jar
>> - org.eclipse.equinox.launcher.carbon.macosx is a directory
>>
>> Is it possible that the meta data generator has problems extracting
>> filter informations from bundles packaged as a jar?
>>
>> Tom
>>
>> Tom Schindl schrieb:
>>> [Sent to multiple newsgroups because I don't know which component owns
>>> the export feature]
>>>
>>> Hi,
>>>
>>> I'm not sure whether I'm doing something .product-Export from within
>>> eclipse is not designed or there's a bug.
>>>
>>> Let's start from the beginning:
>>>
>>> I've setup a target with RCP-SDK, Delta-Pack, EMF, CDO, ... . Then I try
>>> to export my .product for multiple platforms using the Wizard and Check
>>> the "Generate metadata repository". Everything is fine until this point.
>>>
>>> I get a content.xml and with filters for different platforms the only
>>> problem is that filters for os-x tooling* are not added in the <unit
>>> "at.bestsolution.soccer.app.product">
>>>
>>> This is the original one:
>>> -------------- >8 --------------
>>> <unit id='at.bestsolution.soccer.app.product' version='1.0.0'>
>>>
>>> <!-- obmitted to show the interesting things -->
>>>
>>> <required namespace='org.eclipse.equinox.p2.iu'
>>> name='toolingorg.eclipse.core.filesystem.macosx'
>>> range='[1.0.0.v20080604-1400,1.0.0.v20080604-1400]'/>
>>>
>>> <!-- ... -->
>>>
>>> <required namespace='org.eclipse.equinox.p2.iu'
>>> name='toolingorg.eclipse.swt.win32.win32.x86'
>>> range='[3.4.0.v3448f,3.4.0.v3448f]'/>
>>> -------------- 8< --------------
>>>
>>> This makes troubles when trying to install with the p2 agent poping up
>>> errors. If I correct these problems manually changing it to something
>>> like this:
>>> -------------- >8 --------------
>>> <unit id='at.bestsolution.soccer.app.product' version='1.0.0'>
>>>
>>> <!-- obmitted to show the interesting things -->
>>> <required namespace='org.eclipse.equinox.p2.iu'
>>> name='toolingorg.eclipse.core.filesystem.macosx'
>>> range='[1.0.0.v20080604-1400,1.0.0.v20080604-1400]'>
>>> <filter>
>>> (&amp; (osgi.os=macosx) (|(osgi.arch=x86) (osgi.arch=ppc)))
>>> </filter>
>>> </required>
>>>
>>> <!-- ... -->
>>>
>>> <required namespace='org.eclipse.equinox.p2.iu'
>>> name='toolingorg.eclipse.swt.win32.win32.x86'
>>> range='[3.4.0.v3448f,3.4.0.v3448f]'>
>>> <filter>
>>> (&amp; (osgi.ws=win32) (osgi.os=win32) (osgi.arch=x86))
>>> </filter>
>>> </required>
>>> -------------- 8< --------------
>>>
>>> Is this now a bug in the metadata repository generator or am I expecting
>>> too much from the whole repository?
>>>
>>> Tom
>>>
>>
>
>
Re: [P2] Problem creating repository with .product when exporting for multiple platforms [message #117191 is a reply to message #117165] Fri, 05 September 2008 22:47 Go to previous message
Thomas Schindl is currently offline Thomas SchindlFriend
Messages: 6651
Registered: July 2009
Senior Member
Hi Andrew,

Thanks for the clarification and I don't missed anything.

Tom

Andrew Niefer schrieb:
> There is a bug here. A workaround would be to export to an archive
> instead of a folder.
>
> See https://bugs.eclipse.org/bugs/show_bug.cgi?id=246430 for details.
>
> -Andrew
>
> Tom Schindl wrote:
>> So no one an idea?
>>
>> Tom
>>
>> Tom Schindl schrieb:
>>> Ok. Some more information on this.
>>>
>>> The plugins making problems are:
>>> - org.eclipse.core.filesystem.*
>>> - org.eclipse.ui.carbon.*
>>> - org.eclipse.swt.*
>>>
>>> But it works appropriately for (e.g.):
>>> - org.eclipse.equinox.launcher.*
>>>
>>>
>>> Comparing the Platform-Filter of the 2
>>>
>>> org.eclipse.core.filesystem.macosx (NOT WORKING):
>>> -------------------------------------------------
>>> Eclipse-PlatformFilter: (& (osgi.ws=carbon) (osgi.os=macosx) (|(osgi.a
>>> rch=x86)(osgi.arch=ppc)) )
>>>
>>> org.eclipse.equinox.launcher.carbon.macosx (WORKING):
>>> -----------------------------------------------------
>>> Eclipse-PlatformFilter: (& (osgi.os=macosx) (|(osgi.arch=x86) (osgi.ar
>>> ch=ppc)))
>>>
>>>
>>> Another difference between those two is that:
>>> ---------------------------------------------
>>> - org.eclipse.core.filesystem.macosx is packaged as a jar
>>> - org.eclipse.equinox.launcher.carbon.macosx is a directory
>>>
>>> Is it possible that the meta data generator has problems extracting
>>> filter informations from bundles packaged as a jar?
>>>
>>> Tom
>>>
>>> Tom Schindl schrieb:
>>>> [Sent to multiple newsgroups because I don't know which component owns
>>>> the export feature]
>>>>
>>>> Hi,
>>>>
>>>> I'm not sure whether I'm doing something .product-Export from within
>>>> eclipse is not designed or there's a bug.
>>>>
>>>> Let's start from the beginning:
>>>>
>>>> I've setup a target with RCP-SDK, Delta-Pack, EMF, CDO, ... . Then I
>>>> try
>>>> to export my .product for multiple platforms using the Wizard and Check
>>>> the "Generate metadata repository". Everything is fine until this
>>>> point.
>>>>
>>>> I get a content.xml and with filters for different platforms the only
>>>> problem is that filters for os-x tooling* are not added in the <unit
>>>> "at.bestsolution.soccer.app.product">
>>>>
>>>> This is the original one:
>>>> -------------- >8 --------------
>>>> <unit id='at.bestsolution.soccer.app.product' version='1.0.0'>
>>>>
>>>> <!-- obmitted to show the interesting things -->
>>>>
>>>> <required namespace='org.eclipse.equinox.p2.iu'
>>>> name='toolingorg.eclipse.core.filesystem.macosx'
>>>> range='[1.0.0.v20080604-1400,1.0.0.v20080604-1400]'/>
>>>>
>>>> <!-- ... -->
>>>>
>>>> <required namespace='org.eclipse.equinox.p2.iu'
>>>> name='toolingorg.eclipse.swt.win32.win32.x86'
>>>> range='[3.4.0.v3448f,3.4.0.v3448f]'/>
>>>> -------------- 8< --------------
>>>>
>>>> This makes troubles when trying to install with the p2 agent poping up
>>>> errors. If I correct these problems manually changing it to something
>>>> like this:
>>>> -------------- >8 --------------
>>>> <unit id='at.bestsolution.soccer.app.product' version='1.0.0'>
>>>>
>>>> <!-- obmitted to show the interesting things -->
>>>> <required namespace='org.eclipse.equinox.p2.iu'
>>>> name='toolingorg.eclipse.core.filesystem.macosx'
>>>> range='[1.0.0.v20080604-1400,1.0.0.v20080604-1400]'>
>>>> <filter>
>>>> (&amp; (osgi.os=macosx) (|(osgi.arch=x86) (osgi.arch=ppc)))
>>>> </filter>
>>>> </required>
>>>>
>>>> <!-- ... -->
>>>>
>>>> <required namespace='org.eclipse.equinox.p2.iu'
>>>> name='toolingorg.eclipse.swt.win32.win32.x86'
>>>> range='[3.4.0.v3448f,3.4.0.v3448f]'>
>>>> <filter>
>>>> (&amp; (osgi.ws=win32) (osgi.os=win32) (osgi.arch=x86))
>>>> </filter>
>>>> </required>
>>>> -------------- 8< --------------
>>>>
>>>> Is this now a bug in the metadata repository generator or am I
>>>> expecting
>>>> too much from the whole repository?
>>>>
>>>> Tom
>>>>
>>>
>>
>>


--
B e s t S o l u t i o n . at
------------------------------------------------------------ --------
Tom Schindl JFace-Committer
------------------------------------------------------------ --------
Previous Topic:Headless build for RCP product with p2 and bug 237662
Next Topic:Equinox Aspects - BundleException at Shutdown
Goto Forum:
  


Current Time: Thu Apr 25 15:32:07 GMT 2024

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

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

Back to the top