You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@gora.apache.org by "Andrzej Bialecki (JIRA)" <ji...@apache.org> on 2011/03/09 23:56:59 UTC

[jira] Created: (GORA-27) Optionally add license headers to generated files

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


Gora compiler should allow adding license headers to generated files.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Updated] (GORA-27) Optionally add license headers to generated files

Posted by "Chris A. Mattmann (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/GORA-27?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Chris A. Mattmann updated GORA-27:
----------------------------------

    Fix Version/s:     (was: 0.2-incubating)
                   0.3-incubating

- push to 0.3

> 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.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (GORA-27) Optionally add license headers to generated files

Posted by "Lewis John McGibbney (Commented) (JIRA)" <ji...@apache.org>.
    [ 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

        

[jira] [Commented] (GORA-27) Optionally add license headers to generated files

Posted by "Henry Saputra (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/GORA-27?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13041262#comment-13041262 ] 

Henry Saputra commented on GORA-27:
-----------------------------------

Andrzej, have you started to work on this? If yes I could assign it to you.

> 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.2-incubating
>
>
> Gora compiler should allow adding license headers to generated files.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Commented] (GORA-27) Optionally add license headers to generated files

Posted by "Lewis John McGibbney (Commented) (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/GORA-27?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13187202#comment-13187202 ] 

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

I was passed a link to the unofficial license-plugin[1] for maven, which in its current form statically fills the right ASF license header to existing Java/XML source code. We can maybe tweak this plugin source code to use within the Gora compilier to generate various license headers @ runtime as you mention Andrzej.

[1] http://code.google.com/p/maven-license-plugin/
                
> 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

        

[jira] [Commented] (GORA-27) Optionally add license headers to generated files

Posted by "Andrzej Bialecki (Commented) (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/GORA-27?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13167175#comment-13167175 ] 

Andrzej Bialecki  commented on GORA-27:
---------------------------------------

The code generator produces source code that doesn't have license headers. This complicates e.g. the process of signing off on a release. The simplest solution would be to modify the compiler to always add an ASL header, but it would be nicer if the license was configurable.
                
> 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

        

[jira] [Updated] (GORA-27) Optionally add license headers to generated files

Posted by "Lewis John McGibbney (Updated) (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/GORA-27?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Lewis John McGibbney updated GORA-27:
-------------------------------------

    Attachment: GORA-27-v2.patch

Updated patch to include possible headers users may wish to add to files:

-Apache_v2
-AGPL_v3
-CDDL_v1
-FDL_v1_3
-GPL_v1
-GPL_v2
-GPL_v3
-LGPL_v2_1
-LGPL_v3

Again this is nowhere near ready as all of the implementation needs to be covered.
                
> 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
>
>         Attachments: GORA-27-v2.patch, GORA-27.patch
>
>
> 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

        

[jira] [Commented] (GORA-27) Optionally add license headers to generated files

Posted by "Lewis John McGibbney (Commented) (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/GORA-27?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13167143#comment-13167143 ] 

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

What does this issue comprise of? Are th6ere existing libraries for this or are we looking at writing our own implementation? I found this [1], but I'-m pretty sure Andrzej was referrring to someth6ing slightly different. Any thoughts?

[1] http://aaronz-sakai.blogspot.com/2009/08/easy-license-headers-with-maven.html
                
> 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

        

[jira] [Updated] (GORA-27) Optionally add license headers to generated files

Posted by "Lewis John McGibbney (Updated) (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/GORA-27?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Lewis John McGibbney updated GORA-27:
-------------------------------------

    Attachment: GORA-27.patch

a brief start at this one.
                
> 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
>
>         Attachments: GORA-27.patch
>
>
> 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

        

[jira] [Commented] (GORA-27) Optionally add license headers to generated files

Posted by "Lewis John McGibbney (Commented) (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/GORA-27?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13187167#comment-13187167 ] 

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

OK I understand. One other question though, can you possibly expand a little regarding what type of licence headers we would aim for users to be able to configure? 
                
> 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