Use of -generate for generating source code

I’m using -generate to generate grpc protocol buffers messages, stubs, and base classes for remote services…simplifying the protoc code generator in this app

I’ve just added support for generating python code in addition to java code from a proto file service definition(s). So some questions about use in bndtools via the bnd -generate command:

  1. It seems from the docs at -generate srcs ‘;output=’ DIR ( ‘;’ ( system generate classpath))* … | bnd that it should be possible to run multiple generators via the -generate command but I haven’t gotten it to work yet. Are there any working/known good examples of running multiple generator commands?

  2. Is there any bndtools integrations available with Eclipse-based Python tooling? (e.g. Pydev)? e.g. for ipopo? (ipopo is an osgi-like runtime in python.. Welcome to iPOPO — iPOPO 3.0.0 documentation ). I’m thinking about a grpc-based osgi + ipopo remote service provider. For Python<->Java remote services (using RSA metadata, service registry on both sides, etc).

  3. Anything else to know about having python clients and/or servers in combination with bndtools-based bundle creation?

Thanksinadvance.

Keep the Python output in a separate source tree and treat it as a normal PyDev project; Bndtools won’t make Python code part of an OSGi bundle. For -generate, give each generator its own output directory, and check the exact command and parsed clauses in the build output if the combined instruction fails. The related Python<->Java project-template topic may also be useful.