How to run chain transformations using ANT? [message #1057844] |
Thu, 09 May 2013 09:37 |
Javier García Messages: 129 Registered: April 2013 |
Senior 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 09:10] Report message to a moderator
|
|
|
|
|
|
Re: How to run chain transformations using ANT? [message #1058453 is a reply to message #1058285] |
Tue, 14 May 2013 07:53 |
Javier García Messages: 129 Registered: April 2013 |
Senior 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 07:58] Report message to a moderator
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.06061 seconds