How to run chain transformations using ANT? [message #1057844] |
Thu, 09 May 2013 05:37  |
Javier García Messages: 70 Registered: April 2013 |
Member |
|
|
Hi everybody,
I made a "transformation chain" with three different transformations and I would like to make them run with a simple click instead of having to click on each one of them and run them.
EDIT:
I tested ant, but I followed this guide (http://wiki.eclipse.org/ATL/User_Guide_-_The_ATL_Tools#ATL_ant_tasks ), the first transformation works, it's a normal transformation using superimposition and it works just fine.
The problem is with the second transformation, it uses REFINING mode, and it just gives an empty file, so what could I do? is it not supported?
Because on the user guide it just says to write "refining = "true" and then it should work.
This is the code from my refining transformation that doesn't work:
<atl.launch path="Superimposition/SecondStepRefiningRCP2GWT.asm" refining="true">
<option name="supportUML2Stereotypes" value="true"/>
<inmodel name="IN" model="myModel-B" />
<outmodel name="OUT" model="myModel-C" metamodel="UML2" />
</atl.launch >
Thanks in advance,
regards,
Javier
[Updated on: Fri, 10 May 2013 05:10] Report message to a moderator
|
|
|
|
|
| Re: How to run chain transformations using ANT? [message #1058285 is a reply to message #1057844] |
Mon, 13 May 2013 09:06   |
Hugo Bruneliere Messages: 469 Registered: July 2009 |
Senior Member |
|
|
Hello Javier,
When setting the input/output model of a refining transformation, you have to use the inoutmodel parameter (instead of specifying inmodel + outmodel) as the ATL refining mode is "in-place" and so actually works on a single (both input and output) model.
This could be the source of your current problem.
Hugo
------------------------------------------
Hugo Bruneliere - R&D Engineer
AtlanMod research team (Inria, EMN & LINA)
Ecole des Mines de Nantes
Nantes - France
------------------------------------------
|
|
|
| Re: How to run chain transformations using ANT? [message #1058453 is a reply to message #1058285] |
Tue, 14 May 2013 03:53   |
Javier García Messages: 70 Registered: April 2013 |
Member |
|
|
Hey Hugo,
yes of course you're right, I realized this error before but forgot to comment it here, now it looks like this:
<atl.launch path="Superimposition/SecondStepRefiningRCP2GWT.asm" refining="true">
<inoutmodel name="IN" model="myModel-B" />
</atl.launch >
<atl.saveModel model="myModel-B" path="Models/ChainTransformedModel.uml"/>
And yes, the transformation works ok, the problem comes when I try to save it, it shows the error I commented on this other thread: http://www.eclipse.org/forums/index.php/m/1058452/#msg_1058452
I realized that since it doesn't fail while doing the transformation, but while saving it, maybe I could do one last transformation that copies just all th elements and the save it, this does actually work, though I have to use a really heavy transformation and it's not at all ideal, but at least it works. The thing is though, it copies some elements that shouldn't be there, I don't know why, but they shouldn't show up, so if there was a way to fix the problem I'm having with the refining mode it would just be perfect.
By the way, I read there might be a way to ignore these errors and make Ant work, do you know how? it still wouldn't be ideal, but at least could be a solution.
Once again, thanks a lot for your help!
regards,
Javier
[Updated on: Tue, 14 May 2013 03:58] Report message to a moderator
|
|
|
| Re: How to run chain transformations using ANT? [message #1058627 is a reply to message #1058453] |
Tue, 14 May 2013 11:03   |
Hugo Bruneliere Messages: 469 Registered: July 2009 |
Senior Member |
|
|
Hello,
I don't think the error is actually coming from Ant but rather from the fact that EMF is not able to save/serialize properly the model due to this not-contained element.
Please, could you raise a bug onto the Eclipse Bugzilla to describe this "bug" happening with the Drop feature in the Refining Mode?
Hugo
------------------------------------------
Hugo Bruneliere - R&D Engineer
AtlanMod research team (Inria, EMN & LINA)
Ecole des Mines de Nantes
Nantes - France
------------------------------------------
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.02027 seconds