[ 
https://issues.apache.org/jira/browse/GORA-27?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13187231#comment-13187231
 ] 

Lewis John McGibbney commented on GORA-27:
------------------------------------------

This class [1] seems to have the bulk of what we need. Some tailored code could 
be inserted into o.a.g.compiler.GoraCompiler#header()

This would parse a headers-template.file.txt and retrieve one template matching 
the given parameter string and apply the appropriate header to the generated 
code. Something like

bin/gora Usage: SpecificCompiler <schema file> <license header> <output dir>

[1] 
http://maven-license-plugin.googlecode.com/svn/branches/maven-license-plugin-1.x.x/src/main/java/com/google/code/mojo/license/header/Header.java
                
> Optionally add license headers to generated files
> -------------------------------------------------
>
>                 Key: GORA-27
>                 URL: https://issues.apache.org/jira/browse/GORA-27
>             Project: Gora
>          Issue Type: Improvement
>          Components: schema
>    Affects Versions: 0.1-incubating, 0.2-incubating
>            Reporter: Andrzej Bialecki 
>             Fix For: 0.3-incubating
>
>
> Gora compiler should allow adding license headers to generated files.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: 
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Reply via email to