Eclipse 4 and p2 [message #1005171] |
Thu, 24 January 2013 10:30  |
Eclipse User |
|
|
|
We are working with a pure E4 Application.
After reading some posts and all the necessary stuff to get working the p2 update we still have a problem.
http://www.ralfebert.de/blog/eclipsercp/p2_updates_tutorial_36/
http://wiki.eclipse.org/Equinox/p2/Adding_Self-Update_to_an_RCP_Application
http://aniefer.blogspot.ch/2009/03/building-p2-rcp-products-in-eclipse.html
http://www.vogella.com/articles/EclipseP2Update/article.html
All seems to work as long as we test on a file repository. The update is done, no error.
But if we copy the repository to our Web-Server we got an error. The first part - check if an update is needed works...
final UpdateOperation operation = new UpdateOperation(session);
final SubMonitor sub = SubMonitor.convert(monitor, "Checking for application updates...", 200);
IStatus status = operation.resolveModal(sub.newChild(100));
if (status.getCode() == UpdateOperation.STATUS_NOTHING_TO_UPDATE) {
LOG.debug("nothing to update");
return status;
}
if (status.getSeverity() == IStatus.CANCEL) {
LOG.debug("update - cancel");
throw new OperationCanceledException();
}
if (status.getSeverity() != IStatus.ERROR) {
LOG.debug("update - install");
final ProvisioningJob job = operation.getProvisioningJob(null);
status = job.runModal(sub.newChild(100));
if (status.getSeverity() == IStatus.CANCEL) {
LOG.debug("update - install - cancel");
throw new OperationCanceledException();
} else if (status.getSeverity() == IStatus.OK) {
LOG.debug("update - install - ok");
} else {
LOG.debug("update - install - " + status.getSeverity() + "/" + status.getMessage());
}
}
after the check in status = job.runModal(sub.newChild(100)); we got an error: >> An error occurred while collecting items to be installed
Why there is a difference between file and http?? no other message
And - the plugin to update is now on the client side, but the client allways tries to update...
Any hints?
Thx
Beat
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.32577 seconds