java - How to compile multiple proto files in single command? -
I have a protocol file which is in the directory alone and I am looking for a way to create classes in single command of those files I am Protobuf documentation says that we need to use the I have used the but I am getting the following error Please suggest some ways to collect all prototypes in one shot. The problem is that you specify - proto_path argument for this.
C: \ Shekhar \ proto_trial> Drive C is the directory of dir volume c: \ shaker \ prototo_trial 07/25/2014 12:16 pm & lt; DIR & gt; . 07/25/2014 12:16 pm & lt; DIR & gt; .. 07/25/2014 12:16 pm & lt; DIR & gt; Java_op 07/25/2014 12:16 230 map.proto 07/23/2014 04:24 PM 161 message.proto 07/25/2014 12:17 PM 1,228 responses. Proto 3 files 1,619 bytes 3dir (s) 50,259,398,656 bytes free
- proto_path argument below
C: \ Shekhar \ proto_troll> Protocol --proto_path = C: \ Shekhar \ proto_trial - java_out = c: \ shekhar \ proto_trial \ java_op * .proto
message.proto: The file is not within any path specified using --proto_path (or -i). You must specify a --proto_path that contains this file. Note that Proto_path should have an exact prefix of .proto file names - the protocol is very sensible, when two paths (like absolute and relative) are equivalent (it sounds as hard as you think).
- proto_path as a full path , But specify your protota files as relative paths. You can either drop the
- proto_path argument (this is the default for the current directory), or you can do this:
Protocol --proto_path = C : \ Shekhar \ Proto_trial - java_out = c: \ shekhar \ proto_trial \ java_op c: \ shekhar \ proto_trial \ *. Prototype
Comments
Post a Comment