Closed GoogleCodeExporter closed 9 years ago
Original comment by david.yu...@gmail.com
on 6 Mar 2010 at 4:58
I've looked at the patch and its a good workaround. There are many limitations
to
using the code generator from protobuf classes.
Have you looked at the protostuff-compiler?
It covers all the limitations of code-generation from generated classes.
That should be able to solve your problem.
I'll update the online docs today.
Original comment by david.yu...@gmail.com
on 6 Mar 2010 at 7:32
I modified it a bit where the imports are declared as an option.
E.g
greet.fullClassname = com.example.bar.model.GreetProto
greet.outputPackage = com.example.bar.json
greet.outputDir = generated
greet.generator = json
greet.encoding = UTF-8
greet.options =
k1:v1,k2:v2,imports:com.example.bar.json.FooProto&com.example.bar.json.BarProto
The separator for the multiple imports is "&"
Note that this is a only workaround if using the protostuff-codegen.
It is very limited.
For most cases, I'd recommend protostuff-compiler.
Attached patch is applied.
Thanks for the initial patch!
Original comment by david.yu...@gmail.com
on 9 Mar 2010 at 4:46
Attachments:
Original issue reported on code.google.com by
oren.hur...@gmail.com
on 23 Jan 2010 at 7:36Attachments: