Community
Participate
Working Groups
Build Identifier: I20100608-0911 The headers of the generated java files won't be updated after changing the 'Copyright Text' (or the 'Header.javajetinc' itself). Reproducible: Always Steps to Reproduce: 1. Change the 'Copyright Text' in your Genmodel 2. Generate code 3. Open a generated class of your choise and check if the header has the new copyright text
That's working as designed. The copyright header is generally modified after being generated, e.g., copyright dates, names of copyright holders and names of additional contributors as their contributions are committed. If you've not modified anything yet, you can delete all the files to generate fresh ones with the initial copyright notices of your design.
(In reply to comment #1) > That's working as designed. The copyright header is generally modified after > being generated, e.g., copyright dates, names of copyright holders... Indeed, but in our case it would be much better (and smarter) to use the copyright text from the genmodel or just to adjust a single custom header template. Actually I tried exactly this and wondered why the generation of the header doesn't behave like the rest... I expected the header generation to behave like the generation of the jdoc. Sth. like "<!-- begin-user-doc --><!-- end-user-doc -->" would be nice and could helping out with "names ofadditional contributors". > If you've not > modified anything yet, you can delete all the files to generate fresh ones Sadly, we have a bunch of operations and customizations... I solved the problem with a creepy regex...
Additionally, who cares about the header when generating code for a model the first time? I think very few till nobody. So, you are automatically forced to delete the generated stuff at least for one time. Hopefully, you haven't made some customizations... But I agree, headers won't change that often. So, I think it's not that important.