Home » Eclipse Projects » Rich Client Platform (RCP) » Update... doesn't do anything
Update... doesn't do anything [message #466552] |
Fri, 20 April 2007 16:17  |
Eclipse User |
|
|
|
Originally posted by: rhafernik.site-controls.com
Hi all,
I've got an RCP app that builds and exports and seems to work OK. The
app is small and based on a single feature right now. I followed the
steps in the "eclipse Rich Client Platform" book to add update
capabilities. I added an action that creates an UpdateJob and so on.
I can tell that the code is getting executed.
If I run this app from Eclipse, it tries to update Eclipse, which
isn't, I suppose, all that crazy. However, when I export it and run it
by itself, the code does NOTHING. It always says, "No updates for the
currently installed feature(s), please try again later." I watched the
network with Ethereal and it's not emitting any HTTP requests. It's as
if it doesn't know it has an update site or doesn't know what feature
to try and update.
Also, why do I have a "Software Updates..." menu item in my help menu,
if I'm adding my own "Updates..." menu item?
By the way, the site I'm trying to get it to update from is just
another computer nearby, the name is resolved in my /etc/hosts file to
keep things simple. Later, I'll have a real URL, this is just for
testing.
Thanks in advance for your help.
~rob
PS. Here's my feature.xml file:
<?xml version="1.0" encoding="UTF-8"?>
<feature
id="org.aionet.explico.feature"
label="ergo"
version="1.0.1"
provider-name="Site Controls, Inc"
plugin="org.aionet.explico"
os="linux,macosx,win32"
ws="carbon,gtk,win32"
nl="en"
arch="x86">
<description url="http://www.site-controls.com">
Site Controls configuration and analysis tool
</description>
<copyright url="http://www.site-controls.com">
© 2007 Site Controls Inc.
</copyright>
<license url="http://www.example.com/license">
[Enter License Description here.]
</license>
<url>
<update label="ergo Update Site" url="http://ergoupdate/"/>
</url>
<includes
id="org.eclipse.rcp"
version="0.0.0"/>
<requires>
<import plugin="org.eclipse.core.runtime" version="3.1.0"
match="compatible"/>
<import plugin="org.apache.lucene" version="1.4.3" match="compatible"/>
<import plugin="org.eclipse.help" version="3.1.0" match="compatible"/>
<import plugin="org.eclipse.help.appserver" version="3.1.0"
match="compatible"/>
<import plugin="org.eclipse.help.base" version="3.1.0"
match="compatible"/>
<import plugin="org.eclipse.ui" version="3.2.0" match="compatible"/>
<import plugin="org.eclipse.ui.forms" version="3.2.0"
match="compatible"/>
<import plugin="org.eclipse.jface" version="3.2.0" match="compatible"/>
<import plugin="org.eclipse.update.configurator" version="3.1.0"
match="compatible"/>
<import plugin="org.eclipse.update.core" version="3.1.0"
match="compatible"/>
<import plugin="org.eclipse.core.runtime.compatibility"
version="3.1.0" match="compatible"/>
<import plugin="org.eclipse.core.expressions" version="3.1.0"
match="compatible"/>
<import plugin="org.eclipse.core.filesystem" version="1.0.0"
match="compatible"/>
<import plugin="org.eclipse.equinox.common" version="3.2.0"
match="compatible"/>
<import plugin="org.eclipse.core.runtime" version="3.2.0"
match="compatible"/>
<import plugin="org.eclipse.update.configurator"
version="3.1.100" match="compatible"/>
<import plugin="org.eclipse.osgi" version="3.2.0" match="compatible"/>
<import plugin="org.eclipse.core.jobs" version="3.2.0"
match="compatible"/>
<import plugin="org.eclipse.equinox.registry" version="3.2.0"
match="compatible"/>
<import plugin="org.eclipse.equinox.preferences" version="3.2.0"
match="compatible"/>
<import plugin="org.eclipse.core.contenttype" version="3.2.0"
match="compatible"/>
<import plugin="org.eclipse.core.resources" version="3.2.0"
match="compatible"/>
<import plugin="org.eclipse.text" version="3.2.0" match="compatible"/>
<import plugin="org.eclipse.core.expressions" version="3.2.0"
match="compatible"/>
<import plugin="org.eclipse.jface.text" version="3.2.0"
match="compatible"/>
<import plugin="org.eclipse.help" version="3.2.0" match="compatible"/>
<import plugin="org.eclipse.swt" version="3.2.0" match="compatible"/>
<import plugin="org.eclipse.ui" version="3.2.1" match="compatible"/>
<import plugin="org.eclipse.ui.views" version="3.2.0"
match="compatible"/>
<import plugin="org.eclipse.update.core" version="3.1.100"
match="compatible"/>
<import plugin="org.eclipse.update.ui" version="3.1.100"
match="compatible"/>
<import plugin="org.eclipse.ui.ide" version="3.2.0" match="compatible"/>
<import plugin="org.eclipse.ui.workbench.texteditor"
version="3.2.0" match="compatible"/>
<import plugin="org.eclipse.core.filebuffers" version="3.2.0"
match="compatible"/>
<import plugin="org.eclipse.ui.workbench" version="3.2.1"
match="compatible"/>
<import plugin="org.eclipse.core.commands" version="3.2.0"
match="compatible"/>
</requires>
<plugin
id="org.aionet.explico"
download-size="0"
install-size="0"
version="0.0.0"
unpack="false"/>
<plugin
id="org.apache.lucene"
download-size="0"
install-size="0"
version="0.0.0"/>
<plugin
id="org.eclipse.help.appserver"
download-size="0"
install-size="0"
version="0.0.0"
unpack="false"/>
<plugin
id="org.eclipse.help.base"
download-size="0"
install-size="0"
version="0.0.0"
unpack="false"/>
<plugin
id="org.eclipse.help.ui"
download-size="0"
install-size="0"
version="0.0.0"
unpack="false"/>
<plugin
id="org.eclipse.help.webapp"
download-size="0"
install-size="0"
version="0.0.0"/>
<plugin
id="org.eclipse.tomcat"
download-size="0"
install-size="0"
version="0.0.0"/>
<plugin
id="org.eclipse.ui.forms"
download-size="0"
install-size="0"
version="0.0.0"
unpack="false"/>
<plugin
id="org.eclipse.update.core"
download-size="0"
install-size="0"
version="0.0.0"
unpack="false"/>
<plugin
id="org.eclipse.update.ui"
download-size="0"
install-size="0"
version="0.0.0"
unpack="false"/>
<plugin
id="org.eclipse.core.resources"
download-size="0"
install-size="0"
version="0.0.0"
unpack="false"/>
<plugin
id="com.ibm.icu"
download-size="0"
install-size="0"
version="0.0.0"
unpack="false"/>
<plugin
id="org.eclipse.core.runtime.compatibility.auth"
download-size="0"
install-size="0"
version="0.0.0"
unpack="false"/>
<plugin
id="org.eclipse.core.runtime.compatibility"
download-size="0"
install-size="0"
version="0.0.0"
unpack="false"/>
<plugin
id="org.eclipse.core.runtime"
download-size="0"
install-size="0"
version="0.0.0"
unpack="false"/>
<plugin
id="org.eclipse.core.jobs"
download-size="0"
install-size="0"
version="0.0.0"
unpack="false"/>
<plugin
id="org.eclipse.core.filesystem"
download-size="0"
install-size="0"
version="0.0.0"
unpack="false"/>
<plugin
id="org.eclipse.core.filebuffers"
download-size="0"
install-size="0"
version="0.0.0"
unpack="false"/>
<plugin
id="org.eclipse.core.expressions"
download-size="0"
install-size="0"
version="0.0.0"
unpack="false"/>
<plugin
id="org.eclipse.core.contenttype"
download-size="0"
install-size="0"
version="0.0.0"
unpack="false"/>
<plugin
id="org.eclipse.core.commands"
download-size="0"
install-size="0"
version="0.0.0"
unpack="false"/>
<plugin
id="org.eclipse.update.configurator"
download-size="0"
install-size="0"
version="0.0.0"
unpack="false"/>
<plugin
id="org.eclipse.ui.workbench.texteditor"
download-size="0"
install-size="0"
version="0.0.0"
unpack="false"/>
<plugin
id="org.eclipse.ui.workbench"
download-size="0"
install-size="0"
version="0.0.0"
unpack="false"/>
<plugin
id="org.eclipse.ui.views"
download-size="0"
install-size="0"
version="0.0.0"
unpack="false"/>
<plugin
id="org.eclipse.ui.ide"
download-size="0"
install-size="0"
version="0.0.0"
unpack="false"/>
<plugin
id="org.eclipse.ui.editors"
download-size="0"
install-size="0"
version="0.0.0"
unpack="false"/>
<plugin
id="org.eclipse.ui"
download-size="0"
install-size="0"
version="0.0.0"
unpack="false"/>
<plugin
id="org.eclipse.text"
download-size="0"
install-size="0"
version="0.0.0"
unpack="false"/>
<plugin
id="org.eclipse.osgi"
download-size="0"
install-size="0"
version="0.0.0"
unpack="false"/>
<plugin
id="org.eclipse.jface.text"
download-size="0"
install-size="0"
version="0.0.0"
unpack="false"/>
<plugin
id="org.eclipse.jface"
download-size="0"
install-size="0"
version="0.0.0"
unpack="false"/>
<plugin
id="org.eclipse.help"
download-size="0"
install-size="0"
version="0.0.0"
unpack="false"/>
<plugin
id="org.eclipse.equinox.registry"
download-size="0"
install-size="0"
version="0.0.0"
unpack="false"/>
<plugin
id="org.eclipse.equinox.preferences"
download-size="0"
install-size="0"
version="0.0.0"
unpack="false"/>
<plugin
id="org.eclipse.equinox.common"
download-size="0"
install-size="0"
version="0.0.0"
unpack="false"/>
</feature>
|
|
| |
Re: Update... doesn't do anything [message #466771 is a reply to message #466552] |
Tue, 24 April 2007 12:25   |
Eclipse User |
|
|
|
Software update via the Eclipse mechanism is not as trivial as the good
RCP book explains......
1) Can you post the re-built 'site.xml' that is created after you build
the update site project?
2) You need to increment the version of the feature you wish to update
(from what is installed).
3) The "software updates...." menu item that exists but you didn't
create comes from one of the org.eclipse.ui.ide plugin. You
disable/hide that via Activities extension point.
RN
Rob Hafernik wrote:
> Hi all,
>
> I've got an RCP app that builds and exports and seems to work OK. The
> app is small and based on a single feature right now. I followed the
> steps in the "eclipse Rich Client Platform" book to add update
> capabilities. I added an action that creates an UpdateJob and so on. I
> can tell that the code is getting executed.
>
> If I run this app from Eclipse, it tries to update Eclipse, which isn't,
> I suppose, all that crazy. However, when I export it and run it by
> itself, the code does NOTHING. It always says, "No updates for the
> currently installed feature(s), please try again later." I watched the
> network with Ethereal and it's not emitting any HTTP requests. It's as
> if it doesn't know it has an update site or doesn't know what feature to
> try and update.
>
> Also, why do I have a "Software Updates..." menu item in my help menu,
> if I'm adding my own "Updates..." menu item?
|
|
|
Re: Update... doesn't do anything [message #466778 is a reply to message #466552] |
Tue, 24 April 2007 16:26  |
Eclipse User |
|
|
|
Originally posted by: rhafernik.site-controls.com
Thanks for everyone's help. I straightened it out. I was putting my
update site in the feature editor under "Sites to visit" rather than
"Update Site URL" (as Mario sort of caught). Silly me...
Thanks for the hint about disabling the Software Updates menu.
~rob
On 2007-04-20 15:17:53 -0500, Rob Hafernik <rhafernik@site-controls.com> said:
> Hi all,
>
> I've got an RCP app that builds and exports and seems to work OK. The
> app is small and based on a single feature right now. I followed the
> steps in the "eclipse Rich Client Platform" book to add update
> capabilities. I added an action that creates an UpdateJob and so on.
> I can tell that the code is getting executed.
>
> If I run this app from Eclipse, it tries to update Eclipse, which
> isn't, I suppose, all that crazy. However, when I export it and run it
> by itself, the code does NOTHING. It always says, "No updates for the
> currently installed feature(s), please try again later." I watched the
> network with Ethereal and it's not emitting any HTTP requests. It's as
> if it doesn't know it has an update site or doesn't know what feature
> to try and update.
>
> Also, why do I have a "Software Updates..." menu item in my help menu,
> if I'm adding my own "Updates..." menu item?
>
> By the way, the site I'm trying to get it to update from is just
> another computer nearby, the name is resolved in my /etc/hosts file to
> keep things simple. Later, I'll have a real URL, this is just for
> testing.
>
> Thanks in advance for your help.
>
> ~rob
>
> PS. Here's my feature.xml file:
>
> <?xml version="1.0" encoding="UTF-8"?>
> <feature
> id="org.aionet.explico.feature"
> label="ergo"
> version="1.0.1"
> provider-name="Site Controls, Inc"
> plugin="org.aionet.explico"
> os="linux,macosx,win32"
> ws="carbon,gtk,win32"
> nl="en"
> arch="x86">
>
> <description url="http://www.site-controls.com">
> Site Controls configuration and analysis tool
> </description>
>
> <copyright url="http://www.site-controls.com">
> © 2007 Site Controls Inc.
> </copyright>
>
> <license url="http://www.example.com/license">
> [Enter License Description here.]
> </license>
>
> <url>
> <update label="ergo Update Site" url="http://ergoupdate/"/>
> </url>
>
> <includes
> id="org.eclipse.rcp"
> version="0.0.0"/>
>
> <requires>
> <import plugin="org.eclipse.core.runtime" version="3.1.0"
> match="compatible"/>
> <import plugin="org.apache.lucene" version="1.4.3" match="compatible"/>
> <import plugin="org.eclipse.help" version="3.1.0" match="compatible"/>
> <import plugin="org.eclipse.help.appserver" version="3.1.0"
> match="compatible"/>
> <import plugin="org.eclipse.help.base" version="3.1.0"
> match="compatible"/>
> <import plugin="org.eclipse.ui" version="3.2.0" match="compatible"/>
> <import plugin="org.eclipse.ui.forms" version="3.2.0"
> match="compatible"/>
> <import plugin="org.eclipse.jface" version="3.2.0" match="compatible"/>
> <import plugin="org.eclipse.update.configurator" version="3.1.0"
> match="compatible"/>
> <import plugin="org.eclipse.update.core" version="3.1.0"
> match="compatible"/>
> <import plugin="org.eclipse.core.runtime.compatibility"
> version="3.1.0" match="compatible"/>
> <import plugin="org.eclipse.core.expressions" version="3.1.0"
> match="compatible"/>
> <import plugin="org.eclipse.core.filesystem" version="1.0.0"
> match="compatible"/>
> <import plugin="org.eclipse.equinox.common" version="3.2.0"
> match="compatible"/>
> <import plugin="org.eclipse.core.runtime" version="3.2.0"
> match="compatible"/>
> <import plugin="org.eclipse.update.configurator"
> version="3.1.100" match="compatible"/>
> <import plugin="org.eclipse.osgi" version="3.2.0" match="compatible"/>
> <import plugin="org.eclipse.core.jobs" version="3.2.0"
> match="compatible"/>
> <import plugin="org.eclipse.equinox.registry" version="3.2.0"
> match="compatible"/>
> <import plugin="org.eclipse.equinox.preferences" version="3.2.0"
> match="compatible"/>
> <import plugin="org.eclipse.core.contenttype" version="3.2.0"
> match="compatible"/>
> <import plugin="org.eclipse.core.resources" version="3.2.0"
> match="compatible"/>
> <import plugin="org.eclipse.text" version="3.2.0" match="compatible"/>
> <import plugin="org.eclipse.core.expressions" version="3.2.0"
> match="compatible"/>
> <import plugin="org.eclipse.jface.text" version="3.2.0"
> match="compatible"/>
> <import plugin="org.eclipse.help" version="3.2.0" match="compatible"/>
> <import plugin="org.eclipse.swt" version="3.2.0" match="compatible"/>
> <import plugin="org.eclipse.ui" version="3.2.1" match="compatible"/>
> <import plugin="org.eclipse.ui.views" version="3.2.0"
> match="compatible"/>
> <import plugin="org.eclipse.update.core" version="3.1.100"
> match="compatible"/>
> <import plugin="org.eclipse.update.ui" version="3.1.100"
> match="compatible"/>
> <import plugin="org.eclipse.ui.ide" version="3.2.0" match="compatible"/>
> <import plugin="org.eclipse.ui.workbench.texteditor"
> version="3.2.0" match="compatible"/>
> <import plugin="org.eclipse.core.filebuffers" version="3.2.0"
> match="compatible"/>
> <import plugin="org.eclipse.ui.workbench" version="3.2.1"
> match="compatible"/>
> <import plugin="org.eclipse.core.commands" version="3.2.0"
> match="compatible"/>
> </requires>
>
> <plugin
> id="org.aionet.explico"
> download-size="0"
> install-size="0"
> version="0.0.0"
> unpack="false"/>
>
> <plugin
> id="org.apache.lucene"
> download-size="0"
> install-size="0"
> version="0.0.0"/>
>
> <plugin
> id="org.eclipse.help.appserver"
> download-size="0"
> install-size="0"
> version="0.0.0"
> unpack="false"/>
>
> <plugin
> id="org.eclipse.help.base"
> download-size="0"
> install-size="0"
> version="0.0.0"
> unpack="false"/>
>
> <plugin
> id="org.eclipse.help.ui"
> download-size="0"
> install-size="0"
> version="0.0.0"
> unpack="false"/>
>
> <plugin
> id="org.eclipse.help.webapp"
> download-size="0"
> install-size="0"
> version="0.0.0"/>
>
> <plugin
> id="org.eclipse.tomcat"
> download-size="0"
> install-size="0"
> version="0.0.0"/>
>
> <plugin
> id="org.eclipse.ui.forms"
> download-size="0"
> install-size="0"
> version="0.0.0"
> unpack="false"/>
>
> <plugin
> id="org.eclipse.update.core"
> download-size="0"
> install-size="0"
> version="0.0.0"
> unpack="false"/>
>
> <plugin
> id="org.eclipse.update.ui"
> download-size="0"
> install-size="0"
> version="0.0.0"
> unpack="false"/>
>
> <plugin
> id="org.eclipse.core.resources"
> download-size="0"
> install-size="0"
> version="0.0.0"
> unpack="false"/>
>
> <plugin
> id="com.ibm.icu"
> download-size="0"
> install-size="0"
> version="0.0.0"
> unpack="false"/>
>
> <plugin
> id="org.eclipse.core.runtime.compatibility.auth"
> download-size="0"
> install-size="0"
> version="0.0.0"
> unpack="false"/>
>
> <plugin
> id="org.eclipse.core.runtime.compatibility"
> download-size="0"
> install-size="0"
> version="0.0.0"
> unpack="false"/>
>
> <plugin
> id="org.eclipse.core.runtime"
> download-size="0"
> install-size="0"
> version="0.0.0"
> unpack="false"/>
>
> <plugin
> id="org.eclipse.core.jobs"
> download-size="0"
> install-size="0"
> version="0.0.0"
> unpack="false"/>
>
> <plugin
> id="org.eclipse.core.filesystem"
> download-size="0"
> install-size="0"
> version="0.0.0"
> unpack="false"/>
>
> <plugin
> id="org.eclipse.core.filebuffers"
> download-size="0"
> install-size="0"
> version="0.0.0"
> unpack="false"/>
>
> <plugin
> id="org.eclipse.core.expressions"
> download-size="0"
> install-size="0"
> version="0.0.0"
> unpack="false"/>
>
> <plugin
> id="org.eclipse.core.contenttype"
> download-size="0"
> install-size="0"
> version="0.0.0"
> unpack="false"/>
>
> <plugin
> id="org.eclipse.core.commands"
> download-size="0"
> install-size="0"
> version="0.0.0"
> unpack="false"/>
>
> <plugin
> id="org.eclipse.update.configurator"
> download-size="0"
> install-size="0"
> version="0.0.0"
> unpack="false"/>
>
> <plugin
> id="org.eclipse.ui.workbench.texteditor"
> download-size="0"
> install-size="0"
> version="0.0.0"
> unpack="false"/>
>
> <plugin
> id="org.eclipse.ui.workbench"
> download-size="0"
> install-size="0"
> version="0.0.0"
> unpack="false"/>
>
> <plugin
> id="org.eclipse.ui.views"
> download-size="0"
> install-size="0"
> version="0.0.0"
> unpack="false"/>
>
> <plugin
> id="org.eclipse.ui.ide"
> download-size="0"
> install-size="0"
> version="0.0.0"
> unpack="false"/>
>
> <plugin
> id="org.eclipse.ui.editors"
> download-size="0"
> install-size="0"
> version="0.0.0"
> unpack="false"/>
>
> <plugin
> id="org.eclipse.ui"
> download-size="0"
> install-size="0"
> version="0.0.0"
> unpack="false"/>
>
> <plugin
> id="org.eclipse.text"
> download-size="0"
> install-size="0"
> version="0.0.0"
> unpack="false"/>
>
> <plugin
> id="org.eclipse.osgi"
> download-size="0"
> install-size="0"
> version="0.0.0"
> unpack="false"/>
>
> <plugin
> id="org.eclipse.jface.text"
> download-size="0"
> install-size="0"
> version="0.0.0"
> unpack="false"/>
>
> <plugin
> id="org.eclipse.jface"
> download-size="0"
> install-size="0"
> version="0.0.0"
> unpack="false"/>
>
> <plugin
> id="org.eclipse.help"
> download-size="0"
> install-size="0"
> version="0.0.0"
> unpack="false"/>
>
> <plugin
> id="org.eclipse.equinox.registry"
> download-size="0"
> install-size="0"
> version="0.0.0"
> unpack="false"/>
>
> <plugin
> id="org.eclipse.equinox.preferences"
> download-size="0"
> install-size="0"
> version="0.0.0"
> unpack="false"/>
>
> <plugin
> id="org.eclipse.equinox.common"
> download-size="0"
> install-size="0"
> version="0.0.0"
> unpack="false"/>
>
> </feature>
|
|
|
Goto Forum:
Current Time: Tue May 13 22:48:21 EDT 2025
Powered by FUDForum. Page generated in 0.04131 seconds
|