Skip to main content


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 AyataFriend
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 AyataFriend
Messages: 12
Registered: February 2013
Junior Member
Sorry,
I find the solution, my metamodel is not the good one

best regards,
Previous Topic:ATL problems
Next Topic:ATL Collection
Goto Forum:
  


Current Time: Thu Apr 25 23:24:03 GMT 2024

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

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

Back to the top