blob: 9a8fa27c573a33ed2b0a0e385625e7512b5fe405 [file] [log] [blame]
Yuta HIGUCHIa2462242017-06-29 15:13:47 -07001#!/bin/bash -e
Aaron Kruglikove630fb12017-04-24 13:05:26 -07002# -----------------------------------------------------------------------------
3# Generates the gRPC java artifacts from protobuf models.
4# -----------------------------------------------------------------------------
5out=$1
6shift
7proto_paths=$1
8shift
9protoc=$1
10shift
11plugin=$1
12shift
13
14#set -x
15
16dir=$(dirname $out)
17mkdir -p $dir
18
19$protoc \
20 --plugin=protoc-gen-grpc-java=$plugin \
21 --grpc-java_out=$dir \
22 --java_out=$dir \
23 $proto_paths \
24 $*
25
26cd $dir
27jar -cf $out *