I am trying to build a custom protoc plugin to generate custom output from .proto files. I literally copied java file containing CodeGenerator from protoc custom plugin as a sta
how about using absolute path of example.sh? protoc working directory may not be current folder.
If that is your entire example.sh
, it won't work because it doesn't have a "hashbang" line identifying the script interpreter.
It should be something like:
#!/bin/bash
set -e
java cp ...
I think that's likely your problem because I tried running protoc
and specifying an plug-in in the same way you did, and it worked as long as the plug-in was actually executable on its own.