Skip to main content



      Home
Home » Eclipse Projects » Rich Client Platform (RCP) » Update Site - Can't Get Update To Work
Update Site - Can't Get Update To Work [message #459975] Sat, 09 December 2006 13:32 Go to next message
Eclipse UserFriend
Ok, here's what I'm doing:

I have a product that has it's configuration based on one feature. I have set the update site URL of this feature to http://192.168.0.5/update (I can hit this site using a browser, so I know that I have access to it).

In my separate Update Site project, I have a site.xml file. I've added a category 'RCP', and a feature underneath it, which is pointing to the same feature as my product configuration. Under the Archives tab, I've set my URL to http://192.168.0.5/update ( the same update URL that the feature has).

I build the Update Site and move it over via FTP to http://192.168.0.5/update. I can open up http://192.168.0.5/update/site.xml to make sure that the built site is up there.

Everything seems good to me. I go ahead and export this version of my product.

Now, I'm trying to test an update that I am about to do. First, I go in and change a java file to include an extra message pop-up. I then go into my plugin.xml (same project as the product) and increment the version number. I then go in and update my feature to point to the right version of this plugin and remove the old reference. I also increment the version of my feature. I then go into the Update Site project and add the reference to my new feature version under the 'RCP' category. I do a Build All and once that's done, I push everything out to http://192.168.0.5/update.

Now, I take the export of my product's original version and I run it. It's not detecting the update.... It just says that there's no new version available, so the update will not occur.

What am I doing wrong here? It seems that I've followed the Eclipse books and ref. sites verbatim, but it doesn't seem to be working for me. Any ideas?

Thanks,
Brant
Re: Update Site - Can't Get Update To Work [message #459979 is a reply to message #459975] Sun, 10 December 2006 05:32 Go to previous messageGo to next message
Eclipse UserFriend
Check the site.xml has the right version in it (i.e. your new one) and that the feature that it's pointing to also has the right version in it. You are incrementing the feature as well, I trust?

If the server looks good, what happens if in a new install of Eclipse (i.e. without it already installed) you put the update site in and try to add it? Does it get the right one then?

You may also want to check your version specifier in the dependencies. Some of them have an exact match; some of them are compatible. If you've done a version update e.g. 1.0 -> 2.0, then it's possible that it's not treating it as a compatible update and therefore not telling you there's any new version available.

Alex.
Re: Update Site - Can't Get Update To Work [message #459985 is a reply to message #459979] Sun, 10 December 2006 12:38 Go to previous messageGo to next message
Eclipse UserFriend
Here's what I have for my site.xml >

<?xml version="1.0" encoding="UTF-8"?>
<site>
<description url="http://192.168.0.5/update">
Update Site
</description>
<feature url="features/MyFeature_0.9.2.jar" id="MyFeature" version="0.9.2" os="win32" ws="win32" nl="en_US" arch="x86">
<category name="RCP"/>
</feature>
<feature url="features/MyFeature_0.9.3.jar" id="MyFeature" version="0.9.3" os="win32" ws="win32" nl="en_US" arch="x86" patch="true">
<category name="RCP"/>
</feature>
<category-def name="RCP" label="RCPProduct">
<description>
RCP Products
</description>
</category-def>
</site>


The product export I did before bumping up the version is version 0.9.2... so it should detect that there is an 0.9.3 out there and pull it down, correct?

Thanks
Re: Update Site - Can't Get Update To Work [message #459986 is a reply to message #459985] Sun, 10 December 2006 12:40 Go to previous messageGo to next message
Eclipse UserFriend
------=_Part_1000_6257358.1165772492722
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

Attached is the site.xml I'm using.
------=_Part_1000_6257358.1165772492722
Content-Type: application/octet-stream; name=site.xml
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment; filename=site.xml

<?xml version="1.0" encoding="UTF-8"?>
<site>
<description url="http://192.168.0.5/update">
Update Site
</description>
<feature url="features/MyFeature_0.9.2.jar" id="MyFeature" version="0.9.2" os="win32" ws="win32" nl="en_US" arch="x86">
<category name="RCP"/>
</feature>
<feature url="features/MyFeature_0.9.3.jar" id="MyFeature" version="0.9.3" os="win32" ws="win32" nl="en_US" arch="x86" patch="true">
<category name="RCP"/>
</feature>
<category-def name="RCP" label="RCPProduct">
<description>
RCP Products
</description>
</category-def>
</site>
------=_Part_1000_6257358.1165772492722--
Re: Update Site - Can't Get Update To Work [message #459987 is a reply to message #459979] Sun, 10 December 2006 12:42 Go to previous messageGo to next message
Eclipse UserFriend
Yeah, the plug-in version gets updated, and I update the reference in the feature, and update the version number in the feature.xml file.
Re: Update Site - Can't Get Update To Work [message #459988 is a reply to message #459979] Sun, 10 December 2006 13:12 Go to previous messageGo to next message
Eclipse UserFriend
If I added my update site to Eclipse, it does recognize it and prompts me to download the feature. But I'm not getting this with my own plug-in exported as a product (which is pointed to my feature).

I originally had the following specified in my preferences.ini (added the custom preferences):

org.eclipse.update.scheduler/enabled=true
org.eclipse.update.scheduler/on-startup=true
org.eclipse.update.scheduler/download=true

In my exported product, when I start it up, I see in the lower-left hand corner that it's checking for updates, but that only lasts for a brief second and goes away. It doesn't seem to detect anything. I even put an update option on the menu to do this manually, and it doesn't find anything either. Do I need to specificy the site url anywhere else? How do I add the update site to my own product? I've got the update url in my feature.xml, so that should take care of adding the update site, correct? I've got this same url tied into my site.xml

Thanks
Re: Update Site - Can't Get Update To Work [message #459989 is a reply to message #459979] Sun, 10 December 2006 13:13 Go to previous messageGo to next message
Eclipse UserFriend
"You may also want to check your version specifier in the dependencies. Some of them have an exact match; some of them are compatible. If you've done a version update e.g. 1.0 -> 2.0, then it's possible that it's not treating it as a compatible update and therefore not telling you there's any new version available. "

Right now, I'm just doing them as patch updates.. so going from 0.9.2 to 0.9.3 should be ok, right?
Re: Update Site - Can't Get Update To Work [message #459992 is a reply to message #459979] Sun, 10 December 2006 15:57 Go to previous messageGo to next message
Eclipse UserFriend
Alex,

Finally got it working... not sure what I did though. I just tinkered around with my features and it just kicked in for some reason.

Thanks again,
B
Re: Update Site - Can't Get Update To Work [message #460192 is a reply to message #459975] Sat, 16 December 2006 10:16 Go to previous message
Eclipse UserFriend
Hey, i had the same problem. I've solved it. To help you i need to know if u
created any plugin, besides the main one that u include in the feature list.
Just in case also send me the list of plugins

bye
Previous Topic:Drag & Drop
Next Topic:Automatic Update
Goto Forum:
  


Current Time: Thu Mar 20 08:37:11 EDT 2025

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

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

Back to the top