Skip to main content



      Home
Home » Modeling » ATL » Empty output model with ATL+ANT and metamodel from xsd file
Empty output model with ATL+ANT and metamodel from xsd file [message #1181218] Mon, 11 November 2013 08:01 Go to next message
Eclipse UserFriend
Hello,

I have define a MMT with ATL. This have as input a model conforms a metamodel generated from a xsd file using EMF. If I run the transformation with Eclipse configuration it work properly. But when I try execute the transformation with an ANT task the output model is empty. I tried severals configurations:

1. Load de metamodel using its uri. The execution returns an empty model:
<atl.loadModel modelHandler="EMF" name="mmStrutsConfig" metamodel="MOF" uri="platform:/org.eclipse.modisco.struts.config/resource/StrutsConfig.xsd" />


2. Load de metamodel using its path. The execution returns with an error ([atl.loadModel] org.eclipse.m2m.atl.core.ATLCoreException: Error loading file:/C:\Users\victor\Dropbox\ECLIPSE\workspaceMoDisco10\repositorios\org.eclipse.modisco.struts.config\org.eclipse.modisco.struts.config\model\StrutsConfig13.ecore: null):
<atl.loadModel modelHandler="EMF" name="mmStrutsConfig" metamodel="MOF" path="../../org.eclipse.modisco.struts.config/org.eclipse.modisco.struts.config/model/StrutsConfig13.ecore" />


Best regards,
Víctor Pavón.
Re: Empty output model with ATL+ANT and metamodel from xsd file [message #1182452 is a reply to message #1181218] Tue, 12 November 2013 02:36 Go to previous messageGo to next message
Eclipse UserFriend
Hello,

Concerning your first case, have you checked that the metamodel is actually well-loaded (for instance by re-serializing it as an Ecore file using "atl.saveModel")?

Best regards,
Re: Empty output model with ATL+ANT and metamodel from xsd file [message #1182510 is a reply to message #1182452] Tue, 12 November 2013 03:30 Go to previous messageGo to next message
Eclipse UserFriend
Hello Hugo,

I check if the metamodel is well-loaded, re-serializing it, and it is well-loaded.

Best regards,
Víctor.

[Updated on: Tue, 12 November 2013 03:30] by Moderator

Re: Empty output model with ATL+ANT and metamodel from xsd file [message #1182531 is a reply to message #1182510] Tue, 12 November 2013 03:49 Go to previous messageGo to next message
Eclipse UserFriend
So it is not coming from the metamodel loading.
If you're sure that the transformation itself is OK, thus it can only come from your input model that may be not properly loaded: could you check this too?

Best regards,
Re: Empty output model with ATL+ANT and metamodel from xsd file [message #1182544 is a reply to message #1182531] Tue, 12 November 2013 04:00 Go to previous message
Eclipse UserFriend
The problem was on the model load. I load a wrong file conforms to another metamodel that I use in the transformation. Thank you very much for your help Smile

Best regards,
Víctor Pavón.
Previous Topic:[EMFTVM] How to transform stereotypes values?
Next Topic:[Theoretical?] Transformation problems not solvable with declarative languages?
Goto Forum:
  


Current Time: Tue Jul 22 19:03:52 EDT 2025

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

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

Back to the top