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