Re: Building plugin for both 8.0.x and 8.1 series and 8.1 application bundle with recent e.g progress api changes
Jarmo Isotalo <[email protected]>
| Newsgroups | gmane.comp.java.netbeans.devel |
|---|---|
| Message-ID | <CAPkreKxcPr_NAXgPU+i6W_HhX8T9gu5nSWx3sVYewbyY51Xivw@mail.gmail.com> |
On my test windows I'm able to get message like this: https://cloudup.com/c93D9Hvxojo -- but it ain't much of an help for my users... On other hand, I might be able to get the "hey, you need to update your netbeans to them my own message channel (extra field in json from my server) -- can I get the netbeans version during runtime somehow. I looked into the apidoc but couldn't even see where it could be defined/accessible. -Jarmo On Wed, Mar 9, 2016 at 11:43 PM, Jarmo Isotalo <[email protected]> wrote: > Yea, so I want to have the plugin to support versions 8.0.x and newer - > and build application+plugin bundle using the latest NetBeans (8.1). > We host the updates on our own and request our users to add new update > site... > > So basically building the plugin for 8.0.x would suffice if then I could > somehow tell the application + plugin bundle to use the latest NetBeans and > the plugin built for the 8.0.2. > > Can I somehow make the update center to tell "You need newer version of > NetBeans to install this update" -- not just saying we would need these > plugins which are not available to install this? > > -Jarmo > > > > Right, caught me, I red only like 5 months back... (also this might really > belong to dev...) > > We host the updates site on our own > > On Wed, Mar 9, 2016 at 11:23 PM, BR Brett Ryan (3456) < > [email protected]> wrote: > >> I think the issue is needing to somehow support different versions of the >> same plugin for different NetBeans versions on the update centre. I think >> this has come up a few times with the only solution being to provide >> different names in the plugin? >> >> I recall this coming up maybe 12 months ago? >> >> On 10 Mar 2016, at 08:15, Benno Markiewicz < >> [email protected]> wrote: >> >> Hej Jamo, >> >> I don't understand your question correctly. If the target platform is 8.1 >> then the plugin won't run in NB <8.1. That tells you the error messages >> from the gist. You are requesting dependencies with a version from NB8.1, >> but NB8.0.2 cannot provide them. >> >> With kind regards, markiewb >> >> 2016-03-09 22:07 GMT+01:00 <[email protected]>: >> >>> Hello, >>> >>> There is something I coudln't figure out on my own, about the api >>> changes in NetBeans 8.1 (or maybe bigger question how the versioning is >>> done)... >>> >>> We have this plugin: https://github.com/testmycode/tmc-netbeans which >>> consists of the plugin itself and the application part (which I assume >>> we use for building the bundled plugin+application installer). >>> >>> Recently we wanted to start building the bundled application with >>> NetBeans 8.1 so that our users will get the latest NetBeans. So I >>> routinely upgraded the plugin project to use NetBeans 8.1 as the >>> nbplatform. However now the api changes, most notably >>> org.netbeans.api.progress.nb caused some issues. (We use: >>> org.netbeans.api.progress.ProgressHandleFactory). >>> >>> After adding this plugin as dependency, new releases, (plugin updates), >>> will no longer install to NetBeans 8.0.2 clients as the >>> org.netbeans.api.progress.nb couldn't be found. Error is something like >>> this (someone managed to install the update to older netbeans: >>> https://gist.github.com/jamox/f7644f1164f7527b3c0f#file-gistfile1-txt-L >>> 36-L65 >>> <https://gist.github.com/jamox/f7644f1164f7527b3c0f#file-gistfile1-txt-L36-L65> >>> (this specific in in a case when installing the update was >>> possible, or forced). >>> >>> What I've figured out, If I use 8.0.2 as the nbplatform, plugins >>> installed to 8.1 applications will work due to the compatibility >>> additions. and ofc also with 8.0.2 as plugins was build using it. >>> >>> So the question the wall of text leads to: >>> How I can generate the bundled application installer for 8.1 but build >>> the application so that the plugin/update would be installable to older >>> 8.0.x NetBeanses as well. >>> >>> One solution would be to have separate branches even to have one using >>> 8.0.2 and other using 8.1 - which sounds really tedious and error >>> prone... >>> >>> Thanks! >>> >> >> >