Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » GMT (Generative Modeling Technologies) » [AM3] ATL transformation Ant Task
[AM3] ATL transformation Ant Task [message #380326] Mon, 29 October 2007 10:13 Go to next message
Eclipse UserFriend
Originally posted by: frederic.thomas.cea.fr

Hi,

I would like to launch programmaticaly an ATL transformation on UML models
with the AM3 ant tasks. Hence, I wrote that ant script :
<am3.atl path="${transformationPath}/PD2APD.atl"
allowintermodelreferences="true">
<inModel name="UML2" model="UML2"/>
<inModel name="IN" model="PDS"/>
<inModel name="TraceaPro" model="TraceaPro"/>
<outModel name="OUT" model="${APD}" metamodel="UML2"/>
<library name="UML2Lib" path="${libraryPath}/UML2Lib.asm"/>
</am3.atl>

The corresponding models are succesfully load and saved with am3 task. The
transformation is executed without errors. Nevertheless the output model
is corrupted. Some XMI references are wrong.

I have tried to launch the same configuration with the GUI wizard and the
output model is healthy.

Does anybody deal with that problem ?
Re: [AM3] ATL transformation Ant Task [message #380327 is a reply to message #380326] Mon, 29 October 2007 22:04 Go to previous message
Freddy Allilaire is currently offline Freddy AllilaireFriend
Messages: 130
Registered: July 2009
Senior Member
Hi Frédéric,

You may need to use the "path" attribute in the outModel element:
<outModel name="OUT" model="${APD}" metamodel="UML2" path="xxx.uml" />

EMF will use this to determine the correct factory
(http://wiki.eclipse.org/AM3_Ant_Tasks#outModel).

Regards,
Freddy.

frederic.thomas@cea.fr a écrit :
> Hi,
>
> I would like to launch programmaticaly an ATL transformation on UML
> models with the AM3 ant tasks. Hence, I wrote that ant script :
> <am3.atl path="${transformationPath}/PD2APD.atl"
> allowintermodelreferences="true">
> <inModel name="UML2" model="UML2"/>
> <inModel name="IN" model="PDS"/>
> <inModel name="TraceaPro" model="TraceaPro"/>
> <outModel name="OUT" model="${APD}" metamodel="UML2"/>
> <library name="UML2Lib" path="${libraryPath}/UML2Lib.asm"/>
> </am3.atl>
>
> The corresponding models are succesfully load and saved with am3 task.
> The transformation is executed without errors. Nevertheless the output
> model is corrupted. Some XMI references are wrong.
>
> I have tried to launch the same configuration with the GUI wizard and
> the output model is healthy.
> Does anybody deal with that problem ?
>
Re: [AM3] ATL transformation Ant Task [message #608243 is a reply to message #380326] Mon, 29 October 2007 22:04 Go to previous message
Freddy Allilaire is currently offline Freddy AllilaireFriend
Messages: 130
Registered: July 2009
Senior Member
Hi Frédéric,

You may need to use the "path" attribute in the outModel element:
<outModel name="OUT" model="${APD}" metamodel="UML2" path="xxx.uml" />

EMF will use this to determine the correct factory
(http://wiki.eclipse.org/AM3_Ant_Tasks#outModel).

Regards,
Freddy.

frederic.thomas@cea.fr a écrit :
> Hi,
>
> I would like to launch programmaticaly an ATL transformation on UML
> models with the AM3 ant tasks. Hence, I wrote that ant script :
> <am3.atl path="${transformationPath}/PD2APD.atl"
> allowintermodelreferences="true">
> <inModel name="UML2" model="UML2"/>
> <inModel name="IN" model="PDS"/>
> <inModel name="TraceaPro" model="TraceaPro"/>
> <outModel name="OUT" model="${APD}" metamodel="UML2"/>
> <library name="UML2Lib" path="${libraryPath}/UML2Lib.asm"/>
> </am3.atl>
>
> The corresponding models are succesfully load and saved with am3 task.
> The transformation is executed without errors. Nevertheless the output
> model is corrupted. Some XMI references are wrong.
>
> I have tried to launch the same configuration with the GUI wizard and
> the output model is healthy.
> Does anybody deal with that problem ?
>
Previous Topic:[AM3] ATL transformation Ant Task
Next Topic:[xText] emf,gmf,xtext?
Goto Forum:
  


Current Time: Fri Mar 29 09:01:21 GMT 2024

Powered by FUDForum. Page generated in 0.02527 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top