Open makefriend8 opened 6 years ago
This looks a bug of protoc 3.5, it could not recognize wildcard * properly. if using protoc 3.4 the problem is gone.
you can try this
setlocal enabledelayedexpansion enableextensions
set PROTO_FILES=
for /f %%x in ('dir /b/s %PROTO_ROOT%\*.proto') do set PROTO_FILES=!PROTO_FILES! %%x
protoc --doc_out=./doc --doc_opt=html,index.html %PROTO_FILES%
for example (under windows CMD)
protoc --doc_out=./doc --doc_opt=html,index.html ./mytest1.proto
correct butprotoc --doc_out=./doc --doc_opt=html,index.html ./*.proto
just return./*.proto No such file or directory.
why ?what should I do?