Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » M2M (model-to-model transformation) » [ATL] Start Genmodel transformation via ant
[ATL] Start Genmodel transformation via ant [message #743350] Fri, 21 October 2011 11:28
Ralph Gerbig is currently offline Ralph GerbigFriend
Messages: 702
Registered: November 2009
Senior Member
Hi,

I am using this ant task to run a refinement transformation on my genmodel:

<atl.loadModel name="genmodel" metamodel="MOF" nsuri="http://www.eclipse.org/emf/2002/GenModel"></atl.loadModel>
<atl.loadModel name="XXXInOutModel" metamodel="genmodel" path="../xxx.xxx/model/xxx.genmodel"></atl.loadModel>

<atl.launch path="../xxx.xxx/transformation/GenmodelRefinement.atl" refining="true">
 <inoutmodel name="IN" model="XXXInOutModel"/>
</atl.launch>
    	
<atl.saveModel model="XXXInOutModel" path="../xxx.xxx/model/xxx.genmodel"></atl.saveModel>


If I use the debug configurations to start the transformation everything works fine. As soon as I want to use the specified ANT task I do get OclUnspecifed on commands like:

self.ecoreFeature.name.debug('name')


ecoreFeature references to the feature in the ecore model. Therefore, I think that there is a problem with inter model references when starting the transformation form ant. How can I fix this?

Thanks in advance!

Ralph

[Updated on: Fri, 21 October 2011 11:29]

Report message to a moderator

Previous Topic:[ATL] How to use EMF-Specific VM with ANT task
Next Topic:[ATL] Deleting elements in refing mode
Goto Forum:
  


Current Time: Fri Apr 26 18:01:09 GMT 2024

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

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

Back to the top