Skip to content

Commit

Permalink
Documented correct method of compiling protobuffs by hand.
Browse files Browse the repository at this point in the history
  • Loading branch information
jayjwylie committed Mar 20, 2013
1 parent 7669d86 commit 797eeca
Show file tree
Hide file tree
Showing 4 changed files with 22 additions and 2 deletions.
5 changes: 5 additions & 0 deletions build.xml
Expand Up @@ -124,6 +124,10 @@
</jar>
</target>

<!--
Use protoc version 2.3.0 to recompile by hand:
https://code.google.com/p/protobuf/downloads/detail?name=protobuf-2.3.0.tar.gz&can=2&q=
<target name="protobuff" description="Generate source files from .proto files">
<pathconvert property="proto.sources" pathsep=" ">
<path id="proto-files">
Expand All @@ -141,6 +145,7 @@
<arg line="${proto.sources}"/>
</exec>
</target>
-->

<target name="jar" depends="build" description="Build server jar file">
<jar destfile="${dist.dir}/${name}-${curr.release}.jar" manifest="META-INF/MANIFEST.MF">
Expand Down
7 changes: 6 additions & 1 deletion src/proto/slop.proto
@@ -1,3 +1,8 @@
// Please use protoc version 2.3.0 to recompile:
// https://code.google.com/p/protobuf/downloads/detail?name=protobuf-2.3.0.tar.gz&can=2&q=
// Use commmand like the below to recompile:
// $ protoc -I=src/proto --java_out=src/java src/proto/slop.proto

package voldemort;

option java_package = "voldemort.serialization";
Expand All @@ -16,4 +21,4 @@ message Slop {





5 changes: 5 additions & 0 deletions src/proto/voldemort-admin.proto
@@ -1,3 +1,8 @@
// Please use protoc version 2.3.0 to recompile:
// https://code.google.com/p/protobuf/downloads/detail?name=protobuf-2.3.0.tar.gz&can=2&q=
// Use commmand like the below to recompile:
// $ protoc -I=src/proto --java_out=src/java src/proto/voldemort-admin.proto

package voldemort;

option java_package = "voldemort.client.protocol.pb";
Expand Down
7 changes: 6 additions & 1 deletion src/proto/voldemort-client.proto
@@ -1,3 +1,8 @@
// Please use protoc version 2.3.0 to recompile:
// https://code.google.com/p/protobuf/downloads/detail?name=protobuf-2.3.0.tar.gz&can=2&q=
// Use commmand like the below to recompile:
// $ protoc -I=src/proto --java_out=src/java src/proto/voldemort-client.proto

package voldemort;

option java_package = "voldemort.client.protocol.pb";
Expand Down Expand Up @@ -97,4 +102,4 @@ message VoldemortRequest {
optional PutRequest put = 6;
optional DeleteRequest delete = 7;
optional int32 requestRouteType = 8;
}
}

0 comments on commit 797eeca

Please sign in to comment.