Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

ProtocolBuffers compile time support

Fetching latest commit…

Octocat-spinner-32-eaf2f5

Cannot retrieve the latest commit at this time

Octocat-spinner-32 griffon-app
Octocat-spinner-32 scripts
Octocat-spinner-32 test
Octocat-spinner-32 .gitignore
Octocat-spinner-32 LICENSE.txt
Octocat-spinner-32 ProtobufGriffonPlugin.groovy
Octocat-spinner-32 README.md
Octocat-spinner-32 application.properties
README.md

ProcolBuffers integration

Plugin page: http://artifacts.griffon-framework.org/plugin/protobuf

Provides integration with Google Protocol Buffers – a language-neutral, platform-neutral, extensible way of serializing structured data for use in communications protocols, data storage, and more.

Usage

This plugin requires you to have a valid protoc compiler installed. Follow the installation instructions laid out in the java tutorial. Once installed you must instruct the build where to locate the protoc executable. Edit griffon-app/conf/BuildConfig.groovy with the following content

google.protobuf.protoc = "/usr/local/bin/protoc" // change this path to your own path

Place your .proto sources at $basedir/src/protobuf. They will be automatically compiled to java sources (and classes) whenever the application is compiled. Alternatively you may call the protoc command to compile protobuf sources at any time.

Configuration

Protobuf version currently supported is 2.4.1.

Scripts

  • protoc - compiles protobuf sources (.proto) then compiles the generated java sources.
Something went wrong with that request. Please try again.