Skip to main content



      Home
Home » Archived » M2M (model-to-model transformation) » [ATL] Ant Task: set "Is metametamodel" option
[ATL] Ant Task: set "Is metametamodel" option [message #549855] Wed, 28 July 2010 05:01 Go to next message
Eclipse UserFriend
Hello,

When I want to run a transformation using a run configuration, it is possible to set the option "Is metametamodel" for a metamodel.
How do I do the same thing in an Ant Task?

Thank you!

[Updated on: Wed, 28 July 2010 05:02] by Moderator

Re: [ATL] Ant Task: set "Is metametamodel" option [message #550181 is a reply to message #549855] Thu, 29 July 2010 09:17 Go to previous messageGo to next message
Eclipse UserFriend
You don't have to load ecore, just use for the model conforming to ecore : metamodel="MOF"
Re: [ATL] Ant Task: set "Is metametamodel" option [message #550814 is a reply to message #550181] Wed, 04 August 2010 08:16 Go to previous message
Eclipse UserFriend
Hmmm, that doesn't work. I get the following error.
java.lang.ClassCastException: org.eclipse.m2m.atl.core.emf.EMFModel cannot be cast to org.eclipse.m2m.atl.core.IReferenceModel


The loadModel rule in the ANT file now looks as follows.
<atl.loadModel metamodel="MOF" name="mm" path="${mm_file}" />

The path refers to an ecore file.
Previous Topic:[QVTo] Query about in/out/inout and check/enforce or create/append/update execution mode
Next Topic:[QVTo] How to attach intermediate data that is valid only within the scope of a mapping?
Goto Forum:
  


Current Time: Thu Jun 19 22:50:54 EDT 2025

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

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

Back to the top