This message was deleted.
# community-support
s
This message was deleted.
v
That you can execute it from commandline is irrelevant, as the build expected it's own managed protoc. You didn't show all relevant parts, especially where
protoc
is set. But I guess somewhere it is set as
ext
variable to the
File
after downloading and unzipping and that part is not executed when only doing
generateProto
. That build is full of bad practices and you did not show all relevant parts, so it is very hard to give an advice. But maybe adding a task dependency from
generateProto
to
getProtoc
would at least treat the symptoms and make the build work halfway.
k
Thanks for your replay @Vampire The following is the entire content of the file. Can you help me take a look?
v
Urgh, not really. There are even waaaay more bad practices than the previous snippet suggested. But actually in line 15
protoc
is defined as local variable with a
File
value. So your
if
checks whether the file is there at the expected location and this does not seem to be the case. Double check it manually in the file system. Maybe the
getProtoc
task is behaving badly and thinks it is up-to-date while it isn't, or you changed protobuf version and the directory layout changed, or something similar. Impossible to say from here.
k
Thank you for your reply. @Vampire In fact this document is also someone else’s project that I am interpreting. I checked the file path mentioned in line 15 according to your tips and copied protoc there. Now it seems that I can move on. Thank you very much.