EMF: Generated classes - Copyright details [message #621868] |
Wed, 02 December 2009 09:43  |
Eclipse User |
|
|
|
Hi all,
I am using genmodel to generate Model Code.
I set Copyright text and it is generated correctly but I have $Id$ at the end of every copyright header.
How can I remove this $Id$?
Thanks in advance,
Stancho
|
|
|
Re: EMF: Generated classes - Copyright details [message #621870 is a reply to message #621868] |
Wed, 02 December 2009 09:57  |
Eclipse User |
|
|
|
This is a multi-part message in MIME format.
--------------000003080805010705010902
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Stancho,
The Header.javajetinc template looks like this so if you've set the
copyright property property on the GenModel or include copyright
annotations in the Ecore model, those should end up being used.
/**
<%{GenBase copyrightHolder = argument instanceof GenBase ?
(GenBase)argument : argument instanceof Object[] &&
((Object[])argument)[0] instanceof GenBase ?
(GenBase)((Object[])argument)[0] : null;%>
<%if (copyrightHolder != null && copyrightHolder.hasCopyright()) {%>
*
< %=copyrightHolder.getCopyright(copyrightHolder.getGenModel() .getIndentation(stringBuffer))% >
<%} else {%>
* <copyright>
* </copyright>
*
* <%="$"%>Id<%="$"%>
<%}}%>
*/
Which version of EMF are you using?
Stancho wrote:
> Hi all,
>
> I am using genmodel to generate Model Code.
> I set Copyright text and it is generated correctly but I have $Id$ at
> the end of every copyright header.
>
> How can I remove this $Id$?
>
> Thanks in advance,
> Stancho
--------------000003080805010705010902
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: 8bit
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html;charset=UTF-8" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
Stancho,<br>
<br>
The Header.javajetinc template looks like this so if you've set the
copyright property property on the GenModel or include copyright
annotations in the Ecore model, those should end up being used.<br>
<blockquote><small>/**<br>
<%{GenBase copyrightHolder = argument instanceof GenBase ?
(GenBase)argument : argument instanceof Object[] &&
((Object[])argument)[0] instanceof GenBase ?
(GenBase)((Object[])argument)[0] : null;%><br>
<%if (copyrightHolder != null &&
copyrightHolder.hasCopyright()) {%><br>
*
<%=copyrightHolder.getCopyright(copyrightHolder.getGe nModel().getIndentation(stringBuffer))%> <br>
<%} else {%><br>
* <copyright><br>
* </copyright><br>
*<br>
* <%="$"%>Id<%="$"%><br>
<%}}%><br>
*/</small><br>
</blockquote>
Which version of EMF are you using?<br>
<br>
<br>
Stancho wrote:
<blockquote cite="mid:hf5uee$vl5$1@build.eclipse.org" type="cite">Hi
all,
<br>
<br>
I am using genmodel to generate Model Code.
<br>
I set Copyright text and it is generated correctly but I have $Id$ at
the end of every copyright header.
<br>
<br>
How can I remove this $Id$?
<br>
<br>
Thanks in advance,
<br>
Stancho
<br>
</blockquote>
</body>
</html>
--------------000003080805010705010902--
|
|
|
Powered by
FUDForum. Page generated in 0.03072 seconds