Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » Buckminster » product update does not work
product update does not work [message #557057] Fri, 03 September 2010 19:51 Go to next message
Flavio Donze is currently offline Flavio DonzeFriend
Messages: 211
Registered: July 2009
Location: Switzerland
Senior Member
Hello

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?

greets and thanks for any help
Flavio


Prozessmanagement und Qualitätsmanagement Software QMS/IMS
https://www.scodi.ch
Re: product update does not work [message #557237 is a reply to message #557057] Mon, 06 September 2010 08:08 Go to previous messageGo to next message
Johannes Utzig is currently offline Johannes UtzigFriend
Messages: 329
Registered: July 2009
Senior Member
Hi Flavio,

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


Best regards,
Johannes
Re: product update does not work [message #557285 is a reply to message #557237] Mon, 06 September 2010 13:03 Go to previous messageGo to next message
Flavio Donze is currently offline Flavio DonzeFriend
Messages: 211
Registered: July 2009
Location: Switzerland
Senior Member
Hi Johannes

Thanks for your reply!

I added the roaming parameter, but now my build only generates the p2 directory. No plugins, features and configurations directory and no exe or ini file.

<property name='org.eclipse.equinox.p2.roaming' value='true'/>
Is set in the p2 configuration though.


Maybe I placed it at the wrong spot (see last arg value=)?
<target name="create.product">
	<property name="destination" location="${sp:destination}"/>
	<delete dir="${destination}"></delete>
	<makeurl property="repository" file="${sp:repository}"/>
	<mkdir dir="${destination}"/>
	<echoproperties ></echoproperties>
	<echo message="${equinox.launcher.jar}"/>
	<echo message="${repository}"/>
	<echo message="${destination}"/>
	<java jar="${equinox.launcher.jar}" fork="true" failonerror="true" >
		<arg value="-application"/>
		<arg value="org.eclipse.equinox.p2.director"/>
		<arg value="-artifactRepository"/>
		<arg value="${repository}"/>
		<arg value="-metadataRepository"/>
		<arg value="${repository}"/>
		<arg value="-destination"/>
		<arg value="${destination}"/>
		<arg value="-bundlepool"/>
		<arg value="${destination}"/>
		<arg value="-profile"/>
		<arg value="${profile}"/>
		<arg value="-profileProperties" />
		<arg value="org.eclipse.update.install.features=true" />
		<arg value="-installIU"/>
		<arg value="${iu}"/>
		<arg value="-p2.os" />
		<arg value="${target.os}" />
		<arg value="-p2.ws" />
		<arg value="${target.ws}" />
		<arg value="-p2.arch" />
		<arg value="${target.arch}" />
		<arg value="-consoleLog"/>
		<arg value="-roaming"/>
		<jvmarg value="-Declipse.p2.data.area=${destination}/p2"/>
		<jvmarg value="-Declipse.p2.profile=${profile}"/>
	</java>
</target>


But you are right when I manually add
<property name='org.eclipse.equinox.p2.roaming' value='true'/>
to the xxx.profile.gz, the application updates correctly.

Could this be a bug?

greets
Flavio


Prozessmanagement und Qualitätsmanagement Software QMS/IMS
https://www.scodi.ch
Re: product update does not work [message #557289 is a reply to message #557285] Mon, 06 September 2010 13:18 Go to previous messageGo to next message
Johannes Utzig is currently offline Johannes UtzigFriend
Messages: 329
Registered: July 2009
Senior Member
Hi Flavio,

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?

Best regards,
Johannes
Re: product update does not work [message #557329 is a reply to message #557285] Mon, 06 September 2010 18:53 Go to previous messageGo to next message
Thomas Hallgren is currently offline Thomas HallgrenFriend
Messages: 3240
Registered: July 2009
Senior Member
On 09/06/2010 03:03 PM, Flavio Donzé wrote:
> <jvmarg value="-Declipse.p2.data.area=${destination}/p2"/>
> <jvmarg value="-Declipse.p2.profile=${profile}"/>

Please remove those two lines. They do more harm then good.

Regards,
Thomas Hallgren
Re: product update does not work [message #557336 is a reply to message #557329] Mon, 06 September 2010 21:06 Go to previous message
Flavio Donze is currently offline Flavio DonzeFriend
Messages: 211
Registered: July 2009
Location: Switzerland
Senior Member
Hello Thomas

It works!!! Thanks a lot for this solution!

And thank you Johannes for the roaming tip!

I was struggling with this for quite a while now!


I also updated the buckminster installation but I don't think that had an effect.

greets
Flavio


Prozessmanagement und Qualitätsmanagement Software QMS/IMS
https://www.scodi.ch
Previous Topic:lastRevision NullPointerException on monitor?
Next Topic:Building rcp apps for the mac
Goto Forum:
  


Current Time: Fri Apr 26 16:27:22 GMT 2024

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

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

Back to the top