buildr-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Alex Boisvert <>
Subject Re: How to use Google Protobufs with Buildr?
Date Sun, 17 Oct 2010 18:38:20 GMT
I haven't seen any examples anywhere.

Just reading through the source quickly, it looks like you use it as follows
in your project:

protoc _("path/to/proto/files")

and also supports two options,

:output => "target/generated/protoc"  # this is the default
:lang => "java" # defaults to compile.language


On Sun, Oct 17, 2010 at 11:23 AM, Sean Rhea <> wrote:

> Hi,
> I found BUILDR-368, which seems to add support for generating .java
> files from .proto files, but I can't figure out quite how to use it.
> I presume it's going to add some task as a prereq for the compile
> task, generate .java files, and add the path where it puts them to the
> input compile path.  Is that right?  I can see that I need to
> require 'buildr/protobuf'
> but what else do I need to do?  Is there a small example somewhere?
> Thanks in advance,
> Sean
> --
> "I refuse to accept the idea that the ‘isness’ of man’s present nature
> makes him morally incapable of reaching up for the eternal ‘oughtness’
> that forever confronts him." --MLK

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message