Re: Autoupdate URL with parameters
"BR Brett Ryan (3456)" <[email protected]>
| Newsgroups | gmane.comp.java.netbeans.devel |
|---|---|
| Message-ID | <[email protected]> |
On 2 Nov 2015, at 19:52, markiewb <[email protected]<mailto:[email protected]>> wrote: I do not know much about the details of update centers. Nevertheless here my thoughts: A) it is your server, so you can provide the files/update.xml at any URL you like, can't you? B) Have a look at Tim Boudreau's update center implantation https://github.com/timboudreau/meta-update-center C) Use rewrite rules to delegate the URLs of incoming requests. I think the main point of the question is that you can't determine which version of NetBeans IDE is requesting the update, and you don't want to serve up an incompatible version. Suppose that Radim wrote a plugin for 7.x, he would have published his plugin as http://nbandroid.org/release/7.x/update.xml which works fine. NetBeans 8.x is in development and he decides to take advantage of newer features within the platform, so, he partially rewrites the plugin, making it no longer compatible with 7.x versions of the IDE. Now publishes his plugin at http://nbandroid.org/release/8.x/update.xml, great, this won't affect the 7.x users and any new users starting from NetBeans IDE 8.x will use his new URL. But suppose I just upgraded from 7.x to 8.x? What then? Not wanting to reset my environment I would install 8.x, carry over my user settings and when prompted install all the plugins from my prior version into the new version. But I will now not get told about Radim's new version he's published to 8.x, I may continue on my merry way for a year without even realising he's published to a new update centre. What's my IDE to do? In terms of the dtd (http://www.netbeans.org/dtds/autoupdate-catalog-2_6.dtd) for autoupdate-catalog there's nothing I can see that would aid in providing hints as to where a parent update centre repository could be queried in order to facilitate the IDE to find newer versions of the plugins update centre, instead it is more-so a bill-of-material document to the current version. Best regards, markiewb ________________________________ Från: Radim Kubacki<mailto:[email protected]> Skickat: 01.11.2015 21:07 Till: [email protected]<mailto:[email protected]> Ämne: [nbdev] Autoupdate URL with parameters Hello, is there any way how to use some parameters in AutoUpdate URL. I'd like to have one URL for all NBAndroid users like http://nbandroid.org/release/{netbeans.version}/update.xml This would be simpler for users when they upgrade their IDE. I want to have an older version of the plugin available even if I switch the development focus to a newer one. That forces me to have several AU centers and creates usability problem how to switch between them. -Radim