Comment #3 on issue 247 by compuwarescc: Ability to redirect file output to stdout
http://code.google.com/p/protobuf/issues/detail?id=247

To be honest I had not considered that scenario. Perhaps breaking this into two feature requests would be more appropriate...

1) Command line flag to output to a source archive (zip / jar / tar) "--archive=zip"

( Similar in form to a standard "source archive" where java source files are where their compiled classes would normally be in the jar file. -- noting, of course, that a jar file is really just a zip file and that this feature would require some implementation of assembling zip files being included in protoc )

2) Command line flag to stream the contents of the archive to stdout, which would imply or require that the flag to output to an archive was set. "--stdout"

This solution is a bit more complicated but should work for multiple languages and does not affect the potential contents of the file like a reserved delimiter would. For java, the classes provided with the JRE JarInputStream, ZipInputStream, etc... can be used to read this input easily from stdout.

--
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