[Acceleo 3.1] protected block [message #636510] |
Mon, 01 November 2010 12:10  |
Eclipse User |
|
|
|
Hi,
I'm trying to generate code for xml files. Is there any restrictions of the type of comments respected on the protected 'zone'?
The problem is that every time, when I edit the code between the protected block on the generated xml file, this code is erased after a regeneration and a .xml.lost file is generated with the erased code.
<!--[protected ('protected')]-->
<!--[/protected]-->
You know that for comments in xml I have to use: " <!--" and "-->"
If I only use the protected tags:
[protected ('protected')]
[/protected]
then all is fine, but I need the tags for the comments: "<!--"...
Thanks you,
Sergio
|
|
|
|
Re: [Acceleo 3.1] protected block [message #636586 is a reply to message #636578] |
Tue, 02 November 2010 01:36   |
Eclipse User |
|
|
|
Thank you for the answer.
Yes, really I can't believe what's happening here. I was working with acceleo a few years ago, and after made some test this summer with acceleo 3.0, we began a big new project with accelo 3.1. Now I only have 3 protected zones in a acceleo project, this is the code:
- zone 1:
Logger.debug(this, "[o.name/]", "inicio");
//[protected ('delegateService')]
//[/protected]
remoteService.setParameters([getParametertToCall(o) /]);
-> the code here is not respected, and no *.lost file is generated.
- zone 2:
<!--[protected ('generateContext')]-->
<!--[/protected]-->
--> the code here is not respected, but a *.lost file is generated
- zone 3:
<!--[protected ('generateServicesXML')]-->
<!--[/protected]-->
--> the code here is not respected, but a *.lost file is generated
I'm sure that I'm doing a great mistake, but by the time I can't
see what's wrong.
thank you!
[Updated on: Tue, 02 November 2010 01:37] by Moderator
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.06171 seconds