Yuta HIGUCHI a246224acd make gRPC buck build script fail fast on error
- See comment in: https://gerrit.onosproject.org/14531
  for more details about the problem.

Change-Id: I7ef3aa92dfa5116a077f3d6878856b555cfda93c
2017-11-01 23:42:19 +00:00

28 lines
497 B
Bash
Executable File

#!/bin/bash -e
# -----------------------------------------------------------------------------
# Generates the gRPC java artifacts from protobuf models.
# -----------------------------------------------------------------------------
out=$1
shift
proto_paths=$1
shift
protoc=$1
shift
plugin=$1
shift
#set -x
dir=$(dirname $out)
mkdir -p $dir
$protoc \
--plugin=protoc-gen-grpc-java=$plugin \
--grpc-java_out=$dir \
--java_out=$dir \
$proto_paths \
$*
cd $dir
jar -cf $out *