| [Acceleo] JMerge tags with standalone generator [message #953647] |
Mon, 22 October 2012 08:18  |
Vincent Aranega Messages: 7 Registered: July 2009 |
Junior Member |
|
|
Hello,
I'm trying to use "@generated" JMerge tags for a Java generator (running standalone). Unfortunately, even if the @generated annotation are well placed in the generated code, a second generation do not generate anything. Each manual modification performed in the source code between tagged methods is not overwritten. Actually, it seems that the code is no longer generated. This trouble appears with the generator launched standalone. When the generation is launched by an acceleo configuration, problem is gone, annotations work fine.
I take a look toward the DefaultStrategy strategy, but it seems to enable JMerge tag usage.
Is the problem coming from a missing generator argument?
Regards,
Vincent
|
|
|
|
| Re: [Acceleo] JMerge tags with standalone generator [message #957472 is a reply to message #957382] |
Thu, 25 October 2012 04:47  |
Laurent Goubet Messages: 1553 Registered: July 2009 |
Senior Member |
|
|
Hi Vincent,
Acceleo disables JMerge when outside of Eclipse for two reasons :
- Avoid the dependency towards org.eclipse.emf.codegen for standalone Acceleo applications
- JMerge did not work standalone until recently (bug 308069). IIRC, this has been fixed for Juno (Ed Willink and/or Ed Merks might help here, did not re-read through the bug).
Since this is only possible for Juno and onwards, your solution is the only one that works : the default generation strategy of Acceleo does not allow (does not even call) JMerge when running standalone as Acceleo is compatible down to Eclipse 3.5 (Galileo). However, if you do create such a generation strategy, do not hesitate to raise a bug against Acceleo with it attached, we can add it to the codebase as a fourth "example" along with the Default, workspace and preview strategies.
Laurent Goubet
Obeo
[Updated on: Thu, 25 October 2012 04:49] Report message to a moderator
|
|
|
Powered by
FUDForum. Page generated in 0.01574 seconds