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

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.