Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 368296 - Please provide copyright to files generated from grammar.
Summary: Please provide copyright to files generated from grammar.
Status: CLOSED FIXED
Alias: None
Product: TMF
Classification: Modeling
Component: Xtext (show other bugs)
Version: 2.2.1   Edit
Hardware: PC Linux
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard: v2.9
Keywords:
Depends on:
Blocks:
 
Reported: 2012-01-10 16:25 EST by Alex Ruiz CLA
Modified: 2017-10-31 11:18 EDT (History)
3 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.