[ 
https://issues.apache.org/jira/browse/THRIFT-537?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12754262#action_12754262
 ] 

Todd Lipcon commented on THRIFT-537:
------------------------------------

bq. So you'd have to decide if this header is language independent or not, and 
if any fields need to be substituted. 

Seems to me that the header should be language-dependent, given most of the 
time this will want to be a comment, and comment syntax is different. Given 
that many groups of languages share syntax, you should be able to specify a 
given header for a set of languages - perhaps with a '*' wildcard option.

As for substituted fields, I think the basics would be (1) username who ran 
thrift, (2) timestamp of generation, (3) absolute path of source file. But I 
don't see these features as crucial for the most common use case (license 
headers)

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

Reply via email to