Flavio Donze Messages: 201 Registered: July 2009 Location: Switzerland
I'm having trouble updating (p2) my RCP application which was built using buckminster.
When I install the found updates on my client machine, the bundles are downloaded to:
C:\Programme\Hudson\workspace\jobs\scodi.client.integration\ workspace\buckminster.output\ch.scodi.client.site_1.0.0-ecli pse.feature\scodi-client.win32.win32.x86\plugins
This is the buckminster output directory on the server. The RCP application then tells me it updated and I can see the new feature version in the about dialog, but still the old plugins. No new features and plugins are in the actual installation directory.
I traced the problem down to the p2 directory. There I can find the path in:
p2\org.eclipse.equinox.p2.engine\profileRegistry\ScodiClient Profile.profile\.data\.settings\org.eclipse.equinox.p2.artif act.repository.prefs
p2\org.eclipse.equinox.p2.engine\profileRegistry\ScodiClient Profile.profile\1283528437014.profile.gz (1KB)
p2\org.eclipse.equinox.p2.engine\profileRegistry\ScodiClient Profile.profile\1283528497482.profile.gz (60KB)
Only if I change last one, the download location changes.
The strange thing, building the same product using the Eclipse export wizard, it then updates correctly.
Also if I replace the p2 directory of the server build with the p2 directory of the local eclipse build, it works as well.
Anybody got an idea what I can do or what I need to configure that this works? Is this the right place or should I go to the equinox/p2 forum?
you probably only need to set the -roaming switch in the product.ant
file. Without the roaming switch your product is expected to be at its
final location (i.e. cannot be moved after the build).
Here is a discussion on whether the -roaming switch should be added to
the mail app tutorial as default. https://bugs.eclipse.org/bugs/show_bug.cgi?id=313107
that's odd, your ant file looks perfectly fine to me. You got no error
message from the p2 director?
Can you try 'Wipe Out Workspace' in Hudson to make sure that there is
nothing leftover that could cause this weird behaviour?