[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[news.eclipse.technology.gmt] Re: [AM3] Re: Load Model with Ant

Hi Freddy and Thank You for answer to me.

I know that "am3.loadModel" loads metamodels. In the code below, "UML2.ecore" is a Metamodel.
Pardon me, but I don't undestand when you write "After this model can be used with "am3.atl" and "am3.saveModel" tasks.": can you repeat, please? Thank you.
Becouse, I need to load this metamodel because I have to create a model (how input for my ATL -Atlas Transformation Language- transformation) conforms to my UML2.ecore metamodel.


Thank you for help me.

puellula

----------------------------------------------
Hi Puellula,

The task "am3.loadModel" loads in "Ant references" a (meta)model. After this model can be used with "am3.atl" and "am3.saveModel" tasks.

For the moment, it's the only goal of this task.

Regards,
Freddy.

puellula a écrit :

Hello. I have a problem for create a model conform to my metamodel. I'm using Eclipse 3.1.2 (from ATLBundle-20060501) with Omondo 2.1.0 . I had created a file LoadMetamodel.xml with Ant Editor:

<project name="LoadMetamodels" default="loadAllMetamodels"> <target name="loadAllMetamodels">
<am3.loadModel modelHandler="EMF" name="uml2" metamodel="MOF" path="/UML2.ecore" />
</target> </project>


After this, I run LoadMetamodel.xml with Ant and the result is:

loadAllMetamodels:
[am3.loadModel] Loading of model uml2
BUILD SUCCESSFUL

Therefore, I image it's all ok!

After I had created a ecore file with this:

<?xml version=1.0" encoding="UTF-8"?>
<xmi:XMI xmi:version="2.0" xmlns:xmi="http://www.omg.org/XMI"; xmlns="uml2"/>


but when I open this last file with Sample Ecore Model Editor I see that it's not load my metamodel, because for create my model I see only EMF object.

Can someone help me?

Thank you very much!

puellula

p.s. I don't know if this is the right place for this question, but a person advise this to me.