diff options
Diffstat (limited to 'compile_protobuf.sh')
-rwxr-xr-x | compile_protobuf.sh | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/compile_protobuf.sh b/compile_protobuf.sh new file mode 100755 index 00000000000..8e07c4dc2cd --- /dev/null +++ b/compile_protobuf.sh @@ -0,0 +1,14 @@ +#!/bin/bash + +# Usage: compile_protobuf <inputDir> <outputDir> +function compile_protobuf { + echo "Compiling [$1] to [$2]..." + mkdir -p $2 + protoc --proto_path=$1 --java_out=$2 $1/*.proto +} + +compile_protobuf "sonar-core/src/test/protobuf" "sonar-core/src/test/gen-java" +compile_protobuf "sonar-batch-protocol/src/main/protobuf" "sonar-batch-protocol/src/main/gen-java" + + + |