Comment #4 on issue 183 by t.broyer: --java_out=output_list_file= parameter fails when compiling multiple proto files
http://code.google.com/p/protobuf/issues/detail?id=183

In the event you'd like to fix this anyway, it might be as easy as adding a new
method to CodeGenerator:
   public:
    virtual bool Generate(const vector<const FileDescriptor*>& parsed_files,
                          const string& parameter,
                          OutputDirectory* output_directory,
                          string* error);
to encapsulate the loop that's found in both CommandLineInterface::GenerateOutput and PluginMain (the latter function would need some refactoring to actually build the
vector<const FileDescriptor*> out of the DescriptorPool and
CodeGeneratorRequest::file_to_generate) and that could be overridden (or you could make it non-virtual and provide start/end protected virtual methods as hooks called before and after the loop respectively). The current per-FileDescriptor method would
likely become protected too.

--
You received this message because you are listed in the owner
or CC fields of this issue, or because you starred this issue.
You may adjust your issue notification preferences at:
http://code.google.com/hosting/settings

--
You received this message because you are subscribed to the Google Groups "Protocol 
Buffers" group.
To post to this group, send email to proto...@googlegroups.com.
To unsubscribe from this group, send email to 
protobuf+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/protobuf?hl=en.

Reply via email to