Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » P2 dev » prestartupdate example simply refuses to work for me
prestartupdate example simply refuses to work for me [message #532331] Sat, 08 May 2010 10:50
Thomas Kratz is currently offline Thomas KratzFriend
Messages: 165
Registered: July 2009
Senior Member
Hi I startet off with the prestartupdate example and slightly modified it. I have a Policy that does the following
@Override
	public IQuery<IInstallableUnit> getVisibleAvailableIUQuery() {
		return QueryUtil.createIUQuery("de.eiswind.rcp.prototype", Version.createOSGi(major, minor, micro));
	}


but wether I use it or not I have the same problem. I have P2Util like
static IStatus checkForUpdates(IProvisioningAgent agent, IProgressMonitor monitor) throws OperationCanceledException {
		ProvisioningSession session = new ProvisioningSession(agent);
		// the default update operation looks for updates to the currently
		// running profile, using the default profile root marker. To change
		// which installable units are being updated, use the more detailed
		// constructors.
		UpdateOperation op = new UpdateOperation(session);
		Activator.getDefault().getLog().log(new Status(IStatus.INFO, Activator.PLUGIN_ID, "Searching for updates 1.0.0"));
		SubMonitor sub = SubMonitor.convert(monitor, "Suche nach updates...", 200);
		IStatus result = op.resolveModal(sub.newChild(100));
		Activator.getDefault().getLog().log(new Status(IStatus.INFO, Activator.PLUGIN_ID, "Resolved"));



inside eclipse this works fine, but when i deploy it (usind the releng script) I never see the "Resolved" log entry. I see no error, it simply does nothing. Anyone got a hint on what I did wrong ?

this is what i get in the log when deployed
!SESSION 2010-05-08 12:38:41.685 -----------------------------------------------
eclipse.buildId=unknown
java.version=1.6.0_18
java.vendor=Sun Microsystems Inc.
BootLoader constants: OS=win32, ARCH=x86_64, WS=win32, NL=de_DE
Command-line arguments:  -os win32 -ws win32 -arch x86_64

!ENTRY org.eclipse.equinox.p2.examples.rcp.prestartupdate 1 0 2010-05-08 12:38:45.647
!MESSAGE Searching for updates 1.0.0



this is the console log in eclipse:
!SESSION 2010-05-08 12:48:36.609 -----------------------------------------------
eclipse.buildId=unknown
java.version=1.5.0_22
java.vendor=Sun Microsystems Inc.
BootLoader constants: OS=win32, ARCH=x86_64, WS=win32, NL=de_DE
Framework arguments:  -product org.eclipse.equinox.p2.examples.rcp.prestartupdate.product
Command-line arguments:  -product org.eclipse.equinox.p2.examples.rcp.prestartupdate.product -data C:\Users\Thomas\bin\workspace3/../runtime-prestartupdate.product -dev file:C:/Users/Thomas/bin/workspace3/.metadata/.plugins/org.eclipse.pde.core/prestartupdate.product/dev.properties -os win32 -ws win32 -arch x86_64 -consoleLog

!ENTRY org.eclipse.equinox.p2.examples.rcp.prestartupdate 1 0 2010-05-08 12:48:39.979
!MESSAGE Searching for updates 1.0.0

!ENTRY org.eclipse.equinox.p2.examples.rcp.prestartupdate 1 0 2010-05-08 12:48:40.040
!MESSAGE Resolved

!ENTRY org.eclipse.equinox.p2.operations 0 10001 2010-05-08 12:48:40.049
!MESSAGE Your original request has been modified.


Previous Topic:Best practise to upload repositories ?
Next Topic:where I can find log information for p2
Goto Forum:
  


Current Time: Thu Mar 28 14:28:00 GMT 2024

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

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

Back to the top