grpc-java/compiler
Jakob Buchgraber df321fed73 Create temporary directory for javanano test if it does not exist.
The gradle task testNanoGolden fails because the temporary folder it tries to use does not exist.
The task tries to write files to temporaryDir which points to ./compiler/build/tmp/testNanoGolden/ on my machine.
The directory does not exist by default and so the run_nano_test.sh fails.
2015-02-25 21:47:28 -08:00
..
src Add nano support to Java codegen. Now the user can specify a flag nano=true 2015-02-25 14:38:03 -08:00
README.md Add README.md in the compiler directory 2015-01-26 11:33:11 -08:00
build.gradle Create temporary directory for javanano test if it does not exist. 2015-02-25 21:47:28 -08:00

README.md

gRPC Java Plugin for Protobuf Compiler

This generates the Java interfaces out of the service definition from a .proto file.

System Requirement

Compiling and Testing the Plugin

Change to the compiler directory:

$ cd $GRPC_JAVA_ROOT/compiler

To compile the plugin:

$ gradle java_pluginExecutable

To test the plugin with the compiler:

$ gradle test

You will see a PASS if the test succeeds.

To compile a proto file and generate Java interfaces out of the service definitions:

$ protoc --plugin=protoc-gen-java_rpc=build/binaries/java_pluginExecutable/java_plugin \
  --java_rpc_out="$OUTPUT_FILE" --proto_path="$DIR_OF_PROTO_FILE" "$PROTO_FILE"