Open yinghuzhu opened 5 years ago
Hi, I am not sure what kind of problem you are trying to solve by this pull request, because you seem to be replicating the logic of protobuf compiler. Can you create a minimal sample project on github to demonstrate what you are trying to do and why the existing options do not cover your use case.
we have a lot of proto files . but, we just expect that a few proto file is code generation instead of all. So, we hope that the only specified file and the import files are generated . Also, I have a example:
https://github.com/yinghuzhu/grpc-sample the maven command like this:
mvn clean package -Dproto=sample/sample.proto
the command only generate sample/sample.proto. Actually, we hope sample/sample.proto, product/product.proto and common/common.proto can be code generation
the import files of the proto file can be code generation as well if there is some import file in the proto file . So, we add a parameter "generateImport"
the plugin is config like below: