Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF » Copyright text isn't regenerated
Copyright text isn't regenerated [message #422941] Fri, 19 September 2008 12:58 Go to next message
Eclipse UserFriend
Originally posted by: NOSPAM-magnus.rundlof.saabgroup.com-NOSPAM

Hi

I have a large software component generated from Ecore models. In the
beginning of each file I want a copyright text. EMF supports this by setting
the following properties in the Generator Model

Copyright Fields = true
Copyright Text = "My copyright text"

This works fine the first time I generate, but if I would like to change the
text, say for example update the copyright year, it doesn't take effect. I
need to delete the file and regenerate for the new copyright text to show.
Why is this?

Also, out of curiosity, what's up with the $Id$ that is appended to the
copyright text?

Regards/
Magnus
Re: Copyright text isn't regenerated [message #422944 is a reply to message #422941] Fri, 19 September 2008 13:18 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: cdamus.zeligsoft.com

Hi, Magnus,

See some replies in-line, below.

Cheers,

Christian

Magnus Rundlof wrote:
> Hi
>
> I have a large software component generated from Ecore models. In the
> beginning of each file I want a copyright text. EMF supports this by setting
> the following properties in the Generator Model
>
> Copyright Fields = true
> Copyright Text = "My copyright text"
>
> This works fine the first time I generate, but if I would like to change the
> text, say for example update the copyright year, it doesn't take effect. I
> need to delete the file and regenerate for the new copyright text to show.
> Why is this?

This is a known limitation. Other text that isn't regenerated includes
the plugin.xml and MANIFEST.MF.


> Also, out of curiosity, what's up with the $Id$ that is appended to the
> copyright text?

That's a keyword known to CVS, which the CVS server expands to record
timestamp, user ID, and other tractking information for the file.

If you are not using CVS, then you can define custom templates using
EMF's "dynamic templates" capability to override the HEADER.javajetinc,
HEADER.propertiesjetinc, etc. templates.

>
> Regards/
> Magnus
>
>
Re: Copyright text isn't regenerated [message #423046 is a reply to message #422944] Mon, 22 September 2008 07:23 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: NOSPAM-magnus.rundlof.saabgroup.com-NOSPAM

Hi Christian, thanks for you reply

Known limitation? Does that mean that it will fixed in a near future?

Regards/
Magnus


"Christian W. Damus" <cdamus@zeligsoft.com> wrote in message
news:gb08r4$g8d$1@build.eclipse.org...
>
> Hi, Magnus,
>
> See some replies in-line, below.
>
> Cheers,
>
> Christian
>
> Magnus Rundlof wrote:
>> Hi
>>
>> I have a large software component generated from Ecore models. In the
>> beginning of each file I want a copyright text. EMF supports this by
>> setting the following properties in the Generator Model
>>
>> Copyright Fields = true
>> Copyright Text = "My copyright text"
>>
>> This works fine the first time I generate, but if I would like to change
>> the text, say for example update the copyright year, it doesn't take
>> effect. I need to delete the file and regenerate for the new copyright
>> text to show. Why is this?
>
> This is a known limitation. Other text that isn't regenerated includes
> the plugin.xml and MANIFEST.MF.
>
>
>> Also, out of curiosity, what's up with the $Id$ that is appended to the
>> copyright text?
>
> That's a keyword known to CVS, which the CVS server expands to record
> timestamp, user ID, and other tractking information for the file.
>
> If you are not using CVS, then you can define custom templates using EMF's
> "dynamic templates" capability to override the HEADER.javajetinc,
> HEADER.propertiesjetinc, etc. templates.
>
>>
>> Regards/
>> Magnus
>>
Re: Copyright text isn't regenerated [message #423067 is a reply to message #423046] Mon, 22 September 2008 15:03 Go to previous messageGo to next message
Ed Merks is currently offline Ed MerksFriend
Messages: 33113
Registered: July 2009
Senior Member
This is a multi-part message in MIME format.
--------------050406080802000603030504
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit

Magnus,

I don't even think of it as a limitation. Copyright notices tend to
evolve over time. For example, most will include the year the file
itself was first created as well as the year of the most recent
modification. Simply overwriting the copyright notice doesn't seem like
a good idea.


Magnus Rundlof wrote:
> Hi Christian, thanks for you reply
>
> Known limitation? Does that mean that it will fixed in a near future?
>
> Regards/
> Magnus
>
>
> "Christian W. Damus" <cdamus@zeligsoft.com> wrote in message
> news:gb08r4$g8d$1@build.eclipse.org...
>
>> Hi, Magnus,
>>
>> See some replies in-line, below.
>>
>> Cheers,
>>
>> Christian
>>
>> Magnus Rundlof wrote:
>>
>>> Hi
>>>
>>> I have a large software component generated from Ecore models. In the
>>> beginning of each file I want a copyright text. EMF supports this by
>>> setting the following properties in the Generator Model
>>>
>>> Copyright Fields = true
>>> Copyright Text = "My copyright text"
>>>
>>> This works fine the first time I generate, but if I would like to change
>>> the text, say for example update the copyright year, it doesn't take
>>> effect. I need to delete the file and regenerate for the new copyright
>>> text to show. Why is this?
>>>
>> This is a known limitation. Other text that isn't regenerated includes
>> the plugin.xml and MANIFEST.MF.
>>
>>
>>
>>> Also, out of curiosity, what's up with the $Id$ that is appended to the
>>> copyright text?
>>>
>> That's a keyword known to CVS, which the CVS server expands to record
>> timestamp, user ID, and other tractking information for the file.
>>
>> If you are not using CVS, then you can define custom templates using EMF's
>> "dynamic templates" capability to override the HEADER.javajetinc,
>> HEADER.propertiesjetinc, etc. templates.
>>
>>
>>> Regards/
>>> Magnus
>>>
>>>
>
>

--------------050406080802000603030504
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
Magnus,<br>
<br>
I don't even think of it as a limitation.&nbsp; Copyright notices tend to
evolve over time.&nbsp; For example, most will include the year the file
itself was first created as well as the year of the most recent
modification.&nbsp; Simply overwriting the copyright notice doesn't seem
like a good idea.<br>
<br>
<br>
Magnus Rundlof wrote:
<blockquote cite="mid:gb7h4p$aje$1@build.eclipse.org" type="cite">
<pre wrap="">Hi Christian, thanks for you reply

Known limitation? Does that mean that it will fixed in a near future?

Regards/
Magnus


"Christian W. Damus" <a class="moz-txt-link-rfc2396E" href="mailto:cdamus@zeligsoft.com">&lt;cdamus@zeligsoft.com&gt;</a> wrote in message
<a class="moz-txt-link-freetext" href="news:gb08r4$g8d$1@build.eclipse.org">news:gb08r4$g8d$1@build.eclipse.org</a>...
</pre>
<blockquote type="cite">
<pre wrap="">Hi, Magnus,

See some replies in-line, below.

Cheers,

Christian

Magnus Rundlof wrote:
</pre>
<blockquote type="cite">
<pre wrap="">Hi

I have a large software component generated from Ecore models. In the
beginning of each file I want a copyright text. EMF supports this by
setting the following properties in the Generator Model

Copyright Fields = true
Copyright Text = "My copyright text"

This works fine the first time I generate, but if I would like to change
the text, say for example update the copyright year, it doesn't take
effect. I need to delete the file and regenerate for the new copyright
text to show. Why is this?
</pre>
</blockquote>
<pre wrap="">This is a known limitation. Other text that isn't regenerated includes
the plugin.xml and MANIFEST.MF.


</pre>
<blockquote type="cite">
<pre wrap="">Also, out of curiosity, what's up with the $Id$ that is appended to the
copyright text?
</pre>
</blockquote>
<pre wrap="">That's a keyword known to CVS, which the CVS server expands to record
timestamp, user ID, and other tractking information for the file.

If you are not using CVS, then you can define custom templates using EMF's
"dynamic templates" capability to override the HEADER.javajetinc,
HEADER.propertiesjetinc, etc. templates.

</pre>
<blockquote type="cite">
<pre wrap="">Regards/
Magnus

</pre>
</blockquote>
</blockquote>
<pre wrap=""><!---->
</pre>
</blockquote>
</body>
</html>

--------------050406080802000603030504--


Ed Merks
Professional Support: https://www.macromodeling.com/
Re: Copyright text isn't regenerated [message #423075 is a reply to message #423067] Mon, 22 September 2008 15:58 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: cdamus.zeligsoft.com

Hi, Ed,

Good point. Perhaps there's a GSoC project here: a smart copyright
merge that

- updates the date range to include the current year
- adds your employer to the copyright-holders list
- integrates with Mylyn to record the contributor name and bug ID
- formats all of this information tidily

:-D

cW

Ed Merks wrote:
> Magnus,
>
> I don't even think of it as a limitation. Copyright notices tend to
> evolve over time. For example, most will include the year the file
> itself was first created as well as the year of the most recent
> modification. Simply overwriting the copyright notice doesn't seem like
> a good idea.
>
>
> Magnus Rundlof wrote:
>> Hi Christian, thanks for you reply
>>
>> Known limitation? Does that mean that it will fixed in a near future?
>>
>> Regards/
>> Magnus
>>
>>
>> "Christian W. Damus" <cdamus@zeligsoft.com> wrote in message
>> news:gb08r4$g8d$1@build.eclipse.org...
>>
>>> Hi, Magnus,
>>>
>>> See some replies in-line, below.
>>>
>>> Cheers,
>>>
>>> Christian
>>>
>>> Magnus Rundlof wrote:
>>>
>>>> Hi
>>>>
>>>> I have a large software component generated from Ecore models. In the
>>>> beginning of each file I want a copyright text. EMF supports this by
>>>> setting the following properties in the Generator Model
>>>>
>>>> Copyright Fields = true
>>>> Copyright Text = "My copyright text"
>>>>
>>>> This works fine the first time I generate, but if I would like to change
>>>> the text, say for example update the copyright year, it doesn't take
>>>> effect. I need to delete the file and regenerate for the new copyright
>>>> text to show. Why is this?
>>>>
>>> This is a known limitation. Other text that isn't regenerated includes
>>> the plugin.xml and MANIFEST.MF.
>>>
>>>
>>>
>>>> Also, out of curiosity, what's up with the $Id$ that is appended to the
>>>> copyright text?
>>>>
>>> That's a keyword known to CVS, which the CVS server expands to record
>>> timestamp, user ID, and other tractking information for the file.
>>>
>>> If you are not using CVS, then you can define custom templates using EMF's
>>> "dynamic templates" capability to override the HEADER.javajetinc,
>>> HEADER.propertiesjetinc, etc. templates.
>>>
>>>
>>>> Regards/
>>>> Magnus
>>>>
>>>>
>>
>>
Re: Copyright text isn't regenerated [message #426345 is a reply to message #423067] Sun, 28 December 2008 16:18 Go to previous messageGo to next message
Eike Stepper is currently offline Eike StepperFriend
Messages: 6682
Registered: July 2009
Senior Member
Ed,

I'm also just stumbling about this "feature". I realized that I forgot
to configure the copyright header property in many genmodel files. Am I
really supposed to add the copyright text to all generated files
manually now?

Cheers
/Eike

----
http://thegordian.blogspot.com



Ed Merks schrieb:
> Magnus,
>
> I don't even think of it as a limitation. Copyright notices tend to
> evolve over time. For example, most will include the year the file
> itself was first created as well as the year of the most recent
> modification. Simply overwriting the copyright notice doesn't seem
> like a good idea.
>
>
> Magnus Rundlof wrote:
>> Hi Christian, thanks for you reply
>>
>> Known limitation? Does that mean that it will fixed in a near future?
>>
>> Regards/
>> Magnus
>>
>>
>> "Christian W. Damus" <cdamus@zeligsoft.com> wrote in message
>> news:gb08r4$g8d$1@build.eclipse.org...
>>
>>> Hi, Magnus,
>>>
>>> See some replies in-line, below.
>>>
>>> Cheers,
>>>
>>> Christian
>>>
>>> Magnus Rundlof wrote:
>>>
>>>> Hi
>>>>
>>>> I have a large software component generated from Ecore models. In the
>>>> beginning of each file I want a copyright text. EMF supports this by
>>>> setting the following properties in the Generator Model
>>>>
>>>> Copyright Fields = true
>>>> Copyright Text = "My copyright text"
>>>>
>>>> This works fine the first time I generate, but if I would like to change
>>>> the text, say for example update the copyright year, it doesn't take
>>>> effect. I need to delete the file and regenerate for the new copyright
>>>> text to show. Why is this?
>>>>
>>> This is a known limitation. Other text that isn't regenerated includes
>>> the plugin.xml and MANIFEST.MF.
>>>
>>>
>>>
>>>> Also, out of curiosity, what's up with the $Id$ that is appended to the
>>>> copyright text?
>>>>
>>> That's a keyword known to CVS, which the CVS server expands to record
>>> timestamp, user ID, and other tractking information for the file.
>>>
>>> If you are not using CVS, then you can define custom templates using EMF's
>>> "dynamic templates" capability to override the HEADER.javajetinc,
>>> HEADER.propertiesjetinc, etc. templates.
>>>
>>>
>>>> Regards/
>>>> Magnus
>>>>
>>>>
>>
>>


Re: Copyright text isn't regenerated [message #426346 is a reply to message #426345] Sun, 28 December 2008 17:21 Go to previous message
Ed Merks is currently offline Ed MerksFriend
Messages: 33113
Registered: July 2009
Senior Member
Eike,

There are merge rules you could specialize along with dynamic templates:

<merge:pull
sourceGet="CompilationUnit/getHeader"
targetPut="CompilationUnit/setHeader"/>


Eike Stepper wrote:
> Ed,
>
> I'm also just stumbling about this "feature". I realized that I forgot
> to configure the copyright header property in many genmodel files. Am
> I really supposed to add the copyright text to all generated files
> manually now?
>
> Cheers
> /Eike
>
> ----
> http://thegordian.blogspot.com
>
>
>
> Ed Merks schrieb:
>> Magnus,
>>
>> I don't even think of it as a limitation. Copyright notices tend to
>> evolve over time. For example, most will include the year the file
>> itself was first created as well as the year of the most recent
>> modification. Simply overwriting the copyright notice doesn't seem
>> like a good idea.
>>
>>
>> Magnus Rundlof wrote:
>>> Hi Christian, thanks for you reply
>>>
>>> Known limitation? Does that mean that it will fixed in a near future?
>>>
>>> Regards/
>>> Magnus
>>>
>>>
>>> "Christian W. Damus" <cdamus@zeligsoft.com> wrote in message
>>> news:gb08r4$g8d$1@build.eclipse.org...
>>>
>>>> Hi, Magnus,
>>>>
>>>> See some replies in-line, below.
>>>>
>>>> Cheers,
>>>>
>>>> Christian
>>>>
>>>> Magnus Rundlof wrote:
>>>>
>>>>> Hi
>>>>>
>>>>> I have a large software component generated from Ecore models. In
>>>>> the beginning of each file I want a copyright text. EMF supports
>>>>> this by setting the following properties in the Generator Model
>>>>>
>>>>> Copyright Fields = true
>>>>> Copyright Text = "My copyright text"
>>>>>
>>>>> This works fine the first time I generate, but if I would like to
>>>>> change the text, say for example update the copyright year, it
>>>>> doesn't take effect. I need to delete the file and regenerate for
>>>>> the new copyright text to show. Why is this?
>>>>>
>>>> This is a known limitation. Other text that isn't regenerated
>>>> includes the plugin.xml and MANIFEST.MF.
>>>>
>>>>
>>>>
>>>>> Also, out of curiosity, what's up with the $Id$ that is appended
>>>>> to the copyright text?
>>>>>
>>>> That's a keyword known to CVS, which the CVS server expands to
>>>> record timestamp, user ID, and other tractking information for the
>>>> file.
>>>>
>>>> If you are not using CVS, then you can define custom templates
>>>> using EMF's "dynamic templates" capability to override the
>>>> HEADER.javajetinc, HEADER.propertiesjetinc, etc. templates.
>>>>
>>>>
>>>>> Regards/
>>>>> Magnus
>>>>>
>>>>>
>>>
>>>


Ed Merks
Professional Support: https://www.macromodeling.com/
Previous Topic:Re: How to customize the date type of xsd in EMF
Next Topic:[Teneo] Problem saving EPackage loaded from database
Goto Forum:
  


Current Time: Fri Mar 29 10:35:25 GMT 2024

Powered by FUDForum. Page generated in 0.02954 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top