R
R
rexer2015-02-26 11:58:52
Java
rexer, 2015-02-26 11:58:52

How to automatically specify java_package option in .proto file?

Hello!
I am developing an application in java.
I have some .proto files, I compile them with maven and protobuf-maven-plugin, everything is fine. But.
When I add another .proto file, I have to write options at the beginning of it:

option java_package = "пакет";
option java_outer_classname = "Имя";

Is there a way to automatically add these lines somehow?
Not even these lines, but simply specifying the java_package option automatically, java_outer_classname, in principle, can be omitted.
Can anyone come across?
I'm already tired of copying every time, but I haven't found a solution yet.
Thanks in advance!

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question