Module suite distribution and/or per-service activation tokens

Emilian Bold <[email protected]>
Newsgroups gmane.comp.java.netbeans.modules.openide.devel
Message-ID <CAL6R17CYppPdOS4G1ye+x+m6gMzsqkLKp0So88_L-J_PRAE2cg@mail.gmail.com>
Hello,

I have this plugin (http://nbnotify.com ) that works only on macOS so it has

OpenIDE-Module-Requires: org.openide.modules.os.MacOSX

I want to extends this plugin to work on Linux too.

Now, one solution would be to create a 2nd module with something like

OpenIDE-Module-Requires: org.openide.modules.os.Linux

But then I need to distribute 2 modules.

It would be ideal to be able to distribute a suite in the Plugin Portal so
I could bundle both modules. As far as I know this is not possible,
correct? (This is annoying since I cannot reuse code between the two
modules).

Alternatively it would be nice to conditionally register services based on
a token. Then I could have a single module which bundles the both operating
system services.

Are there other solutions I'm not aware of?

PS: Crossposting to [email protected] because we have to
start using it for Platform questions.

--emi
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.