Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support for plugin options in java plugins #80

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

suman-ganta
Copy link

@suman-ganta suman-ganta commented May 5, 2021

Description
<protocPlugin> has args, jvmArgs, but does not have pluginOptions. Plugin options are needed to pass any plugin specific options to the plugin. They are passed to the plugin as part of the CodeGeneratorRequest that goes into the plugin via stdin. These options can be retrieved with CodeGeneratorRequest.getParameter() within the plugin.

This PR adds support for pluginOptions. They are passed to protoc as --<pluginId>_opt=<options>

@suman-ganta suman-ganta marked this pull request as ready for review May 5, 2021 16:41
@suman-ganta
Copy link
Author

@sergei-ivanov could you please check this out and provide your comments? Thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

1 participant