[P2] Problem creating repository with .product when exporting for multiple platforms [message #331353] |
Wed, 03 September 2008 11:54 |
Thomas Schindl 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>
(& (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>
(& (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 #331357 is a reply to message #331353] |
Wed, 03 September 2008 13:47 |
Thomas Schindl 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>
> (& (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>
> (& (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 #331430 is a reply to message #331357] |
Fri, 05 September 2008 15:29 |
Thomas Schindl 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>
>> (& (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>
>> (& (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 #331434 is a reply to message #331430] |
Fri, 05 September 2008 20:36 |
Andrew Niefer 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>
>>> (& (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>
>>> (& (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 #331435 is a reply to message #331434] |
Fri, 05 September 2008 22:47 |
Thomas Schindl 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>
>>>> (& (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>
>>>> (& (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
------------------------------------------------------------ --------
|
|
|
Powered by
FUDForum. Page generated in 0.03826 seconds