tcawley / gradle-protobuf-plugin

Gradle plugin for using Google Protocol Buffers in your project.
MIT License
12 stars 4 forks source link

protoc path #7

Open sappling opened 10 years ago

sappling commented 10 years ago

It would be nice if there were defaults for protoc path. By default, could it just use the one in your path. It also might make sense to default to the location where the protocol buffer project's "make install" puts it. For example, for Mac this is /usr/local/bin.

slxu commented 10 years ago

You can directly use "protoc" instead of a absolute path to let the system search for the command in the system path

slxu commented 10 years ago

However, it seems that the OS names in the protoc configuration are compared against by exact matching. It will be really useful if the names are name patterns, for example regular expressions.