Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Rich Client Platform (RCP) » Feature-based product build enabling p2
Feature-based product build enabling p2 [message #504564] Mon, 21 December 2009 14:34 Go to next message
Mickael Istria is currently offline Mickael Istria
Messages: 755
Registered: July 2009
Location: Grenoble, France
Senior Member
Hi all,

We are trying to leverage p2 in our application, and I am currently working on adapting the build to get it working with p2.

All properties (such as p2.gathering and so on) seem to be correctly set in build.properties, but I get a strange error message during build:

[java] assemble.org.eclipse.pde.build.container.feature.win32.win32 .x86:
[java]
[java] main:
[java]
[java] runDirector:
[java]
[java] runDirector:
[java] [java] Java Result: 13
[java] [echo] This application is deprecated. Please use the org.eclipse.equinox.p2.director application.
[java] [echo] Installing org.bonitasoft.studio.product 5.0.0.20091221-1512.
[java] [echo] Installation failed.
[java] [echo] Application failed, log file location: /home/ic/install/workspace/hudson/hudson_home/jobs/studio-bu ild/workspace/org.bonitasoft.studio-platform/configuration/1 261405322898.log
[java] [echo] !SESSION 2009-12-21 15:22:02.650 -----------------------------------------------
[java] [echo] eclipse.buildId=M20090917-0800
[java] [echo] java.version=1.5.0_19
[java] [echo] java.vendor=Sun Microsystems Inc.
[java] [echo] BootLoader constants: OS=linux, ARCH=x86, WS=gtk, NL=en_US
[java] [echo] Framework arguments: -application org.eclipse.equinox.p2.director.app.application --launcher.suppressErrors -flavor tooling -installIU org.bonitasoft.studio.product -version 5.0.0.20091221-1512 -p2.os win32 -p2.ws win32 -p2.arch x86 -roaming -profile BonitaProfile -profileProperties org.eclipse.update.install.features=true -metadataRepository file:/home/ic/install/workspace/hudson/hudson_home/jobs/stud io-build/workspace/build/buildRepo -artifactRepository file:/home/ic/install/workspace/hudson/hudson_home/jobs/stud io-build/workspace/build/buildRepo -destination /home/ic/install/workspace/hudson/hudson_home/jobs/studio-bu ild/workspace/build/tmp/BonitaStudio-20091221-1512 -bundlepool /home/ic/install/workspace/hudson/hudson_home/jobs/studio-bu ild/workspace/build/tmp/BonitaStudio-20091221-1512
[java] [echo] Command-line arguments: -application org.eclipse.equinox.p2.director.app.application --launcher.suppressErrors -consoleLog -flavor tooling -installIU org.bonitasoft.studio.product -version 5.0.0.20091221-1512 -p2.os win32 -p2.ws win32 -p2.arch x86 -roaming -profile BonitaProfile -profileProperties org.eclipse.update.install.features=true -metadataRepository file:/home/ic/install/workspace/hudson/hudson_home/jobs/stud io-build/workspace/build/buildRepo -artifactRepository file:/home/ic/install/workspace/hudson/hudson_home/jobs/stud io-build/workspace/build/buildRepo -destination /home/ic/install/workspace/hudson/hudson_home/jobs/studio-bu ild/workspace/build/tmp/BonitaStudio-20091221-1512 -bundlepool /home/ic/install/workspace/hudson/hudson_home/jobs/studio-bu ild/workspace/build/tmp/BonitaStudio-20091221-1512
[java] [echo]
[java] [echo] !ENTRY org.eclipse.equinox.p2.director 4 1 2009-12-21 15:22:05.412
[java] [echo] !MESSAGE Cannot complete the install because one or more required items could not be found.
[java] [echo] !SUBENTRY 1 org.eclipse.equinox.p2.director 4 0 2009-12-21 15:22:05.412
[java] [echo] !MESSAGE Software being installed: Bonita Studio 5.0.0.20091221-1512 (org.bonitasoft.studio.product 5.0.0.20091221-1512)
[java] [echo] !SUBENTRY 1 org.eclipse.equinox.p2.director 4 0 2009-12-21 15:22:05.412
[java] [echo] !MESSAGE Missing requirement: Dependencies for Bonita Studio features in Bonita Product 1.0.0.20091221-1512 (org.bonitasoft.studio.deps.feature.group 1.0.0.20091221-1512) requires 'org.eclipse.core.net.linux.x86 [1.1.0.I20081021]' but it could not be found
[java] [echo] !SUBENTRY 1 org.eclipse.equinox.p2.director 4 1 2009-12-21 15:22:05.412
[java] [echo] !MESSAGE Cannot satisfy dependency:
[java] [echo] !SUBENTRY 2 org.eclipse.equinox.p2.director 4 0 2009-12-21 15:22:05.413
[java] [echo] !MESSAGE From: Bonita Studio 5.0.0.20091221-1512 (org.bonitasoft.studio.product 5.0.0.20091221-1512)
[java] [echo] !SUBENTRY 2 org.eclipse.equinox.p2.director 4 0 2009-12-21 15:22:05.413
[java] [echo] !MESSAGE To: org.bonitasoft.studio.deps.feature.group [1.0.0.20091221-1512]



However, the org.eclipse.core.net.linux.x86 [1.1.0.I20081021]' bundle is available as a jar in platform, in ${buildDirectory}/buildRepo and also in ${buildDirectory}/repository... Does any one have a hint ?

--
Mickael Istria - BonitaSoft S.A.
http://www.bonitasoft.com/products/downloads.php
Re: Feature-based product build enabling p2 [message #504607 is a reply to message #504564] Mon, 21 December 2009 18:01 Go to previous messageGo to next message
Mickael Istria is currently offline Mickael Istria
Messages: 755
Registered: July 2009
Location: Grenoble, France
Senior Member
I got it: I simply forgot to set the value of OS, WS and Arch for platform specific bundles in my feature, so that it was trying to resolve (for instance) mac bundles when building Windows product...


--
Mickael Istria - BonitaSoft S.A.
http://www.bonitasoft.com/products/downloads.php
Re: Feature-based product build enabling p2 [message #504788 is a reply to message #504607] Tue, 22 December 2009 12:10 Go to previous messageGo to next message
Mickael Istria is currently offline Mickael Istria
Messages: 755
Registered: July 2009
Location: Grenoble, France
Senior Member
It's me again!

I have a new question: When building a feature-based product with p2, and setting groupConfigurations to true, I have as many zips as configs (ie resulting products are platform-specific). How can I merge them so that I'll have a single zip containing all launchers that will work on all platforms?

--
Mickael Istria - BonitaSoft S.A.
http://www.bonitasoft.com/products/downloads.php
Multi-platform single product build enabling p2 [message #515308 is a reply to message #504788] Thu, 18 February 2010 13:02 Go to previous message
Mickael Istria is currently offline Mickael Istria
Messages: 755
Registered: July 2009
Location: Grenoble, France
Senior Member
Hello,

I am back with this question:

> I have a new question: When building a feature-based product with p2,
> and setting groupConfigurations to true, I have as many zips as configs
> (ie resulting products are platform-specific). How can I merge them so
> that I'll have a single zip containing all launchers that will work on
> all platforms?

Indeed, merging directories does not work (it probably overwrites some critical files, so that I always get a platform-specific plugin not found), and I did not find a way to add to my (Linux) product bundles and laucher for Mac or Windows using either an option in build, or p2 director on generated platform-specific products or anything else.

Does anyone have a clue? Should I open a feature requirement on Bugzilla to support a multi-platform RCP product delivery when using p2?

--
Mickael Istria - BonitaSoft S.A.
http://www.bonitasoft.com/products/downloads.php
Previous Topic:How to register a context menu for a MultipageEditorPart?
Next Topic:Show Headless RCP application output in cmd.exe (not osgi console)
Goto Forum:
  


Current Time: Thu Sep 18 21:42:30 GMT 2014

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

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