Re: very stupid question about lookup
Boris Heithecker <[email protected]>
| Newsgroups | gmane.comp.java.netbeans.modules.openide.devel |
|---|---|
| Message-ID | <CAL465RHtBn4XG28icVYfSiTyfH1KoqkVmAC_0Mppa48UYOB0Hw@mail.gmail.com> |
Hi, here is how to make global updates and updates into a custom target cluster/folder work in a NetBeans Platform application: 1. Set nbm.is.global=true and/or nbm.target.cluster="yourtargetcluster" 2. Create an instanceof org.netbeans.spi.autoupdate.AutoupdateClusterCreator as a service provider. Unless you have an appropriate AutoupdateClusterCreator service in your platform application, these properties have no effect and all updates will always be installed in the user dir! Unfortunately, this is poorly documented. The easy way to create one such AutoupdateClusterCreator was for me to adapt the source file of the default IDE implementation ( http://hg.netbeans.org/main/file/37a3793b7675/updatecenters/src/org/netbeans/modules/updatecenters/resources/NetBeansClusterCreator.java ) to my own needs. Basically, all you have to do is replace one file name: "netbeans.clusters" must become "yourbrandingappname.clusters". You'll find the respective file in "install-dir/etc" of your application. Boris 2017-01-04 18:09 GMT+01:00 mcheung63 <[email protected]>: > NBM seems can't install globally, so other module just can find my another > module > > https://netbeans.org/bugzilla/show_bug.cgi?id=64873 > > And this document http://wiki.netbeans.org/HowToReuseModules seems > outdated, these have no effect: > > nbm.is.global=true > nbm.target.cluster=milkyway > > > >