Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do I get support for GPB in Eclipse?

Tags:

I'm trying to use Google Protocol Buffers in my project and I'd like to have some tooling support from Eclipse. In particular, I want Eclipse to call protoc every time I make changes to the .proto files and then rebuild all code that depends on the generated code.

I tried to set up a Custom Builder but it keeps bugging me with errors I don't understand, most often it complains that the .proto file is not on the path given by --proto-path, which it should be by all I can tell. Also, because I use ${build_files}, Eclipse passes all changed files to the compiler (instead of those that I have configured to trigger the build).

NetBeans seems to have a protobuf-Plugin, but I can't find one for Eclipse. Is there one?

like image 972
Hanno Fietz Avatar asked Jul 17 '09 15:07

Hanno Fietz


2 Answers

Theres a protoclipse plugin on googlecode, which is in the initial stages: http://code.google.com/p/protoclipse/

like image 200
mo-seph Avatar answered Sep 23 '22 13:09

mo-seph


Not sure if there is a builder, but I did find a plugin for syntax highlighting for protocol buffers.

You can define an external builder on the plugin that invokes an ant task. It is an ugly kludge, but until there is a better solution this may serve your purposes.

like image 22
Rich Seller Avatar answered Sep 21 '22 13:09

Rich Seller