File.pathSeparatorChar is : on Unix, but protoc already uses :
to delimit the plugin options from the plugin output directory. So
trying to include a list of paths for the kotlin_service_gen option
fails because protoc splits on the first : character it sees in the
--kotlin_out value.
Instead hardcode the path splitting for the kotlin_service_gen option
to use ; (which also happens to be the value of
File.pathSeparatorChar on Windows) on all platforms.
File.pathSeparatorChar
is:
on Unix, butprotoc
already uses:
to delimit the plugin options from the plugin output directory. So trying to include a list of paths for thekotlin_service_gen
option fails becauseprotoc
splits on the first:
character it sees in the--kotlin_out
value.Instead hardcode the path splitting for the
kotlin_service_gen
option to use;
(which also happens to be the value ofFile.pathSeparatorChar
on Windows) on all platforms.