Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » ATL » Ant task problem
Ant task problem [message #1021135] Tue, 19 March 2013 15:10 Go to next message
Fernando Ayata is currently offline Fernando Ayata
Messages: 12
Registered: February 2013
Junior Member
Dear All,
I use this Ant task to do ATL file -> Xmi file -> ATL file
<?xml version="1.0"?>
<project name="atlcopy" default="run" basedir=".">
    <property name="in1"  value="TMTM.atl"/>
    <property name="out1" value="test.xmi"/>

    <property name="atl.launcher" value="EMF-specific VM" />

    <target name="run">
        <atl.loadModel modelHandler="EMF" name="ATL" metamodel="MOF" path="ATL.ecore" />
        <atl.loadModel name="atl1" metamodel="ATL" path="${in1}">
            <injector name="ATL" />
        </atl.loadModel>
        <atl.saveModel model="atl1" path="${out1}"/>
        <atl.saveModel model="atl1" path="${in1}.out.atl">
             <extractor name="ATL"/>
        </atl.saveModel>
    </target>
</project>


I have this error:
could not read property "isAssignment" of element org.eclipse.emf.ecore.impl.DynamicEObjectImpl@175bce4 (eClass: org.eclipse.emf.ecore.impl.EClassImpl@15d145 (name: Binding) (instanceClassName: null) (abstract: false, interface: false)) : Binding

The xmi file is generated correctly but the the second atl file is not complete.
the assignment is not complete.
If I have
rule FS2SS{
	from fc : FSMetaModel!S
	to ss : SPMetaModel!SP (
		sim <- fc.events->select(e|e.oclIsTypeOf(TMetaModel!Tag))
	)
}

the generated one is
rule FS2SS{
	from fc : FSMetaModel!S
	to ss : SPMetaModel!SP (
		sim 
}

PS: my first transformation works correctly
Re: Ant task problem [message #1021146 is a reply to message #1021135] Tue, 19 March 2013 15:17 Go to previous message
Fernando Ayata is currently offline Fernando Ayata
Messages: 12
Registered: February 2013
Junior Member
Sorry,
I find the solution, my metamodel is not the good one

best regards,
Previous Topic:how to get xmi:type of UML in atl rule
Next Topic:ATL Collection
Goto Forum:
  


Current Time: Fri Sep 19 02:04:15 GMT 2014

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

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