ANT Task VMException (Could not find model) [message #1062937] |
Tue, 11 June 2013 09:20  |
Eclipse User |
|
|
|
Hi,
I'm trying to create an ant task to launch my ATL transformation and when I run my ant file as ant build I get this error:
run:
[atl.loadModel] Loading model UML2 from http://www.eclipse.org/uml2/2.1.0/UML
[atl.loadModel] Loading model testKDM from http://www.eclipse.org/MoDisco/kdm/code
[atl.loadModel] Loading model PRO from http://www.eclipse.org/uml2/4.0.0/UML/Profile/L3
[atl.loadModel] Loading model kdm from platform:/resource/eu.artist.m2m.componentextraction/model/petstoreEE6.kdm
[atl.loadModel] Loading model profile from platform:/resource/eu.artist.m2m.componentextraction/model/Annotation.profile.uml
[atl.launch] Launching transformation C:\Burak\Dev\ARTIST\ARTIST-Experiments\Atos\WP8\eu.artist.m2m.componentextraction\transformation\KDMtoUML_WA.asm using EMF-specific VM
[atl.launch] org.eclipse.m2m.atl.engine.emfvm.VMException: Could not find model kdm
BUILD FAILED
C:\Burak\Dev\ARTIST\ARTIST-Experiments\Atos\WP8\eu.artist.m2m.componentextraction\antLaunch_test.xml:14: Could not find model kdm
Here is my ant file:
<?xml version="1.0"?>
<project name="eu.artist.m2m.componentextraction" default="run" basedir=".">
<property name="atl.launcher" value="EMF-specific VM" />
<target name="run">
<atl.loadModel name="UML2" metamodel="MOF" nsUri="http://www.eclipse.org/uml2/2.1.0/UML" />
<atl.loadModel name="testKDM" metamodel="MOF" nsUri="http://www.eclipse.org/MoDisco/kdm/code" />
<atl.loadModel name="PRO" metamodel="MOF" nsUri="http://www.eclipse.org/uml2/4.0.0/UML/Profile/L3" />
<atl.loadModel modelhandler="testKDM" metamodel="testKDM" name="kdm" nsUri="platform:/resource/eu.artist.m2m.componentextraction/model/petstoreEE6.kdm" />
<atl.loadModel modelhandler="PRO" metamodel="PRO" name="profile" nsUri="platform:/resource/eu.artist.m2m.componentextraction/model/Annotation.profile.uml" />
<atl.launch path="transformation/KDMtoUML_WA.asm">
<option name="supportUML2Stereotypes" value="true" />
<inmodel name="IN" model="kdm" />
<inmodel name="IN2" model="profile" />
<outmodel name="OUT" model="uml" metamodel="UML2" modelhandler="UML2" />
</atl.launch >
<atl.saveModel model="uml" path="model/petstoreEE6_WA.uml" />
</target>
</project>
My transformation header:
create OUT: uml from IN: kdm, IN2: profile;
Everything seems in order and kdm model is also successfully loaded (I think) but I get this error anyway. Does anyone have any idea why I might be getting this exception?
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.06444 seconds