Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Rich Client Platform (RCP) » RCP product export using headless PDE build does not copy Eclipse plugins
RCP product export using headless PDE build does not copy Eclipse plugins [message #452934] Wed, 19 July 2006 08:50 Go to next message
Thomas Spiessens is currently offline Thomas SpiessensFriend
Messages: 153
Registered: July 2009
Senior Member
Hi everyone,
I have an Eclipse based product that contains a feature which bundles
all of my plugins. I have managed to create a PDE build configuration
that exports the product correctly in a ZIP file following the scenario
described in the book "Eclipse Rich Client Platform" by McAffer and
Lemieux. The ZIP file contains every plugin that has been added to the
feature, but it does not contain the Eclipse plugins that it needs in
order to start the application (e.g. org.eclipse.core.*). The base
against which it is being built contains those plugins and I have also
added those plugins as dependencies in the feature by using the
"compute" button in the Dependencies page of the feature form editor.
Anyone have an idea why those Eclipse plugins are still not copied into
my exported product ?

I am using Eclipse 3.2 with PDE plugin
org.eclipse.pde.build_3.2.0.v20060603. This Eclipse installation is also
used as the base.

Kind regards,
Thomas.
Re: RCP product export using headless PDE build does not copy Eclipse plugins [message #452935 is a reply to message #452934] Wed, 19 July 2006 09:04 Go to previous messageGo to next message
Ilya Shinkarenko is currently offline Ilya ShinkarenkoFriend
Messages: 56
Registered: July 2009
Member
your product configuration must contain (at least) org.eclipse.rcp
feature as well



Thomas Spiessens wrote:
> Hi everyone,
> I have an Eclipse based product that contains a feature which bundles
> all of my plugins. I have managed to create a PDE build configuration
> that exports the product correctly in a ZIP file following the scenario
> described in the book "Eclipse Rich Client Platform" by McAffer and
> Lemieux. The ZIP file contains every plugin that has been added to the
> feature, but it does not contain the Eclipse plugins that it needs in
> order to start the application (e.g. org.eclipse.core.*). The base
> against which it is being built contains those plugins and I have also
> added those plugins as dependencies in the feature by using the
> "compute" button in the Dependencies page of the feature form editor.
> Anyone have an idea why those Eclipse plugins are still not copied into
> my exported product ?
>
> I am using Eclipse 3.2 with PDE plugin
> org.eclipse.pde.build_3.2.0.v20060603. This Eclipse installation is also
> used as the base.
>
> Kind regards,
> Thomas.


Ilya Shinkarenko
--
www.imedic.de
www.rcp-training.com
Re: RCP product export using headless PDE build does not copy Eclipse plugins [message #452971 is a reply to message #452935] Wed, 19 July 2006 11:42 Go to previous messageGo to next message
Thomas Spiessens is currently offline Thomas SpiessensFriend
Messages: 153
Registered: July 2009
Senior Member
When I add org.eclipse.rcp feature, it does indeed include a number of
Eclipse plugins in the export. The Eclipse plugins I need however have
already been added to the dependency lists of my own plugins. Is there a
way to make sure those Eclipse plugins are automatically added during
the build of my own plugins ?

When exporting a product manually (right-clicking on my project that
contains the .product file and selecting "Export..."-> Eclipse product),
it does include those Eclipse plugins in the resulting export so I
assume I might have missed setting an option or so in my headless PDE
build. Any ideas ?

Thanks,
Thomas.

Ilya Shinkarenko wrote:
> your product configuration must contain (at least) org.eclipse.rcp
> feature as well
>
>
>
> Thomas Spiessens wrote:
>> Hi everyone,
>> I have an Eclipse based product that contains a feature which bundles
>> all of my plugins. I have managed to create a PDE build configuration
>> that exports the product correctly in a ZIP file following the
>> scenario described in the book "Eclipse Rich Client Platform" by
>> McAffer and Lemieux. The ZIP file contains every plugin that has been
>> added to the feature, but it does not contain the Eclipse plugins that
>> it needs in order to start the application (e.g. org.eclipse.core.*).
>> The base against which it is being built contains those plugins and I
>> have also added those plugins as dependencies in the feature by using
>> the "compute" button in the Dependencies page of the feature form
>> editor. Anyone have an idea why those Eclipse plugins are still not
>> copied into my exported product ?
>>
>> I am using Eclipse 3.2 with PDE plugin
>> org.eclipse.pde.build_3.2.0.v20060603. This Eclipse installation is
>> also used as the base.
>>
>> Kind regards,
>> Thomas.
>
>
> Ilya Shinkarenko
Re: RCP product export using headless PDE build does not copy Eclipse plugins [message #452989 is a reply to message #452971] Wed, 19 July 2006 14:08 Go to previous message
Thomas Spiessens is currently offline Thomas SpiessensFriend
Messages: 153
Registered: July 2009
Senior Member
I have found a "solution" to my problem.

Outline of my Eclipse projects:

* a couple of plugin projects (obviously with dependencies on other
Eclipse plugins)
* 1 Eclipse feature project (featureA) containing all plugins mentioned
above in the plugins tab of the feature.xml editor
* 1 Eclipse feature project (featureB) containing the rootfiles
(eclipse.exe, startup.jar, ...) for the product to be exported. It has
featureA and org.eclipse.rpc as "Included features".
* A regular Java project containing the build.properties,
allElements.xml and customTargets.xml file for the headless PDE build.
It has been configured to start the build at featureB.
* Using Eclipse 3.2 with PDE plugin org.eclipse.pde.build_3.2.0.v20060603.


Description of the problem and solution:

In the featureA project I have let Eclipse calculate the dependencies
via the "compute" button on the Dependencies page in the feature.xml
editor. When the compute has finished, the page contains a number of
extra plugins.

When I use this setup for a headless PDE build, it get the problem
described below (necessary plugins are not copied resulting in an
inability to start the product).

However, if I manually add all the plugins, that have previously been
calculated automatically, to the Plugins page of the feature.xml editor
of the featureA project, the build succeeds without a problem.

So it seems that the plugins in the Dependency page or not taken into
account during headless PDE build, but the ones in the Plugins page are.
Is this the normal way of working or is this a bug ?


Thanks,
Thomas.


Thomas Spiessens wrote:
> When I add org.eclipse.rcp feature, it does indeed include a number of
> Eclipse plugins in the export. The Eclipse plugins I need however have
> already been added to the dependency lists of my own plugins. Is there a
> way to make sure those Eclipse plugins are automatically added during
> the build of my own plugins ?
>
> When exporting a product manually (right-clicking on my project that
> contains the .product file and selecting "Export..."-> Eclipse product),
> it does include those Eclipse plugins in the resulting export so I
> assume I might have missed setting an option or so in my headless PDE
> build. Any ideas ?
>
> Thanks,
> Thomas.
>
> Ilya Shinkarenko wrote:
>> your product configuration must contain (at least) org.eclipse.rcp
>> feature as well
>>
>>
>>
>> Thomas Spiessens wrote:
>>> Hi everyone,
>>> I have an Eclipse based product that contains a feature which bundles
>>> all of my plugins. I have managed to create a PDE build configuration
>>> that exports the product correctly in a ZIP file following the
>>> scenario described in the book "Eclipse Rich Client Platform" by
>>> McAffer and Lemieux. The ZIP file contains every plugin that has been
>>> added to the feature, but it does not contain the Eclipse plugins
>>> that it needs in order to start the application (e.g.
>>> org.eclipse.core.*). The base against which it is being built
>>> contains those plugins and I have also added those plugins as
>>> dependencies in the feature by using the "compute" button in the
>>> Dependencies page of the feature form editor. Anyone have an idea why
>>> those Eclipse plugins are still not copied into my exported product ?
>>>
>>> I am using Eclipse 3.2 with PDE plugin
>>> org.eclipse.pde.build_3.2.0.v20060603. This Eclipse installation is
>>> also used as the base.
>>>
>>> Kind regards,
>>> Thomas.
>>
>>
>> Ilya Shinkarenko
Previous Topic:Close views
Next Topic:registry editor
Goto Forum:
  


Current Time: Thu Oct 03 16:56:10 GMT 2024

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

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

Back to the top