[
https://issues.apache.org/jira/browse/THRIFT-537?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12754203#action_12754203
]
Bruce Simpson commented on THRIFT-537:
--------------------------------------
It sounds easy enough in principle to do, however:
whilst the per-language generators all inherit from t_oop_generator, which has
a method autogen_comment(), most of them don't use the base method internally.
So you'd have to decide if this header is language independent or not, and if
any fields need to be substituted.
> prepend texts to generated files
> --------------------------------
>
> Key: THRIFT-537
> URL: https://issues.apache.org/jira/browse/THRIFT-537
> Project: Thrift
> Issue Type: Wish
> Components: Compiler (C#), Compiler (C++), Compiler (Cocoa),
> Compiler (Erlang), Compiler (General), Compiler (Haskell), Compiler (Java),
> Compiler (Perl), Compiler (PHP), Compiler (Python), Compiler (Ruby)
> Reporter: Eric Evans
>
> It would be great if there were an option you could pass to the compiler in
> order to specify a file, the contents of which would be prepended to
> generated source as comments. This would be useful for license texts,
> copyright notices, disclaimers, etc.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.