Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 368296

Summary: Please provide copyright to files generated from grammar.
Product: [Modeling] TMF Reporter: Alex Ruiz <alruiz>
Component: XtextAssignee: Project Inbox <tmf.xtext-inbox>
Status: CLOSED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: alruiz, lw, sven.efftinge
Version: 2.2.1   
Target Milestone: ---   
Hardware: PC   
OS: Linux   
See Also: https://github.com/eclipse/xtext/pull/796
Whiteboard: v2.9

Description Alex Ruiz CLA 2012-01-10 16:25:20 EST
Build Identifier: M20110909-1335

We are currently storing the files generated by the grammar in source control because calling the MWE2 code generated from our build system is not simple or reliable.

The issue is that generated code does not have any copyright notice. It would be really helpful if generated files had something like

Generated by Xtext ${version} ${date}

in the <copyright> element at the top of each file.

Many thanks in advance.

Reproducible: Always

Steps to Reproduce:
N/A
Comment 1 Lutz Wrage CLA 2015-11-11 18:59:39 EST
In Xtext 2.8.x the fileHeader attribute can be used to add a copyright header to generated Java files. However, this does not work for code generated from the generated ecore editor. There needs to be a way to fill the "copyright text" property in the genmodel file.
Comment 2 Eclipse Genie CLA 2015-11-11 23:21:53 EST
GitHub Pull Request 796 created by [svenefftinge]
https://github.com/eclipse/xtext/pull/796
Comment 3 Sven Efftinge CLA 2015-11-12 04:08:43 EST
merged
Comment 4 Eclipse Webmaster CLA 2017-10-31 11:06:42 EDT
Requested via bug 522520.

-M.
Comment 5 Eclipse Webmaster CLA 2017-10-31 11:18:06 EDT
Requested via bug 522520.

-M.