|
|
Re: Single-pass update of jar and action? [message #131171 is a reply to message #131133] |
Tue, 12 May 2009 14:32 |
michael.sacarny Messages: 103 Registered: July 2009 Location: USA |
Senior Member |
|
|
Simon,
I'm using the examples in
http://www.eclipse.org/newsportal/article.php?id=6120&gr oup=eclipse.technology.equinox#6120,
so the Feature p2.inf was this:
metaRequirements.0.namespace=org.eclipse.equinox.p2.engine.a ctions
metaRequirements.0.name=p2.examples.provides.actionforfeatur e.dummyaction
metaRequirements.0.range=1.0
instructions.configure.import=p2.example.provides.actionforf eature.dummyaction
instructions.configure=dummyaction();
which I changed to this:
metaRequirements.0.namespace=org.eclipse.equinox.p2.engine.a ctions
metaRequirements.0.name=p2.examples.provides.actionforfeatur e.dummyaction
metaRequirements.0.range=1.0
instructions.configure=p2.example.provides.actionforfeature. dummyaction();
and the plugin p2.inf is this:
provides.0.namespace=org.eclipse.equinox.p2.engine.actions
provides.0.name=p2.examples.provides.actionforfeature.dummya ction
provides.0.version=1.0
I added this to the execute() function
System.out.println("test1");
On the initial install, "test1" is output. Then I bumped the
Feature/Plugin version numbers, changed "test1" to "test2", rebuilt, and
upgraded. "test1" is still output, showing that single pass update did not
work.
Then I bumped Feature/Plugin version numbers, changed "test1" to "test2",
changed the Plugin p2.inf:
provides.0.version=1.1
and Feature p2.inf:
metaRequirements.0.range=1.1
When I attempt to upgrade, I get this warning message:
"The software items you selected may not be valid with your current
installation. Do you want to open the wizard anyway to review the
selections?"
If I continue, the upgrade fails.
So, what am I missing/getting wrong here? [Note: In both p2.infs, the name
value refers to "example" rather than "example" but does not seem to
matter.]
Thanks,
MSacarny
|
|
|
Powered by
FUDForum. Page generated in 0.02958 seconds